Vulnerability in dojo - Cross-Site Scripting (XSS) and Prototype Pollution
Summary
DLA-3289-1: dojo - security update. Affects dojo versions < 1.14.2+dfsg1-1+deb10u3. Fixed in 1.14.2+dfsg1-1+deb10u3. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Dojo is a modular JavaScript toolkit that provides a wide range of features and functionalities for building web applications. It offers a collection of reusable components and tools for creating interactive user interfaces. However, versions 1.14.0 to 1.14.7 of dojo are susceptible to two vulnerabilities.
Vulnerability Detail
The first vulnerability, identified as CVE-2020-4051, affects the Dijit Editor's LinkDialog plugin of dojo. It allows for cross-site scripting (XSS) attacks, which can lead to the disclosure of sensitive information. An attacker could exploit this vulnerability by injecting malicious scripts into the LinkDialog plugin, potentially compromising the security of the application.
The second vulnerability, known as CVE-2021-23450, involves prototype pollution via the setObject() function. This vulnerability enables an attacker to modify the prototype of an object, leading to unexpected behavior and potential security issues. By exploiting this vulnerability, an attacker could manipulate the behavior of the affected application and potentially execute arbitrary code.
How To Fix
Minimum fixed version
1.14.2+dfsg1-1+deb10u3
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 →
Conclusion
Upgrading the dojo package to version 1.14.2+dfsg1-1+deb10u3 or later is crucial to mitigate the identified vulnerabilities. By doing so, you ensure that the cross-site scripting (XSS) vulnerability and the prototype pollution vulnerability are addressed, reducing the risk of information disclosure and unauthorized access. If you require further assistance or support in addressing these vulnerabilities, please reach out to DevNack.com.
See every vulnerability recorded for dojo →
FAQ
Dojo is a modular JavaScript toolkit that provides a collection of reusable components and tools for building web applications. It offers features for creating interactive user interfaces and simplifies the development process.
Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. In the case of dojo, the vulnerability (CVE-2020-4051) affects the Dijit Editor's LinkDialog plugin, enabling potential XSS attacks and information disclosure.
Prototype pollution is a vulnerability that occurs when an attacker can modify the prototype of an object, leading to unexpected behavior and potential security issues. In the case of dojo, the vulnerability (CVE-2021-23450) involves prototype pollution via the setObject() function.
The cross-site scripting (XSS) vulnerability (CVE-2020-4051) in dojo can allow attackers to execute malicious scripts within the context of a user's browser, potentially leading to the theft of sensitive information or the manipulation of user sessions. The prototype pollution vulnerability (CVE-2021-23450) can enable attackers to modify the behavior of the affected application, potentially leading to unauthorized access or arbitrary code execution.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by these vulnerabilities. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software. Simply upload your manifest file to the playground, and it will provide information on any identified vulnerabilities.
Related vulnerabilities
Recent vulnerabilities recorded for dojo.