JLSEC-2026-1931: CRLF Injection
Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect host HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the headers.host string before passing to undici.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/NodeJS_16_jllto a version that resolves this vulnerability.Fixed in 16.20.2+0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.19.1 - Compensating control
Sanitize the `headers.host` string before passing it to undici.
Event History
Frequently Asked Questions
What must an attacker control to exploit this issue?
An attacker needs to cause an application to pass a `headers.host` value containing CRLF characters to Undici. Exploitation is remote and does not require authentication, but it requires user interaction according to the supplied vector.
Which deployments are affected?
Undici versions starting at 2.0.0 and before 5.19.1 are affected. The listed software includes julia/nodejs_16_jll and julia/libnode_jll, but the provided data does not identify the exact bundled Undici version for those packages.
What can be done if upgrading is not immediately possible?
Sanitize the `headers.host` string before passing it to Undici. In particular, ensure attacker-influenced Host header values cannot contain CRLF characters.
How can I determine whether remediation is needed?
Determine the Undici version used by the affected application or bundled runtime. Upgrade or otherwise remediate if it is version 2.0.0 through versions earlier than 5.19.1, especially where `headers.host` can be influenced by untrusted input.