CVE-2021-23442: Prototype Pollution in @cookiex/deep

@cookiex/deep Updated 02 Oct 2025

Summary

20/09/2021
Yes i
High
8.6

CVE-2021-23442: Prototype Pollution in cookiex/deep. Affects @cookiex/deep versions < 0.0.7. Fixed in 0.0.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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @cookiex/deep package is an npm package that provides functionality for deep object manipulation. It allows users to perform operations such as deep merging, deep cloning, and deep comparison of JavaScript objects. However, versions prior to 0.0.7 are vulnerable to prototype pollution.

Vulnerability Detail

Prototype pollution is a vulnerability that occurs when an attacker can inject properties into existing JavaScript objects. In the case of @cookiex/deep, the global proto object can be polluted using the proto object. This can lead to various security issues, including remote code execution, denial of service, and data integrity violations.

How To Fix

Latest published version: 0.0.7 as of 23 Oct 2026

npm install @cookiex/deep@0.0.7

The newest release already contains this fix.

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

Conclusion

The @cookiex/deep package prior to version 0.0.7 is vulnerable to prototype pollution. This can lead to serious security issues, including remote code execution and data integrity violations. Users should upgrade to version 0.0.7 or later to fix this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for @cookiex/deep →

Share this vulnerability

FAQ

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

The prototype pollution vulnerability in @cookiex/deep can lead to remote code execution, denial of service, and data integrity violations.

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 alert you if the vulnerability is present.

Yes, upgrading to version 0.0.7 or later of the @cookiex/deep package will fix the prototype pollution vulnerability.

There are no known workarounds for this vulnerability. It is recommended to upgrade to the fixed version of the package.

How To Fix

Latest published version: 0.0.7 as of 23 Oct 2026

npm install @cookiex/deep@0.0.7

The newest release already contains this fix.

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