CVE-2026-32141: CWE-674: Uncontrolled Recursion in WebReflection flatted
CVE-2026-32141 is a high-severity vulnerability in the WebReflection flatted library versions prior to 3. 4. 0. The flaw arises from uncontrolled recursion in the parse() function's revive() phase, which resolves circular references in JSON data. Crafted payloads with deeply nested or self-referential indices can trigger unbounded recursion, causing a stack overflow and crashing the Node. js process. This vulnerability does not impact confidentiality or integrity but results in denial of service by crashing applications using the affected library. Exploitation requires no privileges or user interaction and can be performed remotely by supplying malicious JSON input. The issue is fixed in version 3. 4.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-32141 affects the WebReflection flatted library, a tool used for parsing circular JSON structures in Node.js environments. Prior to version 3.4.0, the parse() function internally uses a recursive revive() method to reconstruct circular references during deserialization. This recursive approach lacks bounds checking on recursion depth when processing crafted JSON payloads containing deeply nested or self-referential $ indices. An attacker can exploit this by sending malicious JSON data that triggers unbounded recursion, leading to a stack overflow condition. This overflow causes the Node.js process to crash, resulting in a denial of service (DoS). The vulnerability is classified under CWE-674 (Uncontrolled Recursion) and has a CVSS v3.1 score of 7.5, indicating high severity. The attack vector is network-based with no required privileges or user interaction, making it relatively easy to exploit remotely. No known exploits are currently reported in the wild, but the impact on availability is significant for affected applications. The issue was addressed in flatted version 3.4.0 by implementing safeguards to limit recursion depth or refactoring the revive() logic to prevent stack overflow. Since flatted is widely used in Node.js applications for handling circular JSON, this vulnerability poses a risk to any service deserializing untrusted JSON input using vulnerable versions.
Potential Impact
The primary impact of CVE-2026-32141 is denial of service through application crashes caused by stack overflow in Node.js processes using vulnerable flatted versions. This can disrupt web services, APIs, and backend systems relying on flatted for JSON parsing, potentially leading to downtime and degraded user experience. Although the vulnerability does not compromise data confidentiality or integrity, repeated exploitation could be used to degrade service availability or as part of a larger attack chain. Organizations with high-availability requirements or those exposing JSON parsing endpoints to untrusted inputs are particularly at risk. The ease of exploitation without authentication or user interaction increases the threat level, especially for internet-facing applications. Additionally, automated attacks could target vulnerable systems to cause widespread outages or service interruptions. The lack of known exploits in the wild suggests limited current exploitation but does not preclude future attacks once the vulnerability becomes widely known.
Mitigation Recommendations
To mitigate CVE-2026-32141, organizations should immediately upgrade the flatted library to version 3.4.0 or later, where the recursion issue is fixed. Developers should audit their dependencies to identify and update any usage of vulnerable flatted versions. Implement input validation and JSON schema validation to restrict deeply nested or suspicious circular references in incoming JSON payloads. Employ runtime monitoring and alerting for unexpected Node.js process crashes or high recursion stack usage. Consider sandboxing or isolating JSON parsing operations to limit the blast radius of potential crashes. For critical systems, implement rate limiting and filtering on endpoints that accept JSON input to reduce exposure to crafted payloads. Additionally, maintain up-to-date dependency management practices and monitor vulnerability advisories for related issues. If upgrading is not immediately feasible, applying application-level checks to detect and reject overly complex or recursive JSON structures can provide temporary protection.
Affected Countries
United States, India, Germany, United Kingdom, Canada, Australia, France, Japan, Netherlands, Brazil, South Korea
CVE-2026-32141: CWE-674: Uncontrolled Recursion in WebReflection flatted
Description
CVE-2026-32141 is a high-severity vulnerability in the WebReflection flatted library versions prior to 3. 4. 0. The flaw arises from uncontrolled recursion in the parse() function's revive() phase, which resolves circular references in JSON data. Crafted payloads with deeply nested or self-referential indices can trigger unbounded recursion, causing a stack overflow and crashing the Node. js process. This vulnerability does not impact confidentiality or integrity but results in denial of service by crashing applications using the affected library. Exploitation requires no privileges or user interaction and can be performed remotely by supplying malicious JSON input. The issue is fixed in version 3. 4.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability identified as CVE-2026-32141 affects the WebReflection flatted library, a tool used for parsing circular JSON structures in Node.js environments. Prior to version 3.4.0, the parse() function internally uses a recursive revive() method to reconstruct circular references during deserialization. This recursive approach lacks bounds checking on recursion depth when processing crafted JSON payloads containing deeply nested or self-referential $ indices. An attacker can exploit this by sending malicious JSON data that triggers unbounded recursion, leading to a stack overflow condition. This overflow causes the Node.js process to crash, resulting in a denial of service (DoS). The vulnerability is classified under CWE-674 (Uncontrolled Recursion) and has a CVSS v3.1 score of 7.5, indicating high severity. The attack vector is network-based with no required privileges or user interaction, making it relatively easy to exploit remotely. No known exploits are currently reported in the wild, but the impact on availability is significant for affected applications. The issue was addressed in flatted version 3.4.0 by implementing safeguards to limit recursion depth or refactoring the revive() logic to prevent stack overflow. Since flatted is widely used in Node.js applications for handling circular JSON, this vulnerability poses a risk to any service deserializing untrusted JSON input using vulnerable versions.
Potential Impact
The primary impact of CVE-2026-32141 is denial of service through application crashes caused by stack overflow in Node.js processes using vulnerable flatted versions. This can disrupt web services, APIs, and backend systems relying on flatted for JSON parsing, potentially leading to downtime and degraded user experience. Although the vulnerability does not compromise data confidentiality or integrity, repeated exploitation could be used to degrade service availability or as part of a larger attack chain. Organizations with high-availability requirements or those exposing JSON parsing endpoints to untrusted inputs are particularly at risk. The ease of exploitation without authentication or user interaction increases the threat level, especially for internet-facing applications. Additionally, automated attacks could target vulnerable systems to cause widespread outages or service interruptions. The lack of known exploits in the wild suggests limited current exploitation but does not preclude future attacks once the vulnerability becomes widely known.
Mitigation Recommendations
To mitigate CVE-2026-32141, organizations should immediately upgrade the flatted library to version 3.4.0 or later, where the recursion issue is fixed. Developers should audit their dependencies to identify and update any usage of vulnerable flatted versions. Implement input validation and JSON schema validation to restrict deeply nested or suspicious circular references in incoming JSON payloads. Employ runtime monitoring and alerting for unexpected Node.js process crashes or high recursion stack usage. Consider sandboxing or isolating JSON parsing operations to limit the blast radius of potential crashes. For critical systems, implement rate limiting and filtering on endpoints that accept JSON input to reduce exposure to crafted payloads. Additionally, maintain up-to-date dependency management practices and monitor vulnerability advisories for related issues. If upgrading is not immediately feasible, applying application-level checks to detect and reject overly complex or recursive JSON structures can provide temporary protection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-10T22:19:36.546Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69b302c82f860ef943d65df6
Added to database: 3/12/2026, 6:15:36 PM
Last enriched: 3/20/2026, 2:32:29 AM
Last updated: 4/28/2026, 5:16:16 AM
Views: 147
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.