CVE-2020-8268 Prototype pollution in json8-merge-patch

High 7.5 Published Updated

Attackers can inject or modify global object properties via prototype pollution in the json8-merge-patch library, potentially leading to code execution.

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

What is CVE-2020-8268?

CVE-2020-8268 is a high-severity code injection vulnerability in json8-merge-patch, published on 9 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Prototype pollution vulnerability in json8-merge-patch npm package < 1.0.3 may allow attackers to inject or modify methods and properties of the global object constructor.

Weakness: CWE-20, CWE-471

Which versions are affected by CVE-2020-8268?

2 open source packages ship an affected version, including json8-merge-patch. It affects 1 product.

PackageAffectedFixed in
json8-merge-patch npmAll versions1.0.3
json8-merge-patch npmAll versions1.0.3

Products include Json8-Merge-Patch Project Json8-Merge-Patch.

How do I fix CVE-2020-8268?

Upgrade json8-merge-patch to 1.0.3 or later.

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

Is CVE-2020-8268 being exploited?

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

Sources

Also known as GHSA-8v9x-9xqg-r8mr.

Is CVE-2020-8268 in your software?

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

Check your SBOMs for free