Staging Environment: Content and features may be unstable or change without notice.
Search for vulnerabilities
Vulnerability details: VCID-wqk1-vxt3-j3bb
Vulnerability ID VCID-wqk1-vxt3-j3bb
Aliases CVE-2022-31150
GHSA-3cvr-822r-rqcc
Summary undici before v5.8.0 vulnerable to CRLF injection in request headers ### Impact It is possible to inject CRLF sequences into request headers in Undici. ```js const undici = require('undici') const response = undici.request("http://127.0.0.1:1000", { headers: {'a': "\r\nb"} }) ``` The same applies to `path` and `method` ### Patches Update to v5.8.0 ### Workarounds Sanitize all HTTP headers from untrusted sources to eliminate `\r\n`. ### References https://hackerone.com/reports/409943 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12116 ### For more information If you have any questions or comments about this advisory: * Open an issue in [undici repository](https://github.com/nodejs/undici/issues) * To make a report, follow the [SECURITY](https://github.com/nodejs/node/blob/HEAD/SECURITY.md) document
Status Published
Exploitability 0.5
Weighted Severity 6.2
Risk 3.1
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
cvssv3 6.5 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-31150.json
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
epss 0.00507 https://api.first.org/data/v1/epss?cve=CVE-2022-31150
cvssv3.1 5.3 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-3cvr-822r-rqcc
cvssv3.1 5.3 https://github.com/nodejs/undici
generic_textual MODERATE https://github.com/nodejs/undici
cvssv3.1 5.3 https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259
generic_textual MODERATE https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259
cvssv3.1 5.3 https://github.com/nodejs/undici/releases/tag/v5.8.0
generic_textual MODERATE https://github.com/nodejs/undici/releases/tag/v5.8.0
ssvc Track https://github.com/nodejs/undici/releases/tag/v5.8.0
cvssv3.1 5.3 https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
cvssv3.1_qr MODERATE https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
generic_textual MODERATE https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
ssvc Track https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
cvssv3.1 5.3 https://hackerone.com/reports/409943
generic_textual MODERATE https://hackerone.com/reports/409943
ssvc Track https://hackerone.com/reports/409943
cvssv3.1 5.3 https://nvd.nist.gov/vuln/detail/CVE-2022-31150
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2022-31150
cvssv3.1 5.3 https://security.netapp.com/advisory/ntap-20220915-0002
generic_textual MODERATE https://security.netapp.com/advisory/ntap-20220915-0002
cvssv3.1 5.3 https://security.netapp.com/advisory/ntap-20220915-0002/
ssvc Track https://security.netapp.com/advisory/ntap-20220915-0002/
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-31150.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://github.com/nodejs/undici
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://github.com/nodejs/undici/releases/tag/v5.8.0
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:20Z/ Found at https://github.com/nodejs/undici/releases/tag/v5.8.0
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:20Z/ Found at https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://hackerone.com/reports/409943
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:20Z/ Found at https://hackerone.com/reports/409943
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2022-31150
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://security.netapp.com/advisory/ntap-20220915-0002
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Found at https://security.netapp.com/advisory/ntap-20220915-0002/
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:40:20Z/ Found at https://security.netapp.com/advisory/ntap-20220915-0002/
Exploit Prediction Scoring System (EPSS)
Percentile 0.66213
EPSS Score 0.00507
Published At April 2, 2026, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2026-04-01T13:07:24.535177+00:00 GithubOSV Importer Import https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-3cvr-822r-rqcc/GHSA-3cvr-822r-rqcc.json 38.0.0