Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-31150

nodejs16: CRLF injection in node-undici

Overview

Published
19 Jul 2022
Modified
17 Jun 2026
Medium CVE
3 Registry packages
7 OS packages
5 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

6.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

Weakness: CWE-93

Affected packages · 3

Packages affected by CVE-2022-31150
EcosystemPackageVulnerableFixed in
npm undici <5.8.0 5.8.0
Seal npm @seal-security/undici >=4.16.0-sp1, <4.16.0-sp999 4.16.0-sp999
Seal npm undici >=4.16.0-sp0, <4.16.0-sp999 4.16.0-sp999

Open a package to see all its vulnerabilities.

Operating systems · 7 fixes

SUSE Linux Enterprise 1 release · 1 package

fixed 1
nodejs16
SUSE Linux Enterprise fixes for CVE-2022-31150
ReleasePackageFixed inAdvisory
15.4 nodejs16 +3 16.17.0-150400.3.6.1 SUSE-SU-2022:3250-1

debian 3 releases · 1 package

fixed 3
node-undici
debian fixes for CVE-2022-31150
ReleasePackageFixed in
12 node-undici 5.8.0+dfsg1+~cs18.9.16-1
13 node-undici 5.8.0+dfsg1+~cs18.9.16-1
14 node-undici 5.8.0+dfsg1+~cs18.9.16-1

echo 1 release · 1 package

fixed 1
node-undici
echo fixes for CVE-2022-31150
ReleasePackageFixed in
node-undici 5.8.0+dfsg1+~cs18.9.16-1

openSUSE 1 release · 1 package

fixed 1
corepack16
openSUSE fixes for CVE-2022-31150
ReleasePackageFixed inAdvisory
Tumbleweed corepack16 +4 16.17.0-2.1 openSUSE-SU-2024:12285-1

root.io debian 1 release · 1 package

fixed 1
rootio-node-undici
root.io debian fixes for CVE-2022-31150
ReleasePackageFixed in
12 rootio-node-undici 5.8.0+dfsg1+~cs18.9.16-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.