Intel

AIKIDO-2026-48713

undici is vulnerable to Improper Neutralization of CRLF Sequences ('CRLF Injection')

CVE-2026-9679Published Jun 18, 2026
June 18, 2026

59

CVE Score

Medium

Improper Neutralization of CRLF Sequences ('CRLF Injection')

Are you affected? Scan for Free

TL;DR

undici's Set-Cookie parser percent-decodes cookie values with qsUnescape, turning encoded sequences such as %0D%0A, %00, %3B, and %3D into their literal bytes, even though RFC 6265 specifies no decoding. An application that parses a Set-Cookie header and forwards the parsed value into one of its own response headers can be tricked by a malicious upstream into injecting carriage-return and line-feed bytes and adding arbitrary Set-Cookie, Location, or Cache-Control headers. This enables HTTP response header injection leading to session fixation, open redirect, or cache poisoning. The fix stops percent-decoding cookie values during parsing.

How do I fix this?

Upgrade the undici library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

6.0.0 - 6.25.0

Fixed in 6.26.0

7.0.0 - 7.27.2

Fixed in 7.28.0

8.0.0 - 8.4.1

Fixed in 8.5.0

Background info

undici is vulnerable to Improper Neutralization of CRLF Sequences ('CRLF Injection') in versions 6.0.0 - 6.25.0, 7.0.0 - 7.27.2 and 8.0.0 - 8.4.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea