Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. devalue
  4. ›
  5. GHSA-mwv9-gp5h-frr4

GHSA-mwv9-gp5h-frr4: Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties

March 12, 2026 (updated June 26, 2026)

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

References

  • github.com/advisories/GHSA-mwv9-gp5h-frr4
  • github.com/sveltejs/devalue/commit/87c1f3ce3759765a061cfe34843ecc4b0711ba8d
  • github.com/sveltejs/devalue/releases/tag/v5.6.4
  • github.com/sveltejs/devalue/security/advisories/GHSA-mwv9-gp5h-frr4

Code Behaviors & Features

Detect and mitigate GHSA-mwv9-gp5h-frr4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0 before 5.6.4

Fixed versions

  • 5.6.4

Solution

Upgrade to version 5.6.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/devalue/GHSA-mwv9-gp5h-frr4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.