CVE-2026-1527
MEDIUM 4.6CVSS 3.1Undici has CRLF Injection in undici via `upgrade` option
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
}
- Published
- 12 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-93
- Also known as
- GHSA-4992-7rv2-5pvq
- Sources
- NVDJSONOSV GHSA-4992-7rv2-5pvqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodejs | undicicpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* |
< 6.24.0 | 6.24.0 |
| NVD | nodejs | undicicpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* |
>= 7.0.0, < 7.24.0 | 7.24.0 |
| OSV | npm | undici | < 6.24.0 | 6.24.0 |
| OSV | npm | undici | >= 7.0.0, < 7.24.0 | 7.24.0 |
References
- https://cna.openjsf.org/security-advisories.html · Vendor Advisory, WEB
- https://github.com/nodejs/undici/security/advisories/GHSA-4992-7rv2-5pvq · Mitigation, Patch, Vendor Advisory, WEB
- https://hackerone.com/reports/3487198 · Permissions Required, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-1527 · ADVISORY
- https://github.com/nodejs/undici · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 12 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 13 Mar 2026)