{"cve":"CVE-2022-29167","nvd":{"published":"2022-05-05T23:15:09.083","modified":"2026-06-17T04:39:43.723","status":"Modified","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()`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333","CWE-400"],"references":["https://github.com/mozilla/hawk/pull/286","https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq","https://github.com/mozilla/hawk/pull/286","https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq"],"products":["mozilla:hawk"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-29167","score":0.01101,"percentile":0.65704,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-44pw-h2cw-w3vq","url":"https://osv.dev/vulnerability/GHSA-44pw-h2cw-w3vq","summary":"Uncontrolled Resource Consumption in Hawk","modified":"2023-11-08T04:09:08.620639Z","packages":[{"ecosystem":"npm","name":"hawk","purl":"pkg:npm/hawk","ranges":["<9.0.1"],"fixed":["9.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}