~ / search / GHSA-5r9g-qh6m-jxff

GHSA-5r9g-qh6m-jxff

CRLF Injection in Nodejs ‘undici’ via host

Source: GitHub Advisory Database (reviewed) Moderate CVE-2023-23936

Packages

EcosystemPackageAffectedFixed in
npm undici >= 2.0.0, < 5.19.1 5.19.1

Details

As written in the advisory (Markdown source, shown as plain text).

### 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](https://hackerone.com/timon8)) for reporting this vulnerability.

References

External links from the advisory. They lead to third-party sites.