Advisory

PYSEC-2024-188

Also known as: CVE-2024-42353, GHSA-mg3v-6m49-jhp3

Summary

The record has no summary.

Details

WebOb provides objects for HTTP requests and responses. When WebOb normalizes the HTTP Location header to include the request hostname, it does so by parsing the URL that the user is to be redirected to with Python's urlparse, and joining it to the base URL. urlparse however treats a // at the start of a string as a URI without a scheme, and then treats the next part as the hostname. urljoin will then use that hostname from the second part as the hostname replacing the original one from the request. This vulnerability is patched in WebOb version 1.8.8.

Severity

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

Dates

Published
2024-08-14 21:15 UTC
Modified
2025-01-19 04:56 UTC

Affected packages and fixes

webob

PyPI · All systems

Affected

  • introduced 0, fixed 1.8.8 (ecosystem)

Fixed versions

1.8.8

Fix

  • Fixed version 1.8.8
    pip install --upgrade webob==1.8.8

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: PyPA Advisory Database · CC BY 4.0

Sources & licences