GHSA-mwv9-gp5h-frr4

Suggest an improvement
Source
https://github.com/advisories/GHSA-mwv9-gp5h-frr4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-mwv9-gp5h-frr4/GHSA-mwv9-gp5h-frr4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mwv9-gp5h-frr4
Published
2026-03-12T16:38:15Z
Modified
2026-05-14T21:49:07.005215Z
Severity
  • 2.7 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties
Details

In some circumstances, devalue.parse and devalue.unflatten could emit objects with __proto__ own properties. This in and of itself is not a security vulnerability (and is possible with, for example, JSON.parse as well), but it can result in prototype injection if downstream code handles it incorrectly:

const result = devalue.parse(/* input creating an object with a __proto__ property */);
const target = {};
Object.assign(target, result); // target's prototype is now polluted
Database specific
{
    "severity": "LOW",
    "cwe_ids": [
        "CWE-1321"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-03-12T16:38:15Z",
    "nvd_published_at": null
}
References

Affected packages

npm / devalue

Package

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0
Fixed
5.6.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-mwv9-gp5h-frr4/GHSA-mwv9-gp5h-frr4.json"