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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-05-05 · Modified: 2025-04-23
- Aliases: MGASA-2024-0086, UBUNTU-CVE-2022-29167, USN-6116-1, DEBIAN-CVE-2022-29167, DLA-3246-1, GHSA-44pw-h2cw-w3vq
- Record: https://cvemate.com/vulnerability/CVE-2022-29167 · JSON: https://cvemate.com/vulnerability/CVE-2022-29167/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.101%, percentile 66.788%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian node-hawk (Debian): \< 6.0.1+dfsg-1+deb10u1 \| \< 9.0.1-1
- ubuntu node-hawk (Ubuntu): \< 6.0.1+dfsg-1+deb10u1build0.18.04.1 \| \< 7.1.2+dfsg-1ubuntu0.1 \| \< 8.0.1+dfsg-1ubuntu0.22.04.1
- mageia nodejs-hawk (Mageia): \< 7.0.10-4.1.mga9
- mozilla hawk: \< 9.0.1
- Npm hawk (Npm): \< 9.0.1

## References

- <https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq>
- <https://github.com/mozilla/hawk/pull/286>
- <https://advisories.mageia.org/MGASA-2024-0086.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31313>
- <https://www.debian.org/lts/security/2022/dla-3246>
- <https://ubuntu.com/security/notices/USN-6116-1>
- <https://ubuntu.com/security/CVE-2022-29167>
- <https://github.com/mozilla/hawk/commit/ade134119bf1fdc4909d00f5a952c966f0075ad3>
- <https://www.cve.org/CVERecord?id=CVE-2022-29167>
- <https://security-tracker.debian.org/tracker/CVE-2022-29167>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29167>
- <https://github.com/mozilla/hawk/commit/d10d72ca82db967f6c5fcf866ff78e3ca25ce1ab>
- <https://github.com/mozilla/hawk>

---

Data as of 2026-12-05T03:12:25.213Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
