CVE-2018-3722: Prototype Pollution in merge-deep

merge-deep Updated 02 Oct 2025

Summary

26/07/2018
Yes i
High
8.8

CVE-2018-3722: Prototype Pollution in merge-deep. Affects merge-deep versions < 3.0.1. Fixed in 3.0.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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

merge-deep is an npm package that provides a function for merging JavaScript objects deeply. It is commonly used to combine multiple objects into a single object, with the values of the later objects overwriting the values of the earlier objects. This package is vulnerable to prototype pollution, which is a vulnerability that allows an attacker to modify the prototype of an object and potentially execute arbitrary code or modify the behavior of the application.

Vulnerability Detail

The vulnerability in merge-deep arises from the improper handling of merging functions. Versions of merge-deep prior to 3.0.1 are affected. An attacker can exploit this vulnerability by providing a specially crafted object with a malicious prototype. When this object is merged with other objects using merge-deep, the malicious prototype can be injected into the resulting object, leading to prototype pollution. The impact of this vulnerability can vary depending on how the merged object is used in the application. It could potentially lead to remote code execution, data manipulation, or denial of service.

How To Fix

Minimum fixed version

3.0.1

This is the first release that contains the fix.

npm install merge-deep@3.0.1

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

Conclusion

The merge-deep package prior to version 3.0.1 is vulnerable to prototype pollution. It is important to update to the latest version to mitigate the risk of this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for merge-deep →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that allows an attacker to modify the prototype of an object, which can lead to arbitrary code execution or modification of application behavior.

The merge-deep package prior to version 3.0.1 does not properly handle merging functions, which can result in prototype pollution.

The impact of this vulnerability can vary depending on how the merged object is used in the application. It could potentially lead to remote code execution, data manipulation, or denial of service.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and the playground will analyze it for vulnerabilities.

There is no known workaround for this vulnerability. It is recommended to update merge-deep to the latest version to fix the issue.

Related vulnerabilities

Recent vulnerabilities recorded for merge-deep.

How To Fix

Minimum fixed version

3.0.1

This is the first release that contains the fix.

npm install merge-deep@3.0.1

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.