Security mailing lists by PureSourceCode

CVE-2026-1527

MEDIUM 4.6CVSS 3.1

Undici 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nodejs undici
cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*
< 6.24.0 6.24.0
NVD nodejs undici
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.