CVE-2020-36604
JavaScript vulnerability analysis and mitigation

Overview

A prototype pollution vulnerability was discovered in the hoek package versions before 8.5.1 and 9.x before 9.0.3. The vulnerability was identified and assigned CVE-2020-36604, with the public disclosure date of September 23, 2022. The issue specifically affects the clone() function within the package (CVE Mitre, Debian Tracker).

Technical details

The vulnerability exists in the clone() function of the hapi/hoek package, where if an object with proto key is passed to clone(), the key is converted to a prototype, enabling prototype pollution. The vulnerability has been assigned a CVSS 3.1 score of 8.1 (High), with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (Ubuntu Security).

Impact

The vulnerability could potentially lead to prototype pollution, which might affect the integrity and security of applications using the affected versions of the hoek package. However, it's noted that this is considered low risk and hard to exploit, particularly in systems like hapi handlers where input validation prevents invalid objects from entering the application (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in versions 8.5.1 and 9.0.3 of the hoek package. Users are advised to upgrade to these or later versions to mitigate the vulnerability. The fix was implemented through commit 948baf98634a5c206875b67d11368f133034fa90 for version 9.0.3 (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management