# CVE-2024-42353: WebOb's location header normalization during redirect leads to open redirect

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 48% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-14T17:48:06.000Z
- Modified: 2026-06-17T07:49:18.797Z
- Also known as: GHSA-mg3v-6m49-jhp3, PYSEC-2024-188
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Pylons webob: <= 1.8.7
- webob (PyPI): before 1.8.8; before f689bcf4f0a1f64f1735b1d5069aef5be6974b5b
- pylonsproject webob: before 1.8.8

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3> (exploit, evidence, vendor-advisory, web)
- <https://github.com/Pylons/webob/commit/f689bcf4f0a1f64f1735b1d5069aef5be6974b5b> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2024-42353](https://www.cve.org/CVERecord?id=CVE-2024-42353), CVE Terms of Use, modified 2024-08-15
- GitHub Advisory Database: [GHSA-mg3v-6m49-jhp3](https://github.com/advisories/GHSA-mg3v-6m49-jhp3), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-42353](https://nvd.nist.gov/vuln/detail/CVE-2024-42353), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-188](https://osv.dev/vulnerability/PYSEC-2024-188), CC-BY-4.0, modified 2025-01-19

---

Page: https://cve.day/CVE-2024-42353 · Whole record: https://cve.day/CVE-2024-42353.json · Rebuilt by cve.day 2026-11-25T22:58:44.389Z
