Prototype Pollution in @hapi/hoek
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | @hapi/hoek (npm) | 8.3.2 to before 8.5.1 | 8.5.1 | Patch available | GHSA-22h7-7wwg-qmgg |
| — | @hapi/hoek (npm) | 9.0.0 to before 9.0.3 | 9.0.3 | Patch available | GHSA-22h7-7wwg-qmgg |
- @hapi/hoek (npm) Vendor— Affected 8.3.2 to before 8.5.1 Fixed in 8.5.1 Patch available GHSA-22h7-7wwg-qmgg
- @hapi/hoek (npm) Vendor— Affected 9.0.0 to before 9.0.3 Fixed in 9.0.3 Patch available GHSA-22h7-7wwg-qmgg
Remediation
- Fix · GHSA-22h7-7wwg-qmgg @hapi/hoek (npm) Fixed in 8.5.1 Advisory →
- Fix · GHSA-22h7-7wwg-qmgg @hapi/hoek (npm) Fixed in 9.0.3 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-22h7-7wwg-qmgg
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences