CVE-2010-2273: Dojo Cross-Site Scripting Vulnerability
MODERATECVE-2010-2273 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Dojo libraries in the npm ecosystem. The issue involves cross-site scripting in dojo. Remediation is available by upgrading affected packages to version 1.13.1, 1.12.4, 1.11.6, 1.10.10.
CVE-2010-2273 at a Glance
How to Fix CVE-2010-2273
To remediate this vulnerability, upgrade all affected Dojo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install dojo@1.13.1
npm install dojo@1.12.4
npm install dojo@1.11.6
npm install dojo@1.10.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls dojo
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2010-2273, inspect your project dependencies using npm:
npm ls dojo
Analyze the terminal output to locate any version of Dojo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.1), your application is affected.
Note: The npm ls dojo command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Dojo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2010-2273 Affected Dojo Versions
4 component(s)References
Frequently Asked Questions
What is CVE-2010-2273?
Which Dojo versions are affected?
What version fixes CVE-2010-2273?
Is dojo affected?
What CWE is associated with CVE-2010-2273?
How can I check npm dependencies for CVE-2010-2273?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-536q-8gxx-m782",
"modified" : "2020-08-31T18:42:32Z",
"published" : "2019-09-11T23:02:57Z",
"aliases" : [ "CVE-2010-2273" ],
"summary" : "Cross-Site Scripting in dojo",
"details" : "Versions of `dojo` prior to 1.4.2 are vulnerable to DOM-based Cross-Site Scripting (XSS). The package does not sanitize URL parameters in the `_testCommon.js` and `runner.html` test files, allowing attackers to execute arbitrary JavaScript in the victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 1.4.2 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "dojo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.13.0"
}, {
"fixed" : "1.13.1"
} ]
} ],
"versions" : [ "1.13.0" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dojo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "1.12.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dojo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dojo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2273"
}, {
"type" : "WEB",
"url" : "https://github.com/dojo/dojo/pull/307"
}, {
"type" : "WEB",
"url" : "https://github.com/dojo/dojo/commit/9117ffd5a3863e44c92fcd58564c0da22be858f4"
}, {
"type" : "WEB",
"url" : "https://bugs.dojotoolkit.org/ticket/10773"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/972"
}, {
"type" : "WEB",
"url" : "http://bugs.dojotoolkit.org/ticket/10773"
}, {
"type" : "WEB",
"url" : "http://dojotoolkit.org/blog/post/dylan/2010/03/dojo-security-advisory"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/38964"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/40007"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21431472"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50833"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50849"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50856"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50896"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50932"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50958"
}, {
"type" : "WEB",
"url" : "http://www-1.ibm.com/support/docview.wss?uid=swg1LO50994"
}, {
"type" : "WEB",
"url" : "http://www.gdssecurity.com/l/b/2010/03/12/multiple-dom-based-xss-in-dojo-toolkit-sdk"
}, {
"type" : "WEB",
"url" : "http://www.vupen.com/english/advisories/2010/1281"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-09-04T04:12:06Z",
"nvd_published_at" : null
}
}