CVE-2020-28503: Prototype Pollution in copy-props

copy-props Updated 02 Oct 2025

Summary

06/01/2022
Yes i
High
7.3

CVE-2020-28503: Prototype Pollution in copy-props. Affects copy-props versions < 2.0.5. Fixed in 2.0.5. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The copy-props package is an npm package that provides functionality for copying properties from one object to another. It is commonly used in JavaScript applications to facilitate object manipulation and data copying. However, versions of copy-props before 2.0.5 are vulnerable to Prototype Pollution, a type of vulnerability that allows an attacker to modify the prototype of an object and potentially execute arbitrary code.

Vulnerability Detail

The vulnerability in copy-props arises from improper handling of user-supplied input. By manipulating the properties of an object, an attacker can pollute the prototype chain and introduce malicious behavior. This can lead to a range of security issues, including remote code execution, data tampering, and denial of service attacks. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.3.

How To Fix

Minimum fixed version

2.0.5

This is the first release that contains the fix.

npm install copy-props@2.0.5

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 crucial to update to the fixed version of the package to mitigate the risk of exploitation.

Conclusion

The copy-props package before version 2.0.5 is vulnerable to Prototype Pollution, which can have severe security implications. It is crucial to update to the fixed version of the package (2.0.5 or later) to mitigate the risk of exploitation. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for copy-props →

Share this vulnerability

FAQ

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

This vulnerability can result in remote code execution, data tampering, and denial of service attacks.

Yes, upgrading to version 2.0.5 or later of the copy-props package fixes this vulnerability.

No, updating to the fixed version of the package is the only recommended solution.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your package-lock.json file, and Vulert will analyze it for vulnerabilities.

How To Fix

Minimum fixed version

2.0.5

This is the first release that contains the fix.

npm install copy-props@2.0.5

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