ModerateVulnerabilityGHSA-23wx-cgxq-vpwxCVE-2022-25645Published 3 May 2022
Prototype Pollution in dset
Your version
Affected releases · dset
- 3.x3.0.0 – 3.1.1Fixed in 3.1.2
- 2.x and older0.0.0 – 2.1.0No fix, no longer updated
On 3.x, the newest line:
npm install dset@3.1.2Every release on a timeline
3.x
Affected
3.0.0 – 3.1.1
3 releases
Fixed
3.1.2 – 3.1.4
3 releases, latest
2.x
Affected
2.0.0 – 2.1.0
3 releases
1.x
Affected
1.0.0 – 1.0.1
2 releases
0.x
Affected
0.0.0
1 release
What happens
All versions of dset prior to 3.1.2 are vulnerable to Prototype Pollution via dset/merge mode, as the dset function checks for prototype pollution by validating if the top-level path contains __proto__, constructor or prototype. By crafting a malicious object, it is possible to bypass this check and achieve prototype pollution.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.