CVE-2020-36604 hoek subject to prototype pollution via the clone function.
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.
| Package | Affected | Fixed in |
|---|---|---|
@hapi/hoek npm | All versions | 8.5.1 |
@hapi/hoek npm | All versions | 8.5.1 |
@hapi/hoek npm | From 9.0.0 | 9.0.3 |
@hapi/hoek npm | From 9.0.0 | 9.0.3 |
hoek npm | All versions to 6.1.3 | None |
hoek npm | All versions to 6.1.3 | None |
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.
Other vulnerabilities in n/a
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.