Summary
The package currently declares "semver": "^6.3.1" as a dependency. All versions of semver prior to 7.5.2 are affected by a Regular Expression Denial of Service (ReDoS) vulnerability.
Vulnerability Details
- CVE: CVE-2022-25883
- Affected versions:
semver < 7.5.2
- CVSS score: 5.3 (Medium)
- Impact: The
semver package uses a vulnerable regular expression when parsing version strings. A specially crafted input can cause catastrophic backtracking, leading to excessive CPU consumption and denial of service.
- Published: 2023-06-21
Current State
node-exports-info@1.6.0 ships:
Because the ^6 range can never resolve to >=7.5.2, all installs of this package remain on a vulnerable semver release.
Note: Renovate has already queued a pending-approval branch to bump semver to v7 (tracked in the Dependency Dashboard issue #1), but that PR has not yet been approved or merged.
Fix
Bump the semver dependency to >=7.5.2 (or ^7.5.2 / ^7.6.0):
Semver v7 is a drop-in replacement for v6 for all public API surface used by this package.
References
Summary
The package currently declares
"semver": "^6.3.1"as a dependency. All versions ofsemverprior to 7.5.2 are affected by a Regular Expression Denial of Service (ReDoS) vulnerability.Vulnerability Details
semver < 7.5.2semverpackage uses a vulnerable regular expression when parsing version strings. A specially crafted input can cause catastrophic backtracking, leading to excessive CPU consumption and denial of service.Current State
node-exports-info@1.6.0ships:Because the
^6range can never resolve to>=7.5.2, all installs of this package remain on a vulnerable semver release.Fix
Bump the
semverdependency to>=7.5.2(or^7.5.2/^7.6.0):Semver v7 is a drop-in replacement for v6 for all public API surface used by this package.
References