ADVISORIES

GitHub Advisory Database

GHSA-23wx-cgxq-vpwx

Prototype Pollution in dset

Moderate CVE-2022-25645

Details

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.

Affected packages

EcosystemPackageAffected versions
npmdset
All versions before 3.1.2 (fixed in 3.1.2)
Mavenorg.webjars.npm:dset
All versions before 3.1.2 (fixed in 3.1.2)

References