Low

Prototype Pollution in @hapi/hoek

  • Disclosed: 04.09.2020
  • Updated: 11.10.2026 10:22

Versions of @hapi/hoek prior to 8.5.1 and 9.0.3 are vulnerable to Prototype Pollution. The clone function fails to prevent the modification of the Object prototype when passed specially-crafted input. Attackers may use this to change existing properties that exist in all objects, which may lead to Denial of Service or Remote Code Execution in specific circumstances.
This issue does not affect hapi applications since the framework protects against such malicious inputs. Applications that use @hapi/hoek outside of the hapi ecosystem may be vulnerable.

Recommendation

Update to version 8.5.1, 9.0.3 or later.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @hapi/hoek >= 8.3.2, < 8.5.1, >= 9.0.0, < 9.0.3 8.5.1, 9.0.3

References

CVSS score -
Weakness (CWE)
CWE-1321
Platform
npm
Package
@hapi/hoek
Disclosed
04.09.2020
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-22h7-7wwg-qmgg - CC BY 4.0

Vulnerability history: @hapi/hoek

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
09.2020 09.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Low 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 1
  4. 2023: 0
  5. 2024: 0
  6. 2025: 0
  7. 2026: 0
  1. High · 8.1 CVE-2020-36604 < 8.5.1, >= 9.0.0, < 9.0.3 8.5.1, 9.0.3
  2. Prototype Pollution in @hapi/hoek this entry
    Low ghsa-22h7-7wwg-qmgg >= 8.3.2, < 8.5.1, >= 9.0.0, < 9.0.3 8.5.1, 9.0.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.