CVE-2018-3720: Prototype Pollution in assign-deep

assign-deep Updated 02 Oct 2025

Summary

26/07/2018
Yes i
High
8.8

CVE-2018-3720: Prototype Pollution in assign-deep. Affects assign-deep versions < 0.4.7. Fixed in 0.4.7. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The assign-deep package is an npm package used for deep merging objects. It provides a function that recursively merges the properties of multiple objects into a single object. This package is vulnerable to prototype pollution when merging functions.

Vulnerability Detail

The vulnerability in assign-deep versions before 0.4.7 is due to a lack of proper input validation when merging functions. An attacker can exploit this vulnerability to modify the prototype of objects, leading to potential remote code execution, information disclosure, or denial of service attacks. This can occur when untrusted user input is passed to the assign-deep function, allowing the pollution of the prototype chain and the modification of existing or newly created properties.

How To Fix

Minimum fixed version

0.4.7

This is the first release that contains the fix.

npm install assign-deep@0.4.7

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 recommended to update to the fixed version of the package as soon as possible.

Conclusion

The assign-deep package versions before 0.4.7 are vulnerable to prototype pollution. It is crucial to update to the fixed version to mitigate the risk of remote code execution, information disclosure, or denial of service attacks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for assign-deep →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that allows an attacker to modify the prototype of objects, leading to potential security issues.

This vulnerability can lead to remote code execution, information disclosure, or denial of service attacks.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. It analyzes the package-lock.json file and alerts in real-time for open-source vulnerabilities.

Yes, the CVSS score for this vulnerability is 8.8, indicating a high severity.

Related vulnerabilities

Recent vulnerabilities recorded for assign-deep.

How To Fix

Minimum fixed version

0.4.7

This is the first release that contains the fix.

npm install assign-deep@0.4.7

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