CVE-2024-42353
Python vulnerability analysis and mitigation

Overview

WebOb version 1.8.7 and earlier contains a vulnerability in the HTTP Location header normalization process (CVE-2024-42353). The issue was discovered and disclosed on August 14, 2024, affecting the WebOb package's handling of redirect locations. This vulnerability impacts applications using WebOb for HTTP request and response handling (GitHub Advisory).

Technical details

The vulnerability occurs when WebOb normalizes the HTTP Location header to include the request hostname. The process involves parsing the redirect URL using Python's urlparse and joining it to the base URL. When a URL starts with '//', urlparse treats it as a URI without a scheme and interprets the next part as the hostname. Subsequently, urljoin uses this hostname from the second part to replace the original hostname from the request. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (GitHub Advisory).

Impact

The vulnerability can lead to open redirect attacks. An attacker could exploit this by crafting specific URLs that, when processed by WebOb's location normalization function, redirect users from the intended domain to a malicious site. For example, a request to 'https://example.org//attacker.com/some/path' could be redirected to 'https://attacker.com/some/path/' (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in WebOb version 1.8.8. For users unable to upgrade immediately, a workaround is available: ensure that any use of the Response class that includes a location always passes a full URI that includes the hostname for user redirection. It's recommended to avoid using older versions of WebOb that remain vulnerable to this issue (GitHub Advisory, WebOb Patch).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-40177CRITICAL9.3
  • PythonPython
  • ajenti.plugin.core
NoYesApr 10, 2026
CVE-2026-40258CRITICAL9.1
  • PythonPython
  • gramps-webapi
NoYesApr 10, 2026
CVE-2026-40260MEDIUM6.9
  • PythonPython
  • pypdf
NoYesApr 10, 2026
CVE-2026-40178MEDIUM6.9
  • PythonPython
  • ajenti.plugin.core
NoYesApr 10, 2026
GHSA-55v6-g8pm-pw4cMEDIUM4.3
  • PythonPython
  • rembg
NoYesApr 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management