7.5high
Undici vulnerable to Regular Expression Denial of Service in Headers
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.34% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r6ch-mqf9-qc9w
Description
Undici is an HTTP/1.1 client for Node.js. Prior to version 5.19.1, the `Headers.set()` and `Headers.append()` methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the `headerValueNormalize()` utility function. This vulnerability was patched in v5.19.1. No known workarounds are available.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nodejs undici | < 5.19.1, before 5.19.1 | CVE List, NVD |
| undici (npm) | before 5.19.1 | GitHub Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Undici is an HTTP/1.1 client for Node.js. Prior to version 5.19.1, the `Headers.set()` and `Headers.append()` methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the `headerValueNormalize()` utility function. This vulnerability was patched in v5.19.1. No known workarounds are available.
GitHub Advisory Database
Impact
The Headers.set() and Headers.append() methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the headerValueNormalize() utility function.
Patches
This vulnerability was patched in v5.19.1.
Workarounds
There is no workaround. Please update to an unaffected version.
References
Credits
Carter Snook reported this vulnerability.
References
| https://github.com/nodejs/undici/security/advisories/GHSA-r6ch-mqf9-qc9w | vendor-advisory, web | |
| https://github.com/nodejs/undici/commit/f2324e549943f0b0937b09fb1c0c16cc7c93abdf | patch, web | |
| https://github.com/nodejs/undici/releases/tag/v5.19.1 | release-notes, web | |
| https://hackerone.com/bugs?report_id=1784449 | permissions-required, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20230324-0010/ | ||
| https://nvd.nist.gov/vuln/detail/CVE-2023-24807 | advisory | |
| https://github.com/nodejs/undici | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-24807 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r6ch-mqf9-qc9w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-24807 changed 2026-06-17 | Public domain |