CVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
`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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-yaml | Under investigation | UBUNTU-CVE-2026-33532 | |
| Ubuntu 25.10 | node-yaml | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-33532 | |
| Ubuntu 24.04 | node-yaml | Under investigation | UBUNTU-CVE-2026-33532 | |
| Ubuntu 22.04 | node-yaml | Under investigation | UBUNTU-CVE-2026-33532 | |
| Debian 14 | node-yaml | Fixed | 2.8.3+~cs0.4.0-1 | DEBIAN-CVE-2026-33532 |
| Debian 13 | node-yaml | Fix pending | DEBIAN-CVE-2026-33532 | |
| Debian 12 | node-yaml | Fix pending | DEBIAN-CVE-2026-33532 | |
| Red Hat Enterprise Linux 10 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | grafana-pcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-rubygem-mysql2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-rubygem-pg | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | grafana-pcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-pcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-aliyun | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-gcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-paf | Fix pending Fix deferred | ||
| npm library | yaml | Fixed | 1.10.3 | GHSA-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.
- eemeli yaml: affected: >= 2.0.0, < 2.8.3, >= 1.0.0, < 1.10.3
References
- https://github.com/eemeli/yaml/security/advisories/GHSA-48c2-rrv3-qjmp
- https://github.com/eemeli/yaml/commit/1e84ebbea7ec35011a4c61bbb820a529ee4f359b
- https://github.com/eemeli/yaml/releases/tag/v1.10.3
- https://github.com/eemeli/yaml/releases/tag/v2.8.3
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.