Every CVE Search/ Get API key

CVE-2022-29167

ReDoS vulnerability in header parsing in hawk

7.4 HighFix available

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.10%Up 0.2 points since May 6, 2022
90%50%10%1%

What each source reports

CVE List Score used 7.4

ReDoS vulnerability in header parsing in hawk

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
CVE-2022-29167
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Weakness
CWE-400
Updated
2026-11-02
EUVDEUVD-2022-2298 7.4

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
EUVD-2022-2298
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-44pw-h2cw-w3vq 7.4

Uncontrolled Resource Consumption in Hawk

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead.Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
GHSA-44pw-h2cw-w3vq
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Weakness
CWE-400, CWE-1333
Updated
2026-11-02
NVD 7.4

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
CVE-2022-29167
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-400, CWE-1333
Updated
2026-11-02
OSV 7.4

ReDoS vulnerability in header parsing in hawk

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
CVE-2022-29167
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Weakness
CWE-400
Updated
2026-11-02
OSVDEBIAN-CVE-2022-29167 7.5

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
DEBIAN-CVE-2022-29167
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
Show 11 moreShow less
OSVGHSA-44pw-h2cw-w3vq 7.4

Uncontrolled Resource Consumption in Hawk

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead.Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
GHSA-44pw-h2cw-w3vq
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Weakness
CWE-1333, CWE-400
Updated
2026-11-02
OSVOESA-2022-1667 7.5

nodejs-hawk security update

Hawk is an HTTP authentication scheme using a message authentication code (MAC) algorithm to provide partial HTTP request cryptographic verification.

Security Fix(es):

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker s input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().(CVE-2022-29167)

Record
OESA-2022-1667
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-29167 7.5

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().

Record
UBUNTU-CVE-2022-29167
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1772583205 No score

TuxCare security update for hawk (2 CVEs)

TuxCare rebuilt hawk to address 2 CVEs. Fixed in 2.3.1-tuxcare.1.

Record
CLSA-2026-1772583205
Updated
2026-11-02
OSVCLSA-2026-1773015258 No score

TuxCare security update for hawk (2 CVEs)

TuxCare rebuilt hawk to address 2 CVEs. Fixed in 3.1.0-tuxcare.1.

Record
CLSA-2026-1773015258
Updated
2026-11-02
OSVCLSA-2026-1774743811 No score

TuxCare security update for hawk (2 CVEs)

TuxCare rebuilt hawk to address 2 CVEs. Fixed in 0.13.1-tuxcare.1.

Record
CLSA-2026-1774743811
Updated
2026-11-02
OSVCLSA-2026-1774743812 No score

TuxCare security update for hawk (2 CVEs)

TuxCare rebuilt hawk to address 2 CVEs. Fixed in 1.0.0-tuxcare.1.

Record
CLSA-2026-1774743812
Updated
2026-11-02
OSVCLSA-2026-1774743813 No score

TuxCare security update for hawk (2 CVEs)

TuxCare rebuilt hawk to address 2 CVEs. Fixed in 1.1.1-tuxcare.1.

Record
CLSA-2026-1774743813
Updated
2026-11-02
OSVCLSA-2026-1776818225 No score

TuxCare security update for hawk (1 CVE)

TuxCare rebuilt hawk to address 1 CVE. Fixed in 3.1.3-tuxcare.3.

Record
CLSA-2026-1776818225
Updated
2026-11-02
OSVMGASA-2024-0086 No score

Updated nodejs-hawk packages fix security vulnerability

Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost(). (CVE-2022-29167)

Record
MGASA-2024-0086
Updated
2026-11-02
OSVUSN-6116-1 No score

node-hawk vulnerability

It was discovered that hawk incorrectly handled certain inputs. If a user or an automated system were tricked into opening a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service.

Record
USN-6116-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
hawk
npm
before 9.0.1
9.0.1
hawk
TuxCare:npm
2.3.1-tuxcare.0 up to 2.3.1-tuxcare.1, plus listed versions
2.3.1
2.3.1-tuxcare.1
hawk
TuxCare:npm
3.1.0-tuxcare.0 up to 3.1.0-tuxcare.1, plus listed versions
3.1.0
3.1.0-tuxcare.1
hawk
TuxCare:npm
0.13.1-tuxcare.0 up to 0.13.1-tuxcare.1, plus listed versions
0.13.1
0.13.1-tuxcare.1
hawk
TuxCare:npm
1.0.0-tuxcare.0 up to 1.0.0-tuxcare.1, plus listed versions
1.0.0
1.0.0-tuxcare.1
hawk
TuxCare:npm
1.1.1-tuxcare.0 up to 1.1.1-tuxcare.1, plus listed versions
1.1.1
1.1.1-tuxcare.1
hawk
TuxCare:npm
3.1.3-tuxcare.0 up to 3.1.3-tuxcare.3, plus listed versions
3.1.33.1.3-tuxcare.13.1.3-tuxcare.2
3.1.3-tuxcare.3
node-hawk
Debian:12
before 9.0.1-1
9.0.1-1
node-hawk
Debian:13
before 9.0.1-1
9.0.1-1
node-hawk
Debian:14
before 9.0.1-1
9.0.1-1
Show 8 moreShow less
Affected packages
PackageAffectedFixed
node-hawk
Debian:10
before 6.0.1+dfsg-1+deb10u1, plus listed versions
6.0.1+dfsg-1
6.0.1+dfsg-1+deb10u1
nodejs-hawk
Mageia:9
before 7.0.10-4.1.mga9
7.0.10-4.1.mga9
nodejs-hawk
openEuler:20.03-LTS-SP1
before 4.1.2-2.oe1
4.1.2-2.oe1
nodejs-hawk
openEuler:20.03-LTS-SP3
before 4.1.2-2.oe1
4.1.2-2.oe1
nodejs-hawk
openEuler:22.03-LTS
before 4.1.2-2.oe2203
4.1.2-2.oe2203
node-hawk
Ubuntu:18.04:LTS
before 6.0.1+dfsg-1+deb10u1build0.18.04.1, plus listed versions
6.0.1+dfsg-1
6.0.1+dfsg-1+deb10u1build0.18.04.1
node-hawk
Ubuntu:20.04:LTS
before 7.1.2+dfsg-1ubuntu0.1, plus listed versions
7.1.1+dfsg-27.1.2+dfsg-1
7.1.2+dfsg-1ubuntu0.1
node-hawk
Ubuntu:22.04:LTS
before 8.0.1+dfsg-1ubuntu0.22.04.1, plus listed versions
8.0.1+dfsg-1
8.0.1+dfsg-1ubuntu0.22.04.1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-29167 is a high vulnerability (CVSS 7.4) in Mozilla Hawk, published May 5, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.10%, the 65th percentile. Fixed in hawk 9.0.1.

References

Show 10 moreShow less
MoveEnter Open