Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. extend2
  4. ›
  5. CVE-2021-23568

CVE-2021-23568: Prototype Pollution in extend2

January 10, 2022 (updated January 13, 2022)

The package extend2 is vulnerable to Prototype Pollution via the extend function due to unsafe recursive merge.

References

  • github.com/advisories/GHSA-gjm5-83cw-p3p2
  • github.com/eggjs/extend2/blob/master/index.js%23L50-L60
  • github.com/eggjs/extend2/commit/aa332a59116c8398976434b57ea477c6823054f8
  • github.com/eggjs/extend2/pull/2
  • nvd.nist.gov/vuln/detail/CVE-2021-23568
  • snyk.io/vuln/SNYK-JS-EXTEND2-2320315

Code Behaviors & Features

Detect and mitigate CVE-2021-23568 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.1

Fixed versions

  • 1.0.1

Solution

Upgrade to version 1.0.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/extend2/CVE-2021-23568.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:57 +0000.