CVE-2020-36604 hoek subject to prototype pollution via the clone function.

High 8.1 Published Updated

Prototype poisoning in the clone function allows attackers to inject code or escalate privileges in applications using the hoek 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-2020-36604?

CVE-2020-36604 is a high-severity code injection vulnerability in n/a, published on 23 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

hoek before 8.5.1 and 9.x before 9.0.3 allows prototype poisoning in the clone function.

Weakness: CWE-1321

Which versions are affected by CVE-2020-36604?

6 open source packages ship an affected version, including @hapi/hoek and hoek. It affects 1 product.

PackageAffectedFixed in
@hapi/hoek npmAll versions8.5.1
@hapi/hoek npmAll versions8.5.1
@hapi/hoek npmFrom 9.0.09.0.3
@hapi/hoek npmFrom 9.0.09.0.3
hoek npmAll versions to 6.1.3None
hoek npmAll versions to 6.1.3None

Products include Hapijs Hoek.

How do I fix CVE-2020-36604?

Upgrade @hapi/hoek to a fixed version for your release line: 8.5.1 or 9.0.3.

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

Is CVE-2020-36604 being exploited?

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

Sources

Also known as CLSA-2026-1778633138, DEBIAN-CVE-2020-36604, GHSA-c429-5p7v-vgjp, ROOT-APP-NPM-CVE-2020-36604, UBUNTU-CVE-2020-36604.

Is CVE-2020-36604 in your software?

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

Check your SBOMs for free