Medium severity · published Aug 14, 2024
CVE-2024-42353
WebOb's location header normalization during redirect leads to open redirect
6.1
CVSS
0.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 47% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WE
webob · Pylons
<= 1.8.7 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-42353
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-42353
Patch
https://github.com/Pylons/webob/commit/f689bcf4f0a1f64f1735b1d5069aef5be6974b5b
Exploit
https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3
More from webob
6.1
CVE-2026-54770
WebOb: Open redirect in Location header normalization via leading C0 control / space characters
6.1
CVE-2026-44889
WebOb: Location header normalization during redirect leads to open redirect
