CVE-2022-29167
JavaScript vulnerability analysis and mitigation

Overview

Hawk, an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification, was found to contain a vulnerability (CVE-2022-29167) in versions prior to 9.0.1. The vulnerability was discovered and disclosed in May 2022, affecting the npm package hawk (GitHub Advisory).

Technical details

The vulnerability is classified as a Regular Expression Denial of Service (ReDoS) issue in the header parsing functionality. Specifically, the Hawk.utils.parseHost() function used a regular expression to parse Host HTTP headers, which could be exploited to cause exponential computation time increases with each additional character in malicious input. The vulnerability has been assigned a CWE-400 classification (NVD CNA).

Impact

If exploited, this vulnerability could allow attackers to cause a denial of service condition by crafting specific input that would trigger exponential computation time in the regular expression parsing. The issue could make the system unresponsive when processing specially crafted input files (Ubuntu Notice).

Mitigation and workarounds

The vulnerability has been patched in version 9.0.1 of the hawk package, which replaces the regular expression-based parsing with the built-in URL class. As a workaround for users unable to update, Hawk.authenticate() can be used with explicit host and port options to bypass the vulnerable parseHost() function. System administrators are advised to update to the patched version through their package management system (GitHub Advisory).

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