CVE-2026-1527Nodejs Undici
Medium 4.6
Follow: this CVE · Nodejs · Nodejs Undici We alert you by email or Slack (account required).
- Priority
- 28
- CVSS 3.1
- 4.6
- EPSS
- —
- Auth required
- Yes
- Published
- Mar 12, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-93
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
What happens
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`
}
What to do
- Apply the vendor's security update for Undici.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | undici |
< 6.24.0 |
6.24.0 |
npm install undici@6.24.0 |
| npm | undici |
≥ 7.0.0 < 7.24.0 |
7.24.0 |
npm install undici@7.24.0 |
Per OSV / GitHub Advisories (GHSA-4992-7rv2-5pvq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nodejs | undici | < 6.24.0 |
| nodejs | undici | ≥ 7.0.0 < 7.24.0 |
Official advisories
- Red Hat Security Advisory: nodejs24 security update · Red Hat · RHSA-2026:7675 · Apr 13, 2026 High
- Red Hat Security Advisory: nodejs:24 security update · Red Hat · RHSA-2026:7670 · Apr 13, 2026 High
- Red Hat Security Advisory: nodejs:24 security update · Red Hat · RHSA-2026:7350 · Apr 10, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- cna.openjsf.org Vendor Advisory
- github.com Mitigation Patch Vendor Advisory
- hackerone.com Permissions Required