Prototype Pollution Vulnerability in Dojo Package

dojo Updated 02 Oct 2025

Summary

10/03/2020
N/A
Yes i
Unrated
Not published

CVE-2020-5258: In affected versions of dojo (NPM package), the deepCopy method is vulnerable to Prototype Pollution. Affects dojo across 2 version ranges.

< 1.15.3+dfsg1-1 < 20a00afb68f5587946dc76fbeaa68c39bda2171d

Fixed in 1.15.3+dfsg1-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 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

Dojo is a robust JavaScript toolkit that facilitates the development of dynamic web applications. It provides a wide range of features, including a rich set of UI components, data management capabilities, and utilities for building responsive applications. However, certain versions of Dojo are vulnerable to a Prototype Pollution issue, which can lead to severe security risks if exploited.

Vulnerability Detail

The vulnerability, identified as CVE-2020-5258, arises from the deepCopy method in the Dojo package. This method is susceptible to Prototype Pollution, allowing attackers to inject properties into existing JavaScript object prototypes. By manipulating these attributes, an attacker can overwrite or pollute the base object prototype, potentially leading to unauthorized access or manipulation of application data. The implications of this vulnerability can be significant, as it may compromise the integrity and security of the application.

How To Fix

Minimum fixed version

1.15.3+dfsg1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade dojo

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

Workaround

If immediate upgrading is not feasible, a temporary workaround is to validate and sanitize inputs to the deepCopy method to prevent malicious property injection. However, this is not a substitute for upgrading the package.

Conclusion

The CVE-2020-5258 vulnerability in the Dojo package poses significant security risks due to its Prototype Pollution nature. Users are strongly advised to upgrade to the latest patched versions to mitigate these risks. Regular monitoring and vulnerability assessments, such as those provided by Vulert, can help maintain application security.

See every vulnerability recorded for dojo →

Share this vulnerability

FAQ

Prototype Pollution is a security vulnerability that allows an attacker to inject properties into the prototypes of JavaScript objects, potentially leading to unexpected behavior in applications.

Affected versions include all versions prior to 1.12.8, 1.13.7, 1.14.6, 1.15.3, and 1.16.2.

You can use Vulert, which monitors open-source vulnerabilities in your software using just a manifest file like package-lock.json. Visit Vulert Scanner to check if your application is affected without needing to sign up.

The CVSS score for this vulnerability is 7.7, indicating a high severity level.

Exploitation of this vulnerability can lead to unauthorized access, data manipulation, and overall compromise of the application's security.

Related vulnerabilities

Recent vulnerabilities recorded for dojo.

How To Fix

Minimum fixed version

1.15.3+dfsg1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade dojo

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