Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. extend
  4. ›
  5. CVE-2018-16492

CVE-2018-16492: Prototype Pollution in extend

February 7, 2019 (updated January 22, 2026)

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.

References

  • github.com/advisories/GHSA-qrmc-fj45-qfc2
  • github.com/github/advisory-database/pull/6695
  • github.com/justmoon/node-extend
  • github.com/justmoon/node-extend/commit/0e68e71d93507fcc391e398bc84abd0666b28190
  • github.com/justmoon/node-extend/pull/48
  • hackerone.com/reports/381185
  • nvd.nist.gov/vuln/detail/CVE-2018-16492

Code Behaviors & Features

Detect and mitigate CVE-2018-16492 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.1.3 before 2.0.2, all versions starting from 3.0.0 before 3.0.2

Fixed versions

  • 3.0.2
  • 2.0.2

Solution

Upgrade to versions 2.0.2, 3.0.2 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/extend/CVE-2018-16492.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:36:48 +0000.