Prototype Pollution in extend
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
If you're using extend 3.x upgrade to 3.0.2 or later.
If you're using extend 2.x upgrade to 2.0.2 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | extend | >= 3.0.0, < 3.0.2, >= 1.1.3, < 2.0.2 | 3.0.2, 2.0.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-16492
- https://github.com/github/advisory-database/pull/6695
- https://github.com/justmoon/node-extend/pull/48
- https://github.com/justmoon/node-extend/commit/0e68e71d93507fcc391e398bc84abd0666b28190
- https://hackerone.com/reports/381185
- https://github.com/justmoon/node-extend
- Weakness (CWE)
CWE-400- Platform
- npm
- Package
extend- Disclosed
- 07.02.2019
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-qrmc-fj45-qfc2 - CC BY 4.0
Vulnerability history: extend
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.