CVE-2010-2273: Cross-Site Scripting in dojo

dojo Updated 02 Oct 2025

Summary

11/09/2019
Yes i
Moderate
Not published

CVE-2010-2273: Cross-Site Scripting in dojo. Affects dojo across 4 version ranges.

>= 1.10.0, < 1.10.10 >= 1.11.0, < 1.11.6 >= 1.12.0, < 1.12.4 >= 1.13.0, < 1.13.1

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Also tracked for

The same CVE-2010-2273 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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

Dojo is an open-source JavaScript toolkit that provides a comprehensive set of features for building web applications. It offers a wide range of utilities, modules, and widgets to simplify the development process. However, versions of dojo prior to 1.4.2 are vulnerable to a DOM-based Cross-Site Scripting (XSS) attack. This vulnerability arises from the lack of sanitization of URL parameters in the _testCommon.js and runner.html test files. Exploiting this vulnerability allows attackers to execute arbitrary JavaScript code in the victim's browser.

Vulnerability Detail

The vulnerability in dojo versions prior to 1.4.2 allows for the injection of malicious JavaScript code through URL parameters. This can lead to various security risks, including the theft of sensitive information, session hijacking, and unauthorized actions on behalf of the user. The lack of input sanitization in the affected test files enables attackers to manipulate the execution context of the victim's browser, potentially compromising the integrity and confidentiality of the user's data.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.10.0, < 1.10.10 1.10.10
    npm install dojo@1.10.10
  • >= 1.11.0, < 1.11.6 1.11.6
    npm install dojo@1.11.6
  • >= 1.12.0, < 1.12.4 1.12.4
    npm install dojo@1.12.4
  • >= 1.13.0, < 1.13.1 1.13.1
    npm install dojo@1.13.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to the latest version of dojo is not feasible at the moment, a temporary workaround is to manually sanitize the URL parameters in the _testCommon.js and runner.html test files. This can be done by implementing input validation and sanitization functions to filter out any potentially malicious code. Here is an example of how to sanitize URL parameters in JavaScript:

function sanitizeUrlParams(urlParams) {
  // Implement your sanitization logic here
  return sanitizedParams;
}

Conclusion

The vulnerability in dojo versions prior to 1.4.2 exposes applications to the risk of Cross-Site Scripting (XSS) attacks. To ensure the security of your application, it is crucial to upgrade to version 1.4.2 or later, which includes the necessary patches to mitigate this vulnerability. If upgrading is not immediately possible, implementing manual sanitization of URL parameters in the affected test files can provide temporary protection. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for dojo →

Share this vulnerability

FAQ

This vulnerability allows attackers to execute arbitrary JavaScript code in the victim's browser, potentially leading to the theft of sensitive information, session hijacking, and unauthorized actions on behalf of the user.

Versions of dojo prior to 1.4.2 are affected by this vulnerability.

There are no known public exploits available for this vulnerability at the time of writing. However, it is important to address this vulnerability promptly to prevent potential attacks.

Yes, upgrading to version 1.4.2 or later of dojo fixes this vulnerability by implementing proper sanitization of URL parameters.

While upgrading to the latest version is the recommended solution, you can mitigate the risk by manually sanitizing the URL parameters in the affected test files. Implementing input validation and sanitization functions can help filter out potentially malicious code.

Related vulnerabilities

Recent vulnerabilities recorded for dojo.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.10.0, < 1.10.10 1.10.10
    npm install dojo@1.10.10
  • >= 1.11.0, < 1.11.6 1.11.6
    npm install dojo@1.11.6
  • >= 1.12.0, < 1.12.4 1.12.4
    npm install dojo@1.12.4
  • >= 1.13.0, < 1.13.1 1.13.1
    npm install dojo@1.13.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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