CVE-2026-32141: flatted vulnerable to unbounded recursion DoS in parse() revive phase
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.
References
- github.com/WebReflection/flatted
- github.com/WebReflection/flatted/commit/7eb65d857e1a40de11c47461cdbc8541449f0606
- github.com/WebReflection/flatted/pull/88
- github.com/WebReflection/flatted/security/advisories/GHSA-25h7-pfq9-p65f
- github.com/advisories/GHSA-25h7-pfq9-p65f
- nvd.nist.gov/vuln/detail/CVE-2026-32141
Code Behaviors & Features
Detect and mitigate CVE-2026-32141 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →