Advisory

DEBIAN-CVE-2022-35949

Also known as: CVE-2022-35949

Summary

The record has no summary.

Details

undici is an HTTP/1.1 client, written from scratch for Node.js.undici is vulnerable to SSRF (Server-side Request Forgery) when an application takes in user input into the path/pathname option of undici.request. If a user specifies a URL such as http://127.0.0.1 or //127.0.0.1 js const undici = require("undici") undici.request({origin: "http://example.com", pathname: "//127.0.0.1"}) Instead of processing the request as http://example.org//127.0.0.1 (or http://example.org/http://127.0.0.1 when http://127.0.0.1 is used), it actually processes the request as http://127.0.0.1/ and sends it to http://127.0.0.1. If a developer passes in user input into path parameter of undici.request, it can result in an _SSRF_ as they will assume that the hostname cannot change, when in actual fact it can change because the specified path parameter is combined with the base URL. This issue was fixed in [email protected]. The best workaround is to validate user input before passing it to the undici.request call.

Severity

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

Dates

Published
2022-08-12 23:15 UTC
Modified
2026-11-18 06:00 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