CVE-2026-84375 GHSA-2883-xcg3-v3hh js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources in openam-ui-api (4.3.1 -> 4.3.2) - #1132
Merged
vharseko merged 1 commit intoSep 17, 2026
Conversation
…t limit CPU use for empty merge sources in openam-ui-api (4.3.1 -> 4.3.2)
maximthomas
approved these changes
Sep 17, 2026
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-api(package.jsonoverrides andpackage-lock.json), clearing Dependabot alert #321 for this lock file.Completes #1125, which applied the same fix to
openam-ui-riaand noted that this module still resolved 4.3.1 through itsoverrides: "js-yaml": "^4.3.0".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).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. In
openam-ui-apijs-yamlis a dev-scope transitive dependency ofgrunt@1.6.2(which asks for~3.14.0) and is held at 4.x only by theoverridesentry — no OpenAM source imports it and it does not ship in the WAR.gruntwould parse YAML only for agrunt.file.readYAML()call, andopenam-ui-api/Gruntfile.jsreads no YAML at all, so no YAML document is parsed during the build. The bump takes the dev toolchain out of the vulnerable range.Change
overrides."js-yaml":^4.3.0→^4.3.2inpackage.json(so the floor matches the patched version, as #1100 did for^4.3.0), and the matchingnode_modules/js-yamlentry inpackage-lock.json(4.3.2,dev: true). No code or behaviour change.Verified:
integritymatchesnpm view js-yaml@4.3.2 dist.integritynpm install --package-lock-only --prefer-onlineis a no-op, so the build will not roll the version backnpm audit --package-lock-onlyno longer reportsjs-yamlfor this moduleReferences