Moderate severityNVD Advisory· Published May 25, 2023· Updated Nov 3, 2025
CVE-2023-28370
CVE-2023-28370
Description
Open redirect vulnerability in Tornado versions 6.3.1 and earlier allows a remote unauthenticated attacker to redirect a user to an arbitrary web site and conduct a phishing attack by having user access a specially crafted URL.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tornadoPyPI | < 6.3.2 | 6.3.2 |
Affected products
1- Range: versions 6.3.1 and earlier
Patches
132ad07c54e60web: Fix an open redirect in StaticFileHandler
1 file changed · +9 −0
tornado/web.py+9 −0 modified@@ -2879,6 +2879,15 @@ def validate_absolute_path(self, root: str, absolute_path: str) -> Optional[str] # but there is some prefix to the path that was already # trimmed by the routing if not self.request.path.endswith("/"): + if self.request.path.startswith("//"): + # A redirect with two initial slashes is a "protocol-relative" URL. + # This means the next path segment is treated as a hostname instead + # of a part of the path, making this effectively an open redirect. + # Reject paths starting with two slashes to prevent this. + # This is only reachable under certain configurations. + raise HTTPError( + 403, "cannot redirect path with two initial slashes" + ) self.redirect(self.request.path + "/", permanent=True) return None absolute_path = os.path.join(absolute_path, self.default_filename)
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- github.com/advisories/GHSA-hj3f-6gcp-jg8jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-28370ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/tornado/PYSEC-2023-75.yamlghsaWEB
- github.com/tornadoweb/tornado/commit/32ad07c54e607839273b4e1819c347f5c8976b2fghsaWEB
- github.com/tornadoweb/tornado/releases/tag/v6.3.2ghsaWEB
- jvn.jp/en/jp/JVN45127776ghsaWEB
- lists.debian.org/debian-lts-announce/2025/01/msg00000.htmlghsaWEB
- jvn.jp/en/jp/JVN45127776/mitre
News mentions
0No linked articles in our index yet.