CVE-2022-25907 Prototype Pollution

High 7.5 Published Updated

Attackers can pollute JavaScript object prototypes via the merge function, potentially leading to code execution or privilege escalation in applications using ts-deepmerge.

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

What is CVE-2022-25907?

CVE-2022-25907 is a high-severity vulnerability in ts-deepmerge, published on 9 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package ts-deepmerge before 2.0.2 are vulnerable to Prototype Pollution due to missing sanitization of the merge function.

Weakness: CWE-1321

Which versions are affected by CVE-2022-25907?

2 open source packages ship an affected version, including ts-deepmerge. It affects 1 product.

PackageAffectedFixed in
ts-deepmerge npmAll versions2.0.2
ts-deepmerge npmAll versions2.0.2

Products include Typescript Deep Merge Project Typescript Deep Merge.

How do I fix CVE-2022-25907?

Upgrade ts-deepmerge to 2.0.2 or later.

Is CVE-2022-25907 being exploited?

There is no known exploitation of CVE-2022-25907 in the wild and no public exploit code.

Sources

Also known as GHSA-7qqq-gh2f-wq76.

Is CVE-2022-25907 in your software?

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

Check your SBOMs for free