CVE-2010-2273: Dojo Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-536q-8gxx-m782
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2010-2273
GHSA Identifier GHSA-536q-8gxx-m782
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Dojo
Package Ecosystem npm
Published Date
Last Updated

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.

dojo fixed: 1.13.1
npm install dojo@1.13.1
dojo fixed: 1.12.4
npm install dojo@1.12.4
dojo fixed: 1.11.6
npm install dojo@1.11.6
dojo fixed: 1.10.10
npm install dojo@1.10.10
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Upgrade to version 1.4.2 or later.

CVE-2010-2273 Affected Dojo Versions

4 component(s)
Fixed Versions:
1.13.11.12.41.11.61.10.10
Product / Package Ecosystem Affected Versions Fixed Version
dojo
npm
≥ 1.13.0
< 1.13.1
All 1 versions
1.13.0
1.13.1
dojo
npm
≥ 1.12.0
< 1.12.4
1.12.4
dojo
npm
≥ 1.11.0
< 1.11.6
1.11.6
dojo
npm
≥ 1.10.0
< 1.10.10
1.10.10

References

NVD — CVE-2010-2273 NVD
https://nvd.nist.gov/vuln/detail/CVE-2010-2273
Dojo Source Repository REPOSITORY
https://github.com/dojo/dojo/pull/307
Security Fix Commit FIX COMMIT
https://github.com/dojo/dojo/commit/9117ffd5a3863e44c92fcd58564c0da22be858f4
Dojo Security Information SECURITY
https://bugs.dojotoolkit.org/ticket/10773
www.npmjs.com/advisories/972 WEB
https://www.npmjs.com/advisories/972
Dojo Security Information SECURITY
http://bugs.dojotoolkit.org/ticket/10773
Dojo Security Information SECURITY
http://dojotoolkit.org/blog/post/dylan/2010/03/dojo-security-advisory
secunia.com/advisories/38964 WEB
http://secunia.com/advisories/38964
secunia.com/advisories/40007 WEB
http://secunia.com/advisories/40007
www-01.ibm.com/support/docview.wss WEB
http://www-01.ibm.com/support/docview.wss?uid=swg21431472
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50833
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50849
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50856
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50896
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50932
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50958
www-1.ibm.com/support/docview.wss WEB
http://www-1.ibm.com/support/docview.wss?uid=swg1LO50994
Dojo Security Information SECURITY
http://www.gdssecurity.com/l/b/2010/03/12/multiple-dom-based-xss-in-dojo-toolkit-sdk
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2010/1281

Frequently Asked Questions

What is CVE-2010-2273?
CVE-2010-2273 is a security vulnerability in Dojo involving Cross-Site Scripting in dojo under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Dojo versions are affected?
Affected versions include releases prior to 1.13.1, 1.12.4, 1.11.6, 1.10.10 across affected packages: dojo.
What version fixes CVE-2010-2273?
Upgrading to 1.13.1, 1.12.4, 1.11.6, 1.10.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dojo affected?
Yes, dojo is affected in releases prior to 1.13.1, 1.12.4, 1.11.6, 1.10.10. Upgrade your dependency to 1.13.1, 1.12.4, 1.11.6, 1.10.10 or later.
What CWE is associated with CVE-2010-2273?
CVE-2010-2273 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for CVE-2010-2273?
Run the dependency tree command: 'npm ls dojo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}