CVE-2020-28458: Datatables.net Datatables.net Vulnerable To Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-m7j4-fhg6-xf5v
CVSS 7.3
CWE-1321
Published
Advisory Summary

CVE-2020-28458 is a HIGH (CVSS 7.3) datatables.net vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Datatables.net libraries in the npm ecosystem. The issue involves datatables.net vulnerable to prototype pollution due to incomplete fix. Remediation is available by upgrading affected packages to version 1.10.22.

CVE-2020-28458 at a Glance

CVE Identifier CVE-2020-28458
GHSA Identifier GHSA-m7j4-fhg6-xf5v
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Datatables.net
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2020-28458

To remediate this vulnerability, upgrade all affected Datatables.net 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.net fixed: 1.10.22
npm install datatables.net@1.10.22
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.net

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-28458, inspect your project dependencies using npm:

npm ls datatables.net

Analyze the terminal output to locate any version of Datatables.net in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.22), your application is affected.

Note: The npm ls datatables.net 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Datatables.net, 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

All versions of package datatables.net are vulnerable to Prototype Pollution due to an incomplete fix for https://snyk.io/vuln/SNYK-JS-DATATABLESNET-598806.

CVE-2020-28458 Affected Datatables.net Versions

1 component(s)
Fixed Versions:
1.10.22
Product / Package Ecosystem Affected Versions Fixed Version
datatables.net
npm
< 1.10.22
1.10.22

References

Frequently Asked Questions

What is CVE-2020-28458?
CVE-2020-28458 is a security vulnerability in Datatables.net involving datatables.net vulnerable to Prototype Pollution due to incomplete fix under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Datatables.net versions are affected?
Affected versions include releases prior to 1.10.22 across affected packages: datatables.net.
What version fixes CVE-2020-28458?
Upgrading to 1.10.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datatables.net affected?
Yes, datatables.net is affected in releases prior to 1.10.22. Upgrade your dependency to 1.10.22 or later.
What is the CVSS score of CVE-2020-28458?
CVE-2020-28458 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2020-28458?
CVE-2020-28458 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2020-28458?
Run the dependency tree command: 'npm ls datatables.net'. 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-m7j4-fhg6-xf5v",
  "modified" : "2024-06-21T21:33:49Z",
  "published" : "2020-12-17T21:00:50Z",
  "aliases" : [ "CVE-2020-28458" ],
  "summary" : "datatables.net vulnerable to Prototype Pollution due to incomplete fix",
  "details" : "All versions of package datatables.net are vulnerable to Prototype Pollution due to an incomplete fix for https://snyk.io/vuln/SNYK-JS-DATATABLESNET-598806.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "datatables.net"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.22"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-28458"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DataTables/DataTablesSrc/commit/a51cbe99fd3d02aa5582f97d4af1615d11a1ea03"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DataTables/DataTablesSrc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DataTables/Dist-DataTables/blob/master/js/jquery.dataTables.js%23L2766"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240621-0006"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1051961"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1051962"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-DATATABLESNET-1016402"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-DATATABLESNET-598806"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-12-17T18:27:07Z",
    "nvd_published_at" : "2020-12-16T11:15:00Z"
  }
}