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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-14 · Modified: 2024-08-15
- Aliases: MGASA-2024-0308, SUSE-SU-2024:2969-1, SUSE-SU-2024:3116-1, GHSA-mg3v-6m49-jhp3, PYSEC-2024-188, RHSA-2024:6775, RHSA-2024:6827, RHSA-2024:9983, RHSA-2024:9989, UBUNTU-CVE-2024-42353, USN-6984-1, DEBIAN-CVE-2024-42353, SUSE-SU-2024:2970-1, openSUSE-SU-2024:14279-1, ALPINE-CVE-2024-42353
- Record: https://cvemate.com/vulnerability/CVE-2024-42353 · JSON: https://cvemate.com/vulnerability/CVE-2024-42353/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.569%, percentile 48.558%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine py3-webob (Alpine Linux): \< 1.8.10-r0
- debian python-webob (Debian): All versions (No fix recorded) \| \< 1:1.8.9-1
- ubuntu python-webob (Ubuntu): \< 1.5.1-1ubuntu0.1~esm2 \| \< 1:1.7.3-2ubuntu0.1~esm2 \| \< 1:1.8.5-2ubuntu0.1 \| \< 1:1.8.6-1.1ubuntu0.1 \| \< 1:1.8.7-1ubuntu0.1.24.04.1
- mageia python-webob (Mageia): \< 1.8.8-1.mga9
- pylons webob: ≤ 1.8.7
- pylonsproject webob: \< 1.8.8
- PyPI webob (PyPI): \< f689bcf4f0a1f64f1735b1d5069aef5be6974b5b \| \< 1.8.8
- opensuse python-WebOb&distro=openSUSE Leap 15.5 (openSUSE): \< 1.7.4-150000.3.3.1
- opensuse python-WebOb&distro=openSUSE Leap 15.6 (openSUSE): \< 1.8.7-150400.11.6.1
- opensuse python-WebOb&distro=openSUSE Tumbleweed (openSUSE): \< 1.8.8-1.1
- redhat python-webob (Red Hat): \< 0:1.8.7-3.el9ost \| \< 0:1.8.8-2.el9 \| \< 0:1.8.7-2.1.el9ost \| \< 0:1.8.7-2.1.el8ost
- redhat python3-webob (Red Hat): \< 0:1.8.7-3.el9ost \| \< 0:1.8.8-2.el9 \| \< 0:1.8.7-2.1.el9ost \| \< 0:1.8.7-2.1.el8ost
- suse python-WebOb&distro=SUSE Linux Enterprise Module for Basesystem 15 SP5 (SUSE Linux Enterprise): \< 1.7.4-150000.3.3.1
- suse python-WebOb&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6 (SUSE Linux Enterprise): \< 1.7.4-150000.3.3.1
- suse python-WebOb&distro=SUSE Linux Enterprise Module for Package Hub 15 SP5 (SUSE Linux Enterprise): \< 1.7.4-150000.3.3.1
- suse python-WebOb&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6 (SUSE Linux Enterprise): \< 1.7.4-150000.3.3.1
- suse python-WebOb&distro=SUSE Linux Enterprise Module for Public Cloud 12 (SUSE Linux Enterprise): \< 1.2.3-3.3.1

## References (first 20 of 30)

- <https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3>
- <https://github.com/Pylons/webob/commit/f689bcf4f0a1f64f1735b1d5069aef5be6974b5b>
- <https://advisories.mageia.org/MGASA-2024-0308.html>
- <https://bugs.mageia.org/show_bug.cgi?id=33532>
- <https://lists.suse.com/pipermail/sle-security-updates/2024-August/019276.html>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20242969-1/>
- <https://bugzilla.suse.com/1229221>
- <https://www.suse.com/security/cve/CVE-2024-42353>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20243116-1/>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42353>
- <https://github.com/Pylons/webob>
- <https://github.com/pypa/advisory-database/tree/main/vulns/webob/PYSEC-2024-188.yaml>
- <https://access.redhat.com/errata/RHSA-2024:6775>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6775.json>
- <https://access.redhat.com/security/cve/CVE-2024-42353>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2305004>
- <https://www.cve.org/CVERecord?id=CVE-2024-42353>
- <https://access.redhat.com/errata/RHSA-2024:6827>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6827.json>

---

Data as of 2026-12-05T07:00:01.851Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
