CVE-2024-38996: Ag grid enterprise Prototype Pollution Vulnerability
HIGHCVE-2024-38996 is a HIGH (CVSS 9.8) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Ag grid enterprise libraries in the npm ecosystem. The issue involves prototype pollution in ag-grid-community via the _.mergedeep function. Remediation is available by upgrading affected packages to version 31.3.4.
CVE-2024-38996 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2024-38996
To remediate this vulnerability, upgrade all affected Ag grid enterprise 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 ag-grid-enterprise@31.3.4
npm install ag-grid-community@31.3.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ag-grid-enterprise
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-38996, inspect your project dependencies using npm:
npm ls ag-grid-enterprise
Analyze the terminal output to locate any version of Ag grid enterprise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 31.3.4), your application is affected.
Note: The npm ls ag-grid-enterprise 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, 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-2024-38996 Affected Ag grid enterprise Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ag-grid-enterprise
|
npm |
< 31.3.4
|
31.3.4
|
|
ag-grid-community
|
npm |
< 31.3.4
|
31.3.4
|
References
Frequently Asked Questions
What is CVE-2024-38996?
Which Ag grid enterprise versions are affected?
What version fixes CVE-2024-38996?
Is ag-grid-enterprise affected?
Is ag-grid-community affected?
What is the CVSS score of CVE-2024-38996?
What CWE is associated with CVE-2024-38996?
How can I check npm dependencies for CVE-2024-38996?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-876p-c77m-x2hc",
"modified" : "2024-09-04T16:39:10Z",
"published" : "2024-07-01T15:32:17Z",
"aliases" : [ "CVE-2024-38996" ],
"summary" : "Prototype pollution in ag-grid-community via the _.mergeDeep function",
"details" : "ag-grid-community v31.3.2 and ag-grid-enterprise v31.3.2 were discovered to contain a prototype pollution via the _.mergeDeep function. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties. Prior versions were also found to be affected.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ag-grid-enterprise"
},
"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"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-38996"
}, {
"type" : "WEB",
"url" : "https://github.com/ag-grid/ag-grid/pull/8290"
}, {
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-01T22:34:03Z",
"nvd_published_at" : "2024-07-01T13:15:05Z"
}
}