CVE-2021-23568
CRITICAL 9.8CVSS 3.1Prototype Pollution in extend2
The package extend2 before 1.0.1 are vulnerable to Prototype Pollution via the extend function due to unsafe recursive merge.
- Published
- 10 Jan 2022
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-gjm5-83cw-p3p2SNYK-JS-EXTEND2-2320315
- Sources
- NVDJSONOSV GHSA-gjm5-83cw-p3p2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | eggjs | extend2cpe:2.3:a:eggjs:extend2:*:*:*:*:*:node.js:*:* |
< 1.0.1 | 1.0.1 |
| OSV | npm | extend2 | < 1.0.1 | 1.0.1 |
References
- https://github.com/eggjs/extend2/blob/master/index.js%23L50-L60 · Broken Link, WEB
- https://github.com/eggjs/extend2/commit/aa332a59116c8398976434b57ea477c6823054f8 · Patch, Third Party Advisory, WEB
- https://github.com/eggjs/extend2/pull/2 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-EXTEND2-2320315 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23568 · ADVISORY
- https://github.com/eggjs/extend2 · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Jan 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Jan 2022)