# CVE-2026-1527: undici is vulnerable to CRLF Injection via upgrade option

- Severity: Medium 4.6 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-03-12T20:17:18.984Z
- Modified: 2026-09-10T03:50:37.246Z
- Also known as: GHSA-4992-7rv2-5pvq
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

## Description

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`
}

(As written by CVE List.)

## Affected

- undici: < 6.24.0; 7.0.0 < 7.24.0 (not affected: 6.24.0: 7.24.0)
- undici (npm): before 6.24.0; from 7.0.0 before 7.24.0
- nodejs undici: before 6.24.0; from 7.0.0 before 7.24.0

## Every score

- openjs: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`

## References

- <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://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-1527> (advisory)
- <https://github.com/nodejs/undici> (package)

## Sources

- CVE List: [CVE-2026-1527](https://www.cve.org/CVERecord?id=CVE-2026-1527), CVE Terms of Use, modified 2026-03-13
- GitHub Advisory Database: [GHSA-4992-7rv2-5pvq](https://github.com/advisories/GHSA-4992-7rv2-5pvq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-1527](https://nvd.nist.gov/vuln/detail/CVE-2026-1527), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-1527 · Whole record: https://cve.day/CVE-2026-1527.json · Rebuilt by cve.day 2026-11-25T22:59:15.856Z
