Vulnerabilities in pkg:npm/@ag-grid-enterprise/charts

PACKAGE
Advisory Identifier: GHSA-328p-362g-r48j
Advisory Summary

CVE-2024-39001 is a MODERATE (CVSS 6.3) ag-grid packages vulnerable to prototype vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @ag grid enterprise/charts libraries in the npm ecosystem. The issue involves ag-grid packages vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 32.0.1, 31.3.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@ag-grid-enterprise/charts

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@ag-grid-enterprise/charts. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-328p-362g-r48j CVE-2024-39001 MODERATE ag-grid packages vulnerable to Prototype Pollution

CVE-2024-39001 at a Glance

CVE Identifier CVE-2024-39001
GHSA Identifier GHSA-328p-362g-r48j
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product @ag grid enterprise/charts
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-2024-39001

To remediate this vulnerability, upgrade all affected @ag grid enterprise/charts dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@ag-grid-enterprise/charts fixed: 32.0.1
npm install @ag-grid-enterprise/charts@32.0.1
ag-grid-community fixed: 32.0.1
npm install ag-grid-community@32.0.1
ag-grid-enterprise fixed: 32.0.1
npm install ag-grid-enterprise@32.0.1
@ag-grid-enterprise/charts fixed: 31.3.4
npm install @ag-grid-enterprise/charts@31.3.4
ag-grid-community fixed: 31.3.4
npm install ag-grid-community@31.3.4
ag-grid-enterprise fixed: 31.3.4
npm install ag-grid-enterprise@31.3.4
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 @ag-grid-enterprise/charts

How to Check if You Are Affected

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

npm ls @ag-grid-enterprise/charts

Analyze the terminal output to locate any version of @ag grid enterprise/charts in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 32.0.1), your application is affected.

Note: The npm ls @ag-grid-enterprise/charts 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 @ag grid enterprise/charts, 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

ag-grid-enterprise v31.3.2 was discovered to contain a prototype pollution via the component _ModuleSupport.jsonApply. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties.

CVE-2024-39001 Affected @ag grid enterprise/charts Versions

6 component(s)
Fixed Versions:
32.0.131.3.4
Product / Package Ecosystem Affected Versions Fixed Version
@ag-grid-enterprise/charts
npm
≥ 32.0.0
< 32.0.1
All 1 versions
32.0.0
32.0.1
ag-grid-community
npm
≥ 32.0.0
< 32.0.1
All 1 versions
32.0.0
32.0.1
ag-grid-enterprise
npm
≥ 32.0.0
< 32.0.1
All 1 versions
32.0.0
32.0.1
@ag-grid-enterprise/charts
npm
< 31.3.4
31.3.4
ag-grid-community
npm
< 31.3.4
31.3.4
ag-grid-enterprise
npm
< 31.3.4
31.3.4

References

Frequently Asked Questions

What is CVE-2024-39001?
CVE-2024-39001 is a security vulnerability in @ag grid enterprise/charts involving ag-grid packages vulnerable to Prototype Pollution under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which @ag grid enterprise/charts versions are affected?
Affected versions include releases prior to 32.0.1, 31.3.4 across affected packages: @ag-grid-enterprise/charts, ag-grid-community, ag-grid-enterprise.
What version fixes CVE-2024-39001?
Upgrading to 32.0.1, 31.3.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @ag-grid-enterprise/charts affected?
Yes, @ag-grid-enterprise/charts is affected in releases prior to 32.0.1, 31.3.4. Upgrade your dependency to 32.0.1, 31.3.4 or later.
Is ag-grid-community affected?
Yes, ag-grid-community is affected in releases prior to 32.0.1, 31.3.4. Upgrade your dependency to 32.0.1, 31.3.4 or later.
What is the CVSS score of CVE-2024-39001?
CVE-2024-39001 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-39001?
CVE-2024-39001 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-2024-39001?
Run the dependency tree command: 'npm ls @ag-grid-enterprise/charts'. 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-328p-362g-r48j",
  "modified" : "2024-08-26T13:51:18Z",
  "published" : "2024-07-01T15:32:20Z",
  "aliases" : [ "CVE-2024-39001" ],
  "summary" : "ag-grid packages vulnerable to Prototype Pollution",
  "details" : "ag-grid-enterprise v31.3.2 was discovered to contain a prototype pollution via the component _ModuleSupport.jsonApply. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@ag-grid-enterprise/charts"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "32.0.0"
      }, {
        "fixed" : "32.0.1"
      } ]
    } ],
    "versions" : [ "32.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ag-grid-community"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "32.0.0"
      }, {
        "fixed" : "32.0.1"
      } ]
    } ],
    "versions" : [ "32.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ag-grid-enterprise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "32.0.0"
      }, {
        "fixed" : "32.0.1"
      } ]
    } ],
    "versions" : [ "32.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@ag-grid-enterprise/charts"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "31.3.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ag-grid-community"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "31.3.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ag-grid-enterprise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "31.3.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39001"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ag-grid/ag-grid/issues/8261"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ag-grid/ag-grid/commit/78fb47f6c996f22c0b7184afb29620ab8c240522"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ag-grid/ag-grid/commit/ff731699453f2632d4852b3a3c34b479c406068c"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/mestrtee/18e8c27f3a6376e7cf082cfe1ca766fa"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/mestrtee/c1590660750744f25e86ba1bf240844b"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/mestrtee/f8037d492dab0d77bca719e05d31c08b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ag-grid/ag-grid"
  }, {
    "type" : "WEB",
    "url" : "https://www.ag-grid.com/changelog/?fixVersion=31.3.4"
  }, {
    "type" : "WEB",
    "url" : "https://www.ag-grid.com/changelog/?fixVersion=32.0.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-12T14:00:45Z",
    "nvd_published_at" : "2024-07-01T13:15:05Z"
  }
}