CVE-2026-30226: Devalue Devalue Has Prototype Pollution Vulnerability
MODERATECVE-2026-30226 is a MODERATE devalue has prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Devalue libraries in the npm ecosystem. The issue involves devalue has prototype pollution in devalue.parse and devalue.unflatten. Remediation is available by upgrading affected packages to version 5.6.4.
CVE-2026-30226 at a Glance
How to Fix CVE-2026-30226
To remediate this vulnerability, upgrade all affected Devalue dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install devalue@5.6.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls devalue
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-30226, inspect your project dependencies using npm:
npm ls devalue
Analyze the terminal output to locate any version of Devalue in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.4), your application is affected.
Note: The npm ls devalue command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Devalue, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-30226 Affected Devalue Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
devalue
|
npm |
< 5.6.4
|
5.6.4
|
References
Frequently Asked Questions
What is CVE-2026-30226?
Which Devalue versions are affected?
What version fixes CVE-2026-30226?
Is devalue affected?
What CWE is associated with CVE-2026-30226?
How can I check npm dependencies for CVE-2026-30226?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cfw5-2vxh-hr84",
"modified" : "2026-03-12T14:13:03Z",
"published" : "2026-03-12T14:13:03Z",
"aliases" : [ "CVE-2026-30226" ],
"summary" : "devalue has prototype pollution in devalue.parse and devalue.unflatten",
"details" : "In devalue v5.6.3, `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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "devalue"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.6.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sveltejs/devalue/security/advisories/GHSA-cfw5-2vxh-hr84"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30226"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sveltejs/devalue"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-12T14:13:03Z",
"nvd_published_at" : "2026-03-11T18:16:22Z"
}
}