CVE-2020-28280: Prototype Pollution Vulnerability in predefine

predefine Updated 02 Oct 2025

Summary

12/10/2021
Yes i
Critical
9.8

CVE-2020-28280: Prototype pollution vulnerability in 'predefine'. Affects predefine versions < 0.1.3. Fixed in 0.1.3. 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

predefine is an npm package that provides functionality for defining and manipulating JavaScript prototypes. It is commonly used in JavaScript applications to extend object prototypes and add new properties or methods. The package is vulnerable to a prototype pollution vulnerability in versions 0.0.0 through 0.1.2.

Vulnerability Detail

The vulnerability in predefine allows an attacker to perform prototype pollution, which can lead to a denial of service (DoS) attack and potentially remote code execution. By manipulating the prototype of an object, an attacker can modify or add properties to all instances of that object, potentially leading to unexpected behavior or security vulnerabilities in the application.

How To Fix

Minimum fixed version

0.1.3

This is the first release that contains the fix.

npm install predefine@0.1.3

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

Workaround

If upgrading to the latest version is not possible, a possible workaround is to avoid using the affected functionality or to implement input validation and sanitization to prevent malicious input from causing prototype pollution.

Conclusion

The predefine package is vulnerable to a prototype pollution vulnerability in versions 0.0.0 through 0.1.2. To mitigate the risk, it is recommended to upgrade to version 0.1.3 or later. If upgrading is not possible, implementing input validation and sanitization can help prevent the exploitation of this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for predefine →

Share this vulnerability

FAQ

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

The vulnerability can lead to a denial of service (DoS) attack and potentially remote code execution, depending on how the application uses the affected functionality.

Yes, upgrading to version 0.1.3 or later of the predefine package fixes the vulnerability.

If upgrading is not possible, implementing input validation and sanitization can help mitigate the risk of prototype pollution.

You can find more information about this vulnerability in the GitHub Advisory Database: [link to the vulnerability details]

How To Fix

Minimum fixed version

0.1.3

This is the first release that contains the fix.

npm install predefine@0.1.3

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