Vulnerabilities in pkg:npm/datatables

PACKAGE
Advisory Identifier: GHSA-4mv4-gmmf-q382
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/datatables

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/datatables. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4mv4-gmmf-q382 CVE-2015-6584 HIGH DataTable Vulnerable to Cross-Site Scripting

CVE-2015-6584 at a Glance

CVE Identifier CVE-2015-6584
GHSA Identifier GHSA-4mv4-gmmf-q382
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Datatables
Package Ecosystem npm
Published Date
Last Updated

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.

datatables fixed: 1.10.10
npm install datatables@1.10.10
datatables/datatables fixed: 1.10.10
Upgrade datatables/datatables to 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 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

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. ## Recommendation Update 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).

CVE-2015-6584 Affected Datatables Versions

2 component(s)
Fixed Versions:
1.10.10
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?
CVE-2015-6584 is a security vulnerability in Datatables involving DataTable Vulnerable to Cross-Site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Datatables versions are affected?
Affected versions include releases prior to 1.10.10 across affected packages: datatables, datatables/datatables.
What version fixes CVE-2015-6584?
Upgrading to 1.10.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datatables affected?
Yes, datatables is affected in releases prior to 1.10.10. Upgrade your dependency to 1.10.10 or later.
Is datatables/datatables affected?
Yes, datatables/datatables is affected in releases prior to 1.10.10. Upgrade your dependency to 1.10.10 or later.
What CWE is associated with CVE-2015-6584?
CVE-2015-6584 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-2015-6584?
Run the dependency tree command: 'npm ls datatables'. 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-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
  }
}