CVE-2024-42353
MEDIUM 6.1CVSS 3.1WebOb's location header normalization during redirect leads to open redirect
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.
- Published
- 14 Aug 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-601
- Also known as
- GHSA-mg3v-6m49-jhp3PYSEC-2024-188
- Sources
- NVDJSONOSV GHSA-mg3v-6m49-jhp3JSONOSV PYSEC-2024-188JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pylonsproject | webobcpe:2.3:a:pylonsproject:webob:*:*:*:*:*:*:*:* |
< 1.8.8 | 1.8.8 |
| OSV | PyPI | webob | < 1.8.8 | 1.8.8 |
References
- https://github.com/Pylons/webob/commit/f689bcf4f0a1f64f1735b1d5069aef5be6974b5b · Patch, WEB, FIX
- https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3 · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2024-42353 · ADVISORY
- https://github.com/Pylons/webob · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/webob/PYSEC-2024-188.yaml · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 14 Aug 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 Aug 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Aug 2024)