Prototype Pollution Vulnerability in Node-Extend Package

node-extend Updated 02 Oct 2025

Summary

01/02/2019
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2018-16491: A prototype pollution vulnerability was found in node.extend. Affects node-extend versions < 3.0.2-1. Fixed in 3.0.2-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Node-extend is a popular JavaScript library used in Node.js applications for extending objects with properties from other objects. It allows developers to create new objects by merging properties, making it easier to manage and manipulate data structures. However, certain versions of node-extend are vulnerable to a prototype pollution issue, which can lead to security risks if exploited by attackers.

Vulnerability Detail

A prototype pollution vulnerability was identified in node.extend versions prior to 1.1.7 and between 1.1.7 and 2.0.1. This vulnerability allows an attacker to inject arbitrary properties onto Object.prototype, which can lead to unexpected behavior in applications that rely on object properties. The origin of this issue lies in the way node-extend handles object merging, allowing malicious input to alter the prototype chain of objects, potentially compromising the integrity of the application.

How To Fix

Minimum fixed version

3.0.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-extend

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you cannot update the package immediately, consider implementing input validation to sanitize any data being merged into objects. This can help prevent malicious properties from being injected into Object.prototype.

Conclusion

The prototype pollution vulnerability in the node-extend package poses significant security risks to applications using affected versions. It is crucial to update to the patched version 3.0.2-1 or later to safeguard your application. Additionally, implementing input validation can serve as a temporary measure to mitigate risks until an update can be applied.

See every vulnerability recorded for node-extend →

Share this vulnerability

FAQ

Prototype pollution is a security vulnerability that allows an attacker to modify the prototype of built-in objects in JavaScript, potentially leading to unexpected behavior and security issues.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploiting this vulnerability can lead to unauthorized access, data manipulation, and other security risks, as it allows attackers to modify the behavior of objects in your application.

Yes, implementing input validation to sanitize data before merging it into objects can help mitigate the risk of prototype pollution.

You can find more information about the node-extend package on its official repository or documentation site.

Related vulnerabilities

Recent vulnerabilities recorded for node-extend.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.0.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-extend

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback