Advisory

GHSA-5r9g-qh6m-jxff

Also known as: BIT-node-2023-23936, BIT-node-min-2023-23936, CVE-2023-23936

Summary

CRLF Injection in Nodejs ‘undici’ via host

Details

Impact

undici library does not protect host HTTP header from CRLF injection vulnerabilities.

Patches

This issue was patched in Undici v5.19.1.

Workarounds

Sanitize the headers.host string before passing to undici.

References

Reported at https://hackerone.com/reports/1820955.

Credits

Thank you to Zhipeng Zhang (@timon8) for reporting this vulnerability.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-02-16 20:46 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

undici

npm · All systems

Affected

  • introduced 2.0.0, fixed 5.19.1 (semver)

Fixed versions

5.19.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences