Lucene search

K
githubGitHub Advisory DatabaseGHSA-5R9G-QH6M-JXFF
HistoryFeb 16, 2023 - 8:46 p.m.

CRLF Injection in Nodejs ‘undici’ via host

2023-02-1620:46:30
CWE-74
CWE-93
GitHub Advisory Database
github.com
17
crlf injection
nodejs
undici
http header
vulnerabilities
patches
sanitize
hackerone
report
vulnerability
zhipeng zhang
timon8
software

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

EPSS

0.001

Percentile

50.9%

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.

Affected configurations

Vulners
Node
undiciRange2.0.05.19.1
VendorProductVersionCPE
*undici*cpe:2.3:a:*:undici:*:*:*:*:*:*:*:*

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

EPSS

0.001

Percentile

50.9%