CVE-2026-33532
yaml is vulnerable to Stack Overflow via deeply nested YAML collections
Also known as GHSA-48c2-rrv3-qjmp
Mitigation
- Upgrade yaml to one of 2.8.3, 1.10.3 (or later in the same release line).
Who should check
- Projects that depend on npm package yaml (>= 2.0.0, < 2.8.3)
- Anyone running eemeli yaml >= 2.0.0, < 2.8.3; >= 1.0.0, < 1.10.3
Vulnerability facts
- Affected
- yaml >= 2.0.0, < 2.8.3
- Fixed in
- 2.8.3, 1.10.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 0.62% chance of exploitation in 30 days (percentile 44, 2026-11-26)
- CWE
- CWE-674
- Modified
Description
`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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-33532. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-33532.md Affected: yaml >= 2.0.0, < 2.8.3 Fixed in: 2.8.3, 1.10.3 Steps: 1. Search this machine and project for yaml (npm), eemeli yaml: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-33532 being exploited?
There is no confirmed exploitation: CVE-2026-33532 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.62% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-33532?
Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-33532?
yaml >= 2.0.0, < 2.8.3.
Is there a fix for CVE-2026-33532?
Yes. Fixed in 2.8.3, 1.10.3. Upgrade yaml to one of 2.8.3, 1.10.3 (or later in the same release line).
How do I check if I'm affected by CVE-2026-33532?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.