CVEfocus › CVE database › CVE-2026-33532

CVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections

CVSS 4.3 MediumEPSS 0.6% (higher than 44% of CVEs)Published 2026-03-26Updated 2026-03-30Assigner: GitHub_M

`yaml` is a YAML parser and serialiser for JavaScript. Parsing a YAML document with a version of `yaml` on the 1.x branch prior to 1.10.3 or on the 2.x branch prior to 2.8.3 may throw a RangeError due to a stack overflow. The node resolution/composition phase uses recursive function calls without a depth bound. An attacker who can supply YAML for parsing can trigger a `RangeError: Maximum call stack size exceeded` with a small payload (~2–10 KB). The `RangeError` is not a `YAMLParseError`, so applications that only catch YAML-specific errors will encounter an unexpected exception type. Depending on the host application's exception handling, this can fail requests or terminate the Node.js process. Flow sequences allow deep nesting with minimal bytes (2 bytes per level: one `[` and one `]`). On the default Node.js stack, approximately 1,000–5,000 levels of nesting (2–10 KB input) exhaust the call stack. The exact threshold is environment-dependent (Node.js version, stack size, call stack depth at invocation). Note: the library's `Parser` (CST phase) uses a stack-based iterative approach and is not affected. Only the compose/resolve phase uses actual call-stack recursion. All three public parsing APIs are affected: `YAML.parse()`, `YAML.parseDocument()`, and `YAML.parseAllDocuments()`. Versions 1.10.3 and 2.8.3 contain a patch.

CWE-674

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
40Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-yamlUnder investigationUBUNTU-CVE-2026-33532
Ubuntu 25.10node-yamlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-33532
Ubuntu 24.04node-yamlUnder investigationUBUNTU-CVE-2026-33532
Ubuntu 22.04node-yamlUnder investigationUBUNTU-CVE-2026-33532
Debian 14node-yamlFixed2.8.3+~cs0.4.0-1DEBIAN-CVE-2026-33532
Debian 13node-yamlFix pendingDEBIAN-CVE-2026-33532
Debian 12node-yamlFix pendingDEBIAN-CVE-2026-33532
Red Hat Enterprise Linux 10grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 10grafana-pcpFix pending
Fix deferred
Red Hat Enterprise Linux 10grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 10ruby4.0Fix pending
Fix deferred
Red Hat Enterprise Linux 10ruby4.0-develFix pending
Fix deferred
Red Hat Enterprise Linux 10ruby4.0-docFix pending
Fix deferred
Red Hat Enterprise Linux 10ruby4.0-rubygem-mysql2Fix pending
Fix deferred
Red Hat Enterprise Linux 10ruby4.0-rubygem-pgFix pending
Fix deferred
Red Hat Enterprise Linux 9gjsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 9grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 9grafana-pcpFix pending
Fix deferred
Red Hat Enterprise Linux 9grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 9pcsFix pending
Fix deferred
Red Hat Enterprise Linux 9pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 8grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-azure-monitorFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-cloudwatchFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-elasticsearchFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-graphiteFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-influxdbFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-lokiFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-mssqlFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-mysqlFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-opentsdbFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-pcpFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-postgresFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-prometheusFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 8grafana-stackdriverFix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60Fix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60-develFix pending
Fix deferred
Red Hat Enterprise Linux 8pcsFix pending
Fix deferred
Red Hat Enterprise Linux 8pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agentsFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-aliyunFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-gcpFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-pafFix pending
Fix deferred
npm libraryyamlFixed1.10.3GHSA-48c2-rrv3-qjmp

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.