CVE-2023-24807 HIGH

CVE-2023-24807: Undici vulnerable to Regular Expression Denial of Service in Headers

Vendor Nodejs
Product undici
Weakness CWE-20 · Input validation
Published February 16, 2023
Last update March 10, 2025

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

February 16, 2023 CVE published
March 10, 2025 Record updated