SCA: security update for undici (GHSA-f772-66g8-q5h3)

medium Tenable Cloud Security Plugin ID 414348

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- undici is an HTTP/1.1 client, written from scratch for Node.js.`=< [email protected]` users are vulnerable to
_CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the
`content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput =
'application/json\r\n\r\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET',
headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two
requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This
issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a
workaround. (CVE-2022-35948)

See Also

https://github.com/advisories/GHSA-f772-66g8-q5h3

Plugin Details

Severity: Medium

ID: 414348

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.2

Percentile: 51.06

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2022-35948

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.8

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/18/2022

Vulnerability Publication Date: 8/13/2022

Reference Information

CVE: CVE-2022-35948