Skip to content
OpenAdvisories

Description

js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 until 3.15.2, 4.3.2, and 5.4.1, maxTotalMergeKeys in lib/js-yaml/loader.js and lib/loader.js does not count empty mapping sources while processing the merge key <<. An attacker can alias a large sequence of empty mappings into many merge targets, causing O(N * K) processing while totalMergeKeys remains unchanged and the configured resource limit is never reached. A relatively small YAML document can therefore cause prolonged CPU consumption in applications that parse untrusted YAML, and merge processing is enabled by default on these release lines. In v3 & v4, merge is enabled by default so the severity score is higher. This issue is fixed in versions 3.15.2, 4.3.2, and 5.4.1.

Affected products

VendorProductAffectedFixed
nodeca js-yaml >= 3.0.0, < 3.15.2, >= 4.0.0, < 4.3.2, >= 5.0.0, < 5.4.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-js-yaml 4.3.2+~4.0.9-1 —
Debian 13 node-js-yaml No fix yet —
Debian 12 node-js-yaml No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-js-yaml No fix yet —
Ubuntu 26.04 LTS node-js-yaml No fix yet —
Ubuntu 24.04 LTS node-js-yaml No fix yet —
Ubuntu 22.04 LTS node-js-yaml No fix yet —
Ubuntu 20.04 LTS node-js-yaml No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS node-js-yaml No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.9-0.5.hum1 RHSA-2026:62810
Red Hat Hardened Images 1 grafana13.1 13.1.3-0.5.hum1 RHSA-2026:63165
Red Hat Hardened Images 1 grafana13.2 13.2.0-0.1.4.hum1 RHSA-2026:63164, RHSA-2026:62813
Red Hat Ansible Automation Platform Inside 2 receptor 1.6.8-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 automation-controller +1 4.7.17-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 python-sqlparse +1 0.6.0-1.el10ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 python3.12-sqlparse 0.6.0-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 receptor 1.6.8-1.el9ap RHSA-2026:71113
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 2 automation-controller +4 4.7.17-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-gateway-proxy-server 2.6.17-3.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.14-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python-sqlparse +1 0.6.0-1.el10ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python3.12-gitpython 3.1.60-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python3.12-sqlparse 0.6.0-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 receptor 1.6.8-1.el9ap RHSA-2026:71113

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling argo-workflows-ui-4.0 4.0.11-r0 —
Wolfi rolling code-server 4.136.2-r1 —
Wolfi rolling eslint 10.10.0-r1 —
Wolfi rolling jupyter-base-notebook 7.6.3-r2 —
Wolfi rolling katib-suggestion-hyperopt 0.19.0-r40 —
Wolfi rolling lerna 10.0.1-r3 —
Wolfi rolling opensearch-dashboards-3 3.8.0-r4 —
Wolfi rolling prism 5.16.0-r9 —
Wolfi rolling pulumi-language-nodejs 3.261.0-r2 —
Wolfi rolling renovate 44.94.0-r0 —
Wolfi rolling sqlpad 7.5.7-r40 —
Wolfi rolling ts-patch 4.0.1-r45 —
Wolfi rolling vitess-24 24.0.3-r3 —
Wolfi rolling vitess-24-compat 24.0.3-r7 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm js-yaml >= 4.0.0, < 4.3.2 4.3.2 GHSA-2883-xcg3-v3hh
npm js-yaml >= 3.0.0, < 3.15.2 3.15.2 GHSA-2883-xcg3-v3hh

Advisories 8

References