Open Redirect Affecting python-webob package, versions <0:1.2.3-7.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-PYTHONWEBOB-8611974
  • published10 Jan 2025
  • disclosed14 Aug 2024

Introduced: 14 Aug 2024

CVE-2024-42353  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python-webob to version 0:1.2.3-7.amzn2.0.1 or higher.
This issue was patched in ALAS2-2025-2726.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-webob package and not the python-webob package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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 Scores

version 3.1