Skip to content

CVE-2026-59869 js-yaml: YAML merge-key chains can force quadratic CPU consumption - #1100

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix/cve-2026-59869-js-yaml-api
Aug 6, 2026
Merged

CVE-2026-59869 js-yaml: YAML merge-key chains can force quadratic CPU consumption#1100
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix/cve-2026-59869-js-yaml-api

Conversation

@vharseko

@vharseko vharseko commented Aug 6, 2026

Copy link
Copy Markdown
Member

Bumps js-yaml from 4.2.0 to 4.3.1 in openam-ui-api (GHSA-52cp-r559-cp3m / CVE-2026-59869, patched in 4.3.0).

Unlike the other recent dependency fixes this one needs a package.json change: grunt@1.6.2 requires ~3.14.0, so the version is governed by the existing overrides entry — and that entry ("js-yaml": "^4.2.0") is exactly what pinned the package inside the vulnerable >=4.0.0 <4.3.0 range. Raising it to ^4.3.0 resolves to 4.3.1.

Completes #1074, which applied the same fix to openam-ui-ria only.

js-yaml is a dev-scope transitive dependency of the UI build toolchain — it does not ship in the WAR.

Verified:

  • the integrity hash matches npm view js-yaml@4.3.1 dist.integrity
  • npm install --package-lock-only --prefer-online is a no-op, so the build will not roll the version back
  • npm audit no longer reports js-yaml for this module
  • the 3.x -> 4.x jump was already made by the pre-existing override; this is only a patch-level move inside 4.x. grunt.file.readYAML (which relies on the safeLoad removed in js-yaml 4) is not affected either way — openam-ui-api/Gruntfile.js does not read YAML at all

… consumption

Raise the js-yaml override in openam-ui-api from ^4.2.0 to ^4.3.0, resolving
to 4.3.1. The override is what pinned the vulnerable version: grunt requires
~3.14.0, so without it npm falls back to the 3.x line.

Completes OpenIdentityPlatform#1074, which fixed only openam-ui-ria.
@vharseko vharseko added dependencies Pull requests that update a dependency file security Security fix or hardening (CVE, GHSA, XSS/CSRF/SSRF) javascript Pull requests that update Javascript code ui XUI / admin console / end-user UI labels Aug 6, 2026
@vharseko
vharseko merged commit 958688e into OpenIdentityPlatform:master Aug 6, 2026
15 checks passed
@vharseko
vharseko deleted the fix/cve-2026-59869-js-yaml-api branch August 6, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code security Security fix or hardening (CVE, GHSA, XSS/CSRF/SSRF) ui XUI / admin console / end-user UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant