Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32141: CWE-674: Uncontrolled Recursion in WebReflection flatted

0
High
VulnerabilityCVE-2026-32141cvecve-2026-32141cwe-674
Published: Thu Mar 12 2026 (03/12/2026, 18:08:09 UTC)
Source: CVE Database V5
Vendor/Project: WebReflection
Product: flatted

Description

flatted is a circular JSON parser. Prior to 3.4.0, 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. This vulnerability is fixed in 3.4.0.

AI-Powered Analysis

AILast updated: 03/12/2026, 18:29:30 UTC

Technical Analysis

The WebReflection flatted library is designed to parse and stringify JSON data containing circular references, which standard JSON cannot handle. Prior to version 3.4.0, the parse() function internally uses a recursive revive() function to reconstruct circular references during deserialization. This recursive approach does not impose limits on recursion depth, allowing an attacker to craft malicious JSON payloads with deeply nested or self-referential $ indices. When such a payload is parsed, the recursion depth grows without bound, causing a stack overflow in the Node.js process hosting the application. This results in a crash, effectively causing a denial of service. The vulnerability is classified under CWE-674 (Uncontrolled Recursion) and has a CVSS v3.1 base score of 7.5, indicating high severity. The attack vector is network-based (AV:N), requires no privileges (PR:N), no user interaction (UI:N), and affects availability only (A:H) without impacting confidentiality or integrity. No known exploits are currently reported in the wild, but the vulnerability is publicly disclosed and fixed in flatted version 3.4.0. The flaw is particularly relevant for applications that accept and parse JSON input from untrusted sources using vulnerable flatted versions in Node.js environments.

Potential Impact

The primary impact of this vulnerability is denial of service through application crashes caused by stack overflow. Organizations running Node.js applications that utilize vulnerable versions of the flatted library for JSON parsing are at risk of service interruptions. This can affect web services, APIs, and backend systems that rely on flatted to handle JSON with circular references. While the vulnerability does not compromise data confidentiality or integrity, repeated crashes can degrade service availability, disrupt business operations, and potentially lead to cascading failures in dependent systems. Attackers can exploit this remotely without authentication or user interaction, increasing the risk of automated or large-scale attacks. Industries with high reliance on Node.js microservices or serverless functions parsing complex JSON data are particularly vulnerable. The absence of known exploits suggests a window for proactive mitigation before active exploitation occurs.

Mitigation Recommendations

The most effective mitigation is to upgrade the flatted library to version 3.4.0 or later, where the uncontrolled recursion issue is fixed. Organizations should audit their codebases and dependencies to identify usage of flatted versions below 3.4.0. Additionally, implement input validation and JSON schema validation to limit the complexity and depth of incoming JSON data, rejecting payloads with excessive nesting or suspicious self-referential structures. Employ runtime monitoring and resource limits on Node.js processes to detect and mitigate abnormal recursion or stack usage patterns. Consider sandboxing or isolating services that parse untrusted JSON to contain potential crashes. For critical systems, implement redundancy and failover mechanisms to maintain availability during potential DoS attempts. Finally, maintain awareness of updates from the flatted project and related Node.js security advisories to promptly address emerging threats.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/12/2026, 6:29:30 PM

Last updated: 3/13/2026, 8:50:33 PM

Views: 14

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses