CVE-2026-84375 GHSA-2883-xcg3-v3hh js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources (4.3.1 -> 4.3.2) - #1125
Open
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
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
js-yamlfrom 4.3.1 to 4.3.2 inopenam-ui/openam-ui-ria(package.jsonandpackage-lock.json), clearing Dependabot alert #323 for this lock file.Advisory
CVE-2026-84375 / GHSA-2883-xcg3-v3hh — Uncontrolled Resource Consumption (CWE-400) through Inefficient Algorithmic Complexity (CWE-407) in js-yaml 3.x before 3.15.2 and 4.x before 4.3.2.
maxTotalMergeKeys, the budget that bounds the work a YAML merge key (<<) may cause, does not count empty mappings: a document which aliases one sequence of N empty mappings{}and merges it K times makes the loader do O(N·K) work while the budget never moves — ~500 KB of YAML keeps the parser busy for ~13 s. In 3.x and 4.x merge keys are enabled by default, which is why the score is high. 4.3.2 backports the fix from 5.4.1 (nodeca/js-yaml#797): every merge-source mapping counts as one budget unit besides its keys, and a merge sequence is hard-limited to 100 entries.AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)js-yaml>= 4.0.0, < 4.3.2 (and >= 3.0.0, < 3.15.2)Impact on OpenAM
None at runtime, low in the build.
js-yamlsits indevDependenciesofopenam-ui-riaonly so thatoverridescan force the single 4.x copy ontoeslint,gruntandmocha(which ask for 3.x) — no OpenAM source imports it and it does not ship in the WAR. Those tools would parse YAML only for a.eslintrc.yml, a.mocharc.ymlor agrunt.file.readYAML()call; the RIA build has.eslintrc.js/src/test/.eslintrc.json, no.mocharc, and itsGruntfile.jsreads no YAML, so no YAML document is parsed during the build at all, let alone one from outside the tree. The bump takes the dev toolchain out of the vulnerable range.Change
^4.3.1→^4.3.2inpackage.json, and the matchingnode_modules/js-yamlentry inpackage-lock.json(4.3.2,dev: true). No code or behaviour change; theoverridesblock is untouched, soeslint,gruntandmochakeep resolving to the same single copy.Verified:
integritymatchesnpm view js-yaml@4.3.2 dist.integrityNot covered:
openam-ui/openam-ui-api/package-lock.jsonstill resolvesjs-yaml4.3.1 through itsoverrides: "js-yaml": "^4.3.0"(alert #321) and needs its own lock refresh.References