Repository navigation
CVE-2026-93749 source-map-js: Event-loop DoS via unvalidated indexed source-map section offsets (1.2.1 -> 1.2.2) - #1168
Merged
vharseko merged 1 commit intoOct 12, 2026
Conversation
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2) --- updated-dependencies: - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
vharseko
deleted the
dependabot/npm_and_yarn/openam-ui/openam-ui-js-sdk/source-map-js-1.2.2
branch
October 12, 2026 06:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
source-map-jsfrom 1.2.1 to 1.2.2 inopenam-ui/openam-ui-js-sdk(package-lock.jsononly), clearing Dependabot alert #363.openam-ui-js-sdkis the only lock file in the repository that resolvessource-map-js.Advisory
CVE-2026-93749 / GHSA-68fv-2mgg-jv7q (fixed in 1.2.2) — Improper validation of specified index, position, or offset in input (CWE-1284). An indexed source map (
{ "sections": [...] }) carries a per-sectionoffset.linethat was never validated. Fed throughSourceNode.fromStringWithSourceMap, it drives a line-padding loop that pushes one newline per line up to that offset, so a tiny map with a hugeoffset.lineblocks the event loop for an attacker-chosen time, and1e999(whichJSON.parseyields asInfinity) ends inRangeError: Invalid array length. The fix (7rulnik/source-map-js#79) closes four amplification paths reachable from untrusted map input:offset.lineis capped at 10,000,000 including the summed offsets of nested sections;IndexedSourceMapConsumersourcesgetter, which was exponential in nesting depth, reads each section once;_serializeMappingsbuilds large;gaps as one flat string instead of a rope that could exhaust the heap;fromStringWithSourceMapstops padding once the generated code is exhausted.AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)Availability-only: no code execution, no data exposure.
Impact on OpenAM
None at runtime, none in practice in the build.
source-map-jsis a transitive development dependency ofopenam-ui-js-sdk(dev: true), pulled in bypostcss8.5.23 (undervite8.0.16),sass1.93.2 andcss-tree3.1.0 (underjsdomviacssstyleand@asamuzakjp/dom-selector). No OpenAM source imports it, and it does not end up in the SDK bundle (target/lib,target/app) or the WAR — the runtime dependencies are onlyreact,react-domandreact-router.The Maven build reaches these tools through
npm run build(Vite, which compilessrc/index.scssthrough Sass) andnpm run test:run(Vitest with jsdom). What they read is the repository's own source —src/index.scsshas no@import/@use— and the packages pinned in the lock file, never a source map from outside, so the attacker-supplied indexed source map the advisory requires does not exist here. The bump takes the development toolchain out of the vulnerable range.Change
The
node_modules/source-map-jsentry inopenam-ui/openam-ui-js-sdk/package-lock.json: 1.2.1 → 1.2.2 (version,resolved,integrity).package.jsonis untouched —postcssasks for^1.2.1,css-treefor^1.0.1andsassfor>=0.6.2 <2.0.0, all satisfied by 1.2.2. No code change; 1.2.2 additionally stops crashing in browsers whose CSPscript-srcforbidsunsafe-eval(7rulnik/source-map-js#29), which does not apply to a build-time dependency.Verified:
integritymatchesnpm view [email protected] dist.integritynode_modules/source-map-jsis the onlysource-map-jsentry in this lock fileReferences