Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. flatted
  4. ›
  5. CVE-2026-32141

CVE-2026-32141: flatted vulnerable to unbounded recursion DoS in parse() revive phase

March 13, 2026

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. Learn more about Dependency Scanning →

Affected versions

All versions before 3.4.0

Fixed versions

  • 3.4.0

Solution

Upgrade to version 3.4.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/flatted/CVE-2026-32141.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:32 +0000.