Description
Versions of extend prior to 3.0.2 (for 3.x) and 2.0.2 (for 2.x) are vulnerable to Prototype Pollution. The extend() function allows attackers to modify the prototype of Object causing the addition or modification of an existing property that will exist on all objects.
Recommendation
Update the extend package to the latest compatible version. Followings are version details:
Affected version(s): **>= 1.1.3, < 2.0.2 >= 3.0.0, < 3.0.2** Patched version(s): **2.0.2 3.0.2**
References
Could your website be exposed too?
SmartScanner can check your website for Prototype Pollution in extend and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Quasar: Prototype pollution in the extend() utility - CVE-2026-73647
- Prototype Pollution in merge-options - CVE-2018-3752
- mockjs vulnerable to Prototype Pollution via the Util.extend function - CVE-2023-26158
- Prototype Pollution in async merge-object - CVE-2018-3753


