Advisory

DEBIAN-CVE-2022-35948

Also known as: CVE-2022-35948

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2022-08-15 11:21 UTC
Modified
2026-11-18 06:02 UTC

Affected packages and fixes

node-undici

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 5.8.2+dfsg1+~cs18.9.18.1-1 (ecosystem)

Fixed versions

5.8.2+dfsg1+~cs18.9.18.1-1

Fix

  • Fixed version 5.8.2+dfsg1+~cs18.9.18.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-undici

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 5.8.2+dfsg1+~cs18.9.18.1-1 (ecosystem)

Fixed versions

5.8.2+dfsg1+~cs18.9.18.1-1

Fix

  • Fixed version 5.8.2+dfsg1+~cs18.9.18.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-undici

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 5.8.2+dfsg1+~cs18.9.18.1-1 (ecosystem)

Fixed versions

5.8.2+dfsg1+~cs18.9.18.1-1

Fix

  • Fixed version 5.8.2+dfsg1+~cs18.9.18.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences