cve.bz

CVE-2022-31150 nodejs undici: CRLF Injection

6.5 mediumExploit referenceEPSS 1.5%Fix available

Medium (6.5) in nodejs undici. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in undici 5.8.0.

On this page
undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible to inject CRLF sequences into request headers in undici in versions less than 5.7.1. A fix was released in version 5.8.0. Sanitizing all HTTP headers from untrusted sources to eliminate `\r\n` is a workaround for this issue.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31150 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31150?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31150?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31150 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodejs:undicibefore 5.8.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3cvr-822r-rqccnpmundici<5.8.05.8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-undici5.8.0+dfsg1+~cs18.9.16-1DEBIAN-CVE-2022-31150
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morenode-undicino fix listedUBUNTU-CVE-2022-31150
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.17.0-8.9.1SUSE-SU-2022:3196-1
SUSELinux Enterprise Module for Web and Scripting 15 SP3nodejs1616.17.0-150300.7.9.1SUSE-SU-2022:3251-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.17.0-150400.3.6.1SUSE-SU-2022:3250-1
openSUSELeap 15.3nodejs1616.17.0-150300.7.9.1SUSE-SU-2022:3251-1
openSUSELeap 15.4nodejs1616.17.0-150400.3.6.1SUSE-SU-2022:3250-1
openSUSETumbleweednodejs1616.17.0-2.1openSUSE-SU-2024:12285-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-ui-rhel8Affected
Red Hat OpenShift Dev Spacesdevspaces/dashboard-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-31150.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON