Vulnerability library
Security checkMarch 13, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmflatted

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): < 3.4.0
  • Patched version(s): 3.4.0

References

Could your website be exposed too?

SmartScanner can check your website for flatted vulnerable to unbounded recursion DoS in parse() revive phase and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 13, 2026