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-30226: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in sveltejs devalue

0
Medium
VulnerabilityCVE-2026-30226cvecve-2026-30226cwe-1321
Published: Wed Mar 11 2026 (03/11/2026, 17:47:40 UTC)
Source: CVE Database V5
Vendor/Project: sveltejs
Product: devalue

Description

Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. In devalue v5.6.3 and earlier, devalue.parse and devalue.unflatten were susceptible to prototype pollution via maliciously crafted payloads. Successful exploitation could lead to Denial of Service (DoS) or type confusion. This vulnerability is fixed in 5.6.4.

AI-Powered Analysis

AILast updated: 03/11/2026, 18:49:16 UTC

Technical Analysis

The vulnerability identified as CVE-2026-30226 affects the sveltejs devalue JavaScript library, specifically versions earlier than 5.6.4. Devalue is used to serialize JavaScript values into strings when JSON.stringify is insufficient. The flaw lies in the improper control of object prototype attributes during the parsing and unflattening processes (devalue.parse and devalue.unflatten). An attacker can craft malicious payloads that exploit this weakness to perform prototype pollution, a technique where the prototype of a base object is modified. This can result in unexpected behavior such as Denial of Service (DoS) due to application crashes or type confusion errors that may disrupt normal program logic. The vulnerability does not require any privileges or user interaction but has a high attack complexity, meaning exploitation is non-trivial but feasible. The vulnerability is tracked under CWE-1321, which relates to improper control of prototype attributes. The issue was publicly disclosed on March 11, 2026, and fixed in version 5.6.4 of the devalue library. No known exploits have been observed in the wild, but the medium severity score reflects the potential impact if exploited.

Potential Impact

If exploited, this vulnerability can cause Denial of Service conditions by crashing applications that rely on the devalue library for serialization, potentially disrupting services and causing downtime. Type confusion may lead to unpredictable application behavior, which could be leveraged in complex attack chains or to bypass security controls. Since devalue is a dependency in the Svelte ecosystem, applications built with Svelte that use vulnerable versions of devalue are at risk. The impact is primarily on application availability and integrity rather than confidentiality. Organizations relying on Svelte-based front-end frameworks or server-side rendering that incorporate devalue may experience service interruptions or degraded functionality. Although no active exploits are known, the vulnerability could be targeted by attackers seeking to disrupt web applications or inject subtle logic errors.

Mitigation Recommendations

The primary mitigation is to upgrade the devalue library to version 5.6.4 or later, where the vulnerability is patched. Developers should audit their dependency trees to identify any usage of vulnerable devalue versions, including transitive dependencies in Svelte projects. Implementing strict input validation and sanitization on data passed to devalue.parse and devalue.unflatten can reduce the risk of malicious payloads. Additionally, employing runtime protections such as Content Security Policy (CSP) and sandboxing can limit the impact of potential exploitation. Monitoring application logs for unusual errors or crashes related to serialization may help detect attempted exploitation. Finally, maintain an up-to-date software supply chain management process to quickly respond to such vulnerabilities in dependencies.

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-04T17:23:59.797Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69b1b88a2f860ef94360216b

Added to database: 3/11/2026, 6:46:34 PM

Last enriched: 3/11/2026, 6:49:16 PM

Last updated: 3/13/2026, 11:21:13 PM

Views: 18

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