Description
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.
Recommendation
Update the dset package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.1.2
- Patched version(s): 3.1.2
References
Could your website be exposed too?
SmartScanner can check your website for Prototype Pollution in dset and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Prototype Pollution leading to Remote Code Execution in superjson - CVE-2022-23631
- ts-deepmerge before 2.0.2 vulnerable to Prototype Pollution - CVE-2022-25907
- Prototype pollution in Plist before 3.0.5 can cause denial of service - CVE-2022-22912
- Prototype Pollution in protobufjs - CVE-2022-25878


