CVE-2018-16489: Prototype Pollution in just-extend

just-extend Updated 02 Oct 2025

Summary

07/02/2019
Yes i
Critical
9.8

CVE-2018-16489: Prototype Pollution in just-extend. Affects just-extend versions < 4.0.0. Fixed in 4.0.0. 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

The just-extend package is an npm package that provides a set of utility functions for extending objects in JavaScript. It allows developers to add or modify properties of objects easily. However, versions of just-extend before 4.0.0 are vulnerable to prototype pollution. This means that certain input can lead to the addition or modification of properties on the Object prototype, affecting all objects in the application.

Vulnerability Detail

The vulnerability in just-extend arises from improper handling of user input, which can be manipulated to modify the Object prototype. This can have various consequences, such as altering the behavior of built-in JavaScript functions or introducing unexpected behavior in the application. An attacker could potentially exploit this vulnerability to execute arbitrary code, escalate privileges, or cause denial of service.

How To Fix

Minimum fixed version

4.0.0

This is the first release that contains the fix.

npm install just-extend@4.0.0

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

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of the package to mitigate the risk.

Conclusion

The just-extend package before version 4.0.0 is vulnerable to prototype pollution, which can have severe security implications. It is crucial to update to version 4.0.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for just-extend →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that occurs when user-controllable input is not properly sanitized or validated, allowing the modification of object prototypes. This can lead to unexpected behavior and potential security risks.

An attacker can exploit this vulnerability by providing specially crafted input that manipulates the just-extend package's functionality to modify the Object prototype. This can lead to various security issues, such as code execution or privilege escalation.

No, only versions before 4.0.0 are vulnerable to prototype pollution. It is crucial to update to version 4.0.0 or later to address this vulnerability.

Yes, updating to version 4.0.0 or later of the just-extend package fixes the prototype pollution vulnerability. It is recommended to update as soon as possible.

No, there is no known workaround for this vulnerability. Updating to the fixed version is the only solution.

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

4.0.0

This is the first release that contains the fix.

npm install just-extend@4.0.0

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