CVE-2015-6584: Datatables Cross-Site Scripting Vulnerability
HIGHCVE-2015-6584 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Datatables libraries in the npm ecosystem. The issue involves datatable vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 1.10.10.
CVE-2015-6584 at a Glance
How to Fix CVE-2015-6584
To remediate this vulnerability, upgrade all affected Datatables 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 datatables@1.10.10
Upgrade datatables/datatables to 1.10.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls datatables
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-6584, inspect your project dependencies using npm:
npm ls datatables
Analyze the terminal output to locate any version of Datatables in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.10), your application is affected.
Note: The npm ls datatables 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 Datatables, 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-2015-6584 Affected Datatables Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
datatables
|
npm |
< 1.10.10
|
1.10.10
|
|
datatables/datatables
|
Packagist |
< 1.10.10
|
1.10.10
|
References
Frequently Asked Questions
What is CVE-2015-6584?
Which Datatables versions are affected?
What version fixes CVE-2015-6584?
Is datatables affected?
Is datatables/datatables affected?
What CWE is associated with CVE-2015-6584?
How can I check npm dependencies for CVE-2015-6584?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4mv4-gmmf-q382",
"modified" : "2022-08-03T22:59:15Z",
"published" : "2020-08-31T22:42:29Z",
"aliases" : [ "CVE-2015-6584" ],
"summary" : "DataTable Vulnerable to Cross-Site Scripting",
"details" : "Cross-site scripting (XSS) vulnerability in the DataTables plugin 1.10.8 and earlier for jQuery allows remote attackers to inject arbitrary web script or HTML via the scripts parameter to media/unit_testing/templates/6776.php.\n\n\n## Recommendation\n\nUpdate to a version greater than 1.10.8. A [fix](https://github.com/DataTables/DataTablesSrc/commit/ccf86dc5982bd8e16d) appears in [version 1.10.10](https://github.com/DataTables/DataTablesSrc/commits/1.10.10?after=9780a3693572757d87bf70e48bd7555faf974f28+34&branch=1.10.10&qualified_name=refs%2Ftags%2F1.10.10).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "datatables"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "datatables/datatables"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-6584"
}, {
"type" : "WEB",
"url" : "https://github.com/DataTables/DataTables/issues/602"
}, {
"type" : "WEB",
"url" : "https://github.com/DataTables/DataTablesSrc/commit/ccf86dc5982bd8e16d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DataTables/DataTables"
}, {
"type" : "WEB",
"url" : "https://github.com/DataTables/DataTablesSrc/commits/1.10.10?after=9780a3693572757d87bf70e48bd7555faf974f28+34&branch=1.10.10&qualified_name=refs%2Ftags%2F1.10.10"
}, {
"type" : "WEB",
"url" : "https://www.netsparker.com/cve-2015-6384-xss-vulnerability-identified-in-datatables"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/5"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/133555/DataTables-1.10.8-Cross-Site-Scripting.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2015/Sep/37"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/archive/1/536437/100/0/threaded"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/archive/1/archive/1/536437/100/0/threaded"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:07:30Z",
"nvd_published_at" : null
}
}