CVE-2024-38996 Prototype pollution in ag-grid-community via the _.mergeDeep function

Critical 9.8 Published Updated

Attackers can execute arbitrary code or cause denial of service via prototype pollution in the ag-grid library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-38996?

CVE-2024-38996 is a critical code injection vulnerability in n/a, published on 1 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-1321

Which versions are affected by CVE-2024-38996?

4 open source packages ship an affected version, including ag-grid-community and ag-grid-enterprise. It affects 1 product.

PackageAffectedFixed in
ag-grid-community npmAll versions31.3.4
ag-grid-community npmAll versions31.3.4
ag-grid-enterprise npmAll versions31.3.4
ag-grid-enterprise npmAll versions31.3.4

Products include Ag-Grid Ag-Grid.

How do I fix CVE-2024-38996?

Upgrade ag-grid-community to 31.3.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-38996 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38996 exists.

Sources

Also known as GHSA-876p-c77m-x2hc.

Is CVE-2024-38996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free