CVE-2026-32141
HIGH7.5EPSS 0.02%flatted vulnerable to unbounded recursion DoS in parse() revive phase
Published: 3/13/2026Modified: 4/28/2026
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.
Affected packages (2)
- Debian/node-flattedfrom 0
- npm/flattedfrom 0, < 3.4.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-32141
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-32141
- PATCHhttps://github.com/WebReflection/flatted
- WEBhttps://github.com/WebReflection/flatted/commit/7eb65d857e1a40de11c47461cdbc8541449f0606
- WEBhttps://github.com/WebReflection/flatted/pull/88
- WEBhttps://github.com/WebReflection/flatted/security/advisories/GHSA-25h7-pfq9-p65f