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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.62% (percentile 44, 2026-11-26)
- **CWE:** CWE-674
- **Aliases:** GHSA-48c2-rrv3-qjmp
- **Published:** 2026-03-25T20:08:24.000Z
- **Modified:** 2026-09-10T03:50:37.151Z

## 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

## 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

- npm `yaml`: affected \>= 2.0.0, \< 2.8.3; fixed 2.8.3, 1.10.3 (osv)
- eemeli yaml: \>= 2.0.0, \< 2.8.3; \>= 1.0.0, \< 1.10.3 (cvelist)

## Mitigation

- Upgrade yaml to one of 2.8.3, 1.10.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/eemeli/yaml/security/advisories/GHSA-48c2-rrv3-qjmp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-33532>
- patch: <https://github.com/eemeli/yaml/commit/1e84ebbea7ec35011a4c61bbb820a529ee4f359b>
- other: <https://github.com/eemeli/yaml/releases/tag/v1.10.3>
- other: <https://github.com/eemeli/yaml/releases/tag/v2.8.3>
- other: <https://github.com/eemeli/yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-33532>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-48c2-rrv3-qjmp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-33532> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-33532>
