Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/hoek
  4. ›
  5. CVE-2020-36604

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

September 25, 2022 (updated May 28, 2025)

hoek versions prior to 8.5.1, and 9.x prior to 9.0.3 are vulnerable to prototype pollution in the clone function. If an object with the proto key is passed to clone() the key is converted to a prototype. This issue has been patched in version 9.0.3, and backported to 8.5.1.

References

  • github.com/advisories/GHSA-c429-5p7v-vgjp
  • github.com/hapijs/hoek/commit/4d0804bc6135ad72afdc5e1ec002b935b2f5216a
  • github.com/hapijs/hoek/commit/948baf98634a5c206875b67d11368f133034fa90
  • github.com/hapijs/hoek/issues/352
  • nvd.nist.gov/vuln/detail/CVE-2020-36604

Code Behaviors & Features

Detect and mitigate CVE-2020-36604 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.5.1, all versions starting from 9.0.0 before 9.0.3

Fixed versions

  • 8.5.1
  • 9.0.3

Solution

Upgrade to versions 8.5.1, 9.0.3 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/@hapi/hoek/CVE-2020-36604.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 29 Aug 2025 00:19:47 +0000.