datasetteGHSA-w832-gg5g-x44m
Open redirect endpoint in Datasette
Fix: upgrade to 0.65.2 or later (2 fixed versions below)
Impact
Deployed instances of Datasette prior to 0.65.2 and 1.0a21 include an open redirect vulnerability.
Hits to the path //example.com/foo/bar/ (the trailing slash is required) will redirect the user to https://example.com/foo/bar.
Patches
This problem has been patched in both Datasette 0.65.2 and 1.0a21.
Workarounds
If Datasette is running behind a proxy that proxy could be configured to replace // with / in incoming request URLs.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| datasette PyPI | < 0.65.2 | 0.65.2 |
| >= 1.0a0, < 1.0a21 | 1.0a21 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-601
- Also known as
- CVE-2025-64481, PYSEC-2025-73
- github.com/simonw/datasette/security/advisories/GHSA-w832-gg5g-x44m
- nvd.nist.gov/vuln/detail/CVE-2025-64481
- github.com/simonw/datasette/issues/2429
- github.com/simonw/datasette/commit/f257ca6edb64848c3b04b54d41e347c54fe57c05
- github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2025-73.yaml
- github.com/simonw/datasette