{"answers":{"affected":"3 open source packages ship an affected version, including webob. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-42353 in the wild and no public exploit code.","fix":"Upgrade webob to 1.8.8 or later.","what":"CVE-2024-42353 is a medium-severity vulnerability in Pylons webob, published on 14 Aug 2024."},"fix_prompt":"Check this codebase for CVE-2024-42353 and fix it if it is affected.\n\nWhat it is: CVE-2024-42353 is a medium-severity vulnerability in Pylons webob, published on 14 Aug 2024. \nExploitation: There is no known exploitation of CVE-2024-42353 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- webob (PyPI): affected all versions; fixed in 1.8.8\n- webob (PyPI): affected all versions; fixed in 1.8.8\n- webob (PyPI): affected all versions; fixed in 1.8.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-42353/ (Markdown: https://insights.sbomify.com/CVE-2024-42353/index.md)","id":"CVE-2024-42353","markdown":"https://insights.sbomify.com/CVE-2024-42353/index.md","name":"CVE-2024-42353","record":{"aliases":["AZL-47820","AZL-47826","DEBIAN-CVE-2024-42353","ECHO-7481-8feb-d02b","GHSA-mg3v-6m49-jhp3","MGASA-2024-0308","OESA-2024-2043","PYSEC-2024-188","RHSA-2024:6775","RHSA-2024:6827","RHSA-2024:9983","RHSA-2024:9989","SUSE-SU-2024:2969-1","SUSE-SU-2024:2970-1","SUSE-SU-2024:3116-1","UBUNTU-CVE-2024-42353","USN-6984-1","openSUSE-SU-2024:14279-1"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"webob","vendor":"pylonsproject"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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.","ecosystems":["PyPI","Red Hat:openshift_ironic:4.16::el9","Red Hat:openstack:17.1::el8","Red Hat:openstack:17.1::el9","Red Hat:openstack:18.0::el9","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Public Cloud 12","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"WebOb's location header normalization during redirect leads to open redirect","id":"CVE-2024-42353","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2024"},"n_packages":19,"n_references":2,"next":{"headline":"Shopware vulnerable to Improper Access Control with ManyToMany associations in store-api","id":"CVE-2024-42354"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.8"],"introduced":["0"],"last_affected":[],"package":"webob","purl":null,"source":"GHSA-mg3v-6m49-jhp3"},{"ecosystem":"PyPI","fixed":["1.8.8"],"introduced":["0"],"last_affected":[],"package":"webob","purl":"pkg:pypi/webob","source":"GHSA-mg3v-6m49-jhp3"},{"ecosystem":"PyPI","fixed":["1.8.8"],"introduced":["0"],"last_affected":[],"package":"webob","purl":"pkg:pypi/webob","source":"PYSEC-2024-188"},{"ecosystem":"Red Hat:openshift_ironic:4.16::el9","fixed":["0:1.8.8-2.el9"],"introduced":["0"],"last_affected":[],"package":"python-webob","purl":"pkg:rpm/redhat/python-webob","source":"RHSA-2024:6827"},{"ecosystem":"Red Hat:openshift_ironic:4.16::el9","fixed":["0:1.8.8-2.el9"],"introduced":["0"],"last_affected":[],"package":"python3-webob","purl":"pkg:rpm/redhat/python3-webob","source":"RHSA-2024:6827"},{"ecosystem":"Red Hat:openstack:17.1::el8","fixed":["0:1.8.7-2.1.el8ost"],"introduced":["0"],"last_affected":[],"package":"python-webob","purl":"pkg:rpm/redhat/python-webob","source":"RHSA-2024:9989"},{"ecosystem":"Red Hat:openstack:17.1::el8","fixed":["0:1.8.7-2.1.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-webob","purl":"pkg:rpm/redhat/python3-webob","source":"RHSA-2024:9989"},{"ecosystem":"Red Hat:openstack:17.1::el9","fixed":["0:1.8.7-2.1.el9ost"],"introduced":["0"],"last_affected":[],"package":"python-webob","purl":"pkg:rpm/redhat/python-webob","source":"RHSA-2024:9983"},{"ecosystem":"Red Hat:openstack:17.1::el9","fixed":["0:1.8.7-2.1.el9ost"],"introduced":["0"],"last_affected":[],"package":"python3-webob","purl":"pkg:rpm/redhat/python3-webob","source":"RHSA-2024:9983"},{"ecosystem":"Red Hat:openstack:18.0::el9","fixed":["0:1.8.7-3.el9ost"],"introduced":["0"],"last_affected":[],"package":"python-webob","purl":"pkg:rpm/redhat/python-webob","source":"RHSA-2024:6775"},{"ecosystem":"Red Hat:openstack:18.0::el9","fixed":["0:1.8.7-3.el9ost"],"introduced":["0"],"last_affected":[],"package":"python3-webob","purl":"pkg:rpm/redhat/python3-webob","source":"RHSA-2024:6775"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["1.7.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/suse/python-WebOb\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:3116-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["1.7.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/suse/python-WebOb\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:3116-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["1.7.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/suse/python-WebOb\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2024:3116-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["1.7.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/suse/python-WebOb\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2024:3116-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["1.2.3-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/suse/python-WebOb\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2024:2969-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.7.4-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/opensuse/python-WebOb\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:3116-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.8.7-150400.11.6.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/opensuse/python-WebOb\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2970-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.8.8-1.1"],"introduced":["0"],"last_affected":[],"package":"python-WebOb","purl":"pkg:rpm/opensuse/python-WebOb\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14279-1"}],"prev":{"headline":"Server-Side Request Forgery (SSRF) in nuxt-icon","id":"CVE-2024-42352"},"products":["webob"],"published":"2024-08-14","related":[{"cvss_score":6.1,"headline":"WebOb: Location header normalization during redirect leads to open redirect","id":"CVE-2026-44889","kev_date_added":null,"published":"2026-06-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-15","vendors":["Pylons"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-42353/"}