GHSA-68fv-2mgg-jv7q
source-map-js allows event-loop denial of service through indexed source-map section offsets
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | source-map-js | >= 1.0.0, < 1.2.2 | 1.2.2 |
Details
As written in the advisory (Markdown source, shown as plain text).
source-map-js through 1.2.1 fails to validate the per-section offset line value in indexed source maps, allowing attackers to specify arbitrary numeric values. Attackers can supply extremely large offset line values that cause synchronous event loop blocking for extended periods, preventing the service from handling other requests.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2026-93749
- https://github.com/7rulnik/source-map-js/issues/76
- https://github.com/7rulnik/source-map-js/pull/79
- https://github.com/7rulnik/source-map-js/commit/cf7658058ceeaa8619d5ae0ec90be6905209d016
- https://github.com/7rulnik/source-map-js
- https://github.com/7rulnik/source-map-js/blob/c1cd8904bb7bd0c7fb5879fcda48134d82a27934/lib/source-node.js#L115-L118
- https://github.com/7rulnik/source-map-js/releases/tag/v1.2.2
- https://www.vulncheck.com/advisories/source-map-js-through-1.2.1-event-loop-denial-of-service