Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. webob
  4. ›
  5. CVE-2026-54770

CVE-2026-54770: WebOb: Open redirect in Location header normalization via leading C0 control / space characters

August 27, 2026

This is a third follow-up to CVE-2024-42353 / GHSA-mg3v-6m49-jhp3 and CVE-2026-44889 / GHSA-fh3h-vg37-cc95.

WebOb makes the Location header absolute when it serves a redirect. To stop a relative or protocol-relative target from redirecting users off-host, it checks the value for a URI scheme and for a leading //, then joins it against the request URI with urllib.parse.urljoin(). The previous fix additionally stripped ASCII tab/CR/LF from the value before those checks.

However, on Python 3.10+ urllib.parse.urljoin() (via urlsplit()) does more than remove tab/CR/LF: it also strips leading and trailing C0 control characters (U+0000–U+001F) and spaces from the URL before parsing it. Because WebOb’s guard checks (SCHEME_RE and startswith("//")) run against the un-stripped value, a single leading space or control byte slips past them, and urljoin() then silently removes that byte and parses what remains as a protocol-relative — or even absolute — URL. The result is an open redirect to an attacker-controlled host.

References

  • github.com/Pylons/webob/commit/ff89560643fb252751b4db8806a283b5377f1f07
  • github.com/Pylons/webob/security/advisories/GHSA-6hx8-3wjj-gr8g
  • github.com/Pylons/webob/tree/1.8.11
  • github.com/advisories/GHSA-6hx8-3wjj-gr8g
  • nvd.nist.gov/vuln/detail/CVE-2026-54770

Code Behaviors & Features

Detect and mitigate CVE-2026-54770 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.8.11

Fixed versions

  • 1.8.11

Solution

Upgrade to version 1.8.11 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

pypi/webob/CVE-2026-54770.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:23 +0000.