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

Published Feb 16, 2023
·
Updated

Node.js is vulnerable to a denial of service, caused by a regular expression denial of service (ReDoS) flaw in the Headers.set() and Headers.append() methods in the fetch API. By sending a specially-crafted regex input, a remote attacker could exploit this vulnerability to cause a denial of service condition.

Other sources

The Headers.set() and Headers.append() methods in the fetch API in Node.js were vulnerable to a Regular Expression Denial of Service (ReDoS) attacks.

All versions of the 19.x, 18.x, and 16.x release lines.

— Node.Js

The Headers.set() and Headers.append() methods in the fetch API in Node.js where vulnerable to Regular a Expression Denial of Service (ReDoS) attacks.

— Red Hat

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 Software

11 affected componentsFixes available
redhat/nodejs<18-9020020230327152102.rhel9
18-9020020230327152102.rhel9
redhat/nodejs<1:16.19.1-1.el9_2
1:16.19.1-1.el9_2
redhat/nodejs<1:16.20.2-1.el9_0
1:16.20.2-1.el9_0
redhat/node.js<19.6.1
19.6.1
redhat/node.js<18.14.1
18.14.1
redhat/node.js<16.19.1
16.19.1
IBM Cognos Controller<=11.0.0 - 11.0.1
Nodejs Undici Node.js<5.19.1
Node.js Node.js>=14.0.0<14.21.3, >=16.0.0<16.19.1, >=18.0.0<18.14.1, >=19.0.0<19.6.1
14.21.316.19.118.14.119.6.1
Node.js Node.js>=16.0.0<16.19.1
16.19.1
Node.js Node.js>=18.0.0<18.14.1
18.14.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/nodejs to a version that resolves this vulnerability.

    Fixed in 18-9020020230327152102.rhel9
  2. Upgrade

    Upgrade redhat/nodejs to a version that resolves this vulnerability.

    Fixed in 1:16.19.1-1.el9_2
  3. Upgrade

    Upgrade redhat/nodejs to a version that resolves this vulnerability.

    Fixed in 1:16.20.2-1.el9_0
  4. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 19.6.1
  5. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 18.14.1
  6. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 16.19.1
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.21.3Fixed in 16.19.1Fixed in 18.14.1Fixed in 19.6.1
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.19.1
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 18.14.1
  10. Upgrade

    Upgrade Undici to a version that resolves this vulnerability.

    Fixed in 5.19.1

Event History

Feb 16, 2023
CVE Published
12:00 AM
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness
Data Sourced
via Node.js·09:00 PM
DescriptionSeverity
Data Sourced
via Node.js·10:16 PM
Affected Software

Frequently Asked Questions

1

What is CVE-2023-24807?

CVE-2023-24807 is a vulnerability in Node.js that allows for denial of service attacks due to regular expression denial of service (ReDoS).

2

How does CVE-2023-24807 affect Node.js?

CVE-2023-24807 affects Node.js by making the `Headers.set()` and `Headers.append()` methods vulnerable to ReDoS attacks when untrusted values are passed into the functions.

3

What is the severity level of CVE-2023-24807?

CVE-2023-24807 has a severity level of high with a CVSS score of 7.5.

4

How can I fix CVE-2023-24807?

To fix CVE-2023-24807, you should update your Node.js version to 19.6.1 or higher.

5

Where can I find more information about CVE-2023-24807?

You can find more information about CVE-2023-24807 on the Red Hat Bugzilla website: [link](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2172205)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203