Vulnerabilities/

flatted vulnerable to unbounded recursion DoS in parse() revive phase

Severity:
High

Description

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.

Recommendation

Update the flatted package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
flatted
Anything's wrong? Let us know Last updated on March 13, 2026