REDHAT-BUG-2447141: Medium severity npm/undici vulnerability

Published Mar 12, 2026
·
Updated

ImpactWhen an application passes user-controlled input to the upgrade option of client.request(), an attacker can inject CRLF sequences (\r\n) to:

Inject arbitrary HTTP headers Terminate the HTTP request prematurely and smuggle raw data to non-HTTP services (Redis, Memcached, Elasticsearch) The vulnerability exists because undici writes the upgrade value directly to the socket without validating for invalid header characters:

// lib/dispatcher/client-h1.js:1121 if (upgrade) { header += connection: upgrade\r\nupgrade: ${upgrade}\r\n }

Affected Software

1 affected component
npm/undici

Event History

Mar 12, 2026
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2447141?

The severity of REDHAT-BUG-2447141 is classified as medium with a risk score of 4.

2

What impact does REDHAT-BUG-2447141 have on applications?

REDHAT-BUG-2447141 allows attackers to inject CRLF sequences, which can lead to the injection of arbitrary HTTP headers and the premature termination of HTTP requests.

3

How can I fix REDHAT-BUG-2447141?

To fix REDHAT-BUG-2447141, ensure proper validation and sanitization of user-controlled input before using it in the upgrade option of client.request().

4

Which software is affected by REDHAT-BUG-2447141?

The vulnerability REDHAT-BUG-2447141 affects the npm/undici software.

5

What kind of attacks can REDHAT-BUG-2447141 facilitate?

REDHAT-BUG-2447141 can facilitate attacks such as HTTP header injection and HTTP request smuggling to non-HTTP services like Redis and Elasticsearch.

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