VDB
Sign up
MEDIUM6.3

GHSA-4q55-j62x-fr9h

devalue: Malformed null-prototype object keys bypass __proto__ rejection via property-key coercion

Quick fix

GHSA-4q55-j62x-fr9h — devalue: upgrade to the fixed version with the command below.

npm install devalue@5.9.3

Details

This is another instance of https://github.com/sveltejs/devalue/security/advisories/GHSA-mwv9-gp5h-frr4, where some payloads could cause `parse` to create objects with a `__proto__` own property. This on its own is not enough to cause prototype pollution, and indeed this is actually how `JSON.parse` works, but we decided to be a little more defensive here and not allow the creation of objects with `__proto__` own-properties. It is very unlikely for this to cause any issues.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/devalue
Introduced in: 0Fixed in: 5.9.3
Fixnpm install devalue@5.9.3

References