# CVE-2022-29167: ReDoS vulnerability in header parsing in hawk

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2022-05-05T22:55:10.000Z
- Modified: 2026-06-17T04:39:43.723Z
- Also known as: GHSA-44pw-h2cw-w3vq
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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()`.

(As written by CVE List.)

## Affected

- mozilla hawk: < 9.0.1; before 9.0.1
- hawk (npm): before 9.0.1

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq> (patch, third-party-advisory, web)
- <https://github.com/mozilla/hawk/pull/286> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29167> (advisory)
- <https://github.com/mozilla/hawk/commit/d10d72ca82db967f6c5fcf866ff78e3ca25ce1ab> (web)
- <https://github.com/mozilla/hawk> (package)

## Sources

- CVE List: [CVE-2022-29167](https://www.cve.org/CVERecord?id=CVE-2022-29167), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-44pw-h2cw-w3vq](https://github.com/advisories/GHSA-44pw-h2cw-w3vq), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-29167](https://nvd.nist.gov/vuln/detail/CVE-2022-29167), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-29167 · Whole record: https://cve.day/CVE-2022-29167.json · Rebuilt by cve.day 2026-11-25T22:58:11.482Z
