CVE-2025-64481: Datasette Open Redirect Endpoint Vulnerability

LOW
Advisory Identifier: GHSA-w832-gg5g-x44m
CWE-601
Published
Advisory Summary

CVE-2025-64481 is a LOW open redirect endpoint vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Datasette libraries in the PyPI ecosystem. The issue involves open redirect endpoint in datasette. Remediation is available by upgrading affected packages to version 0.65.2, 1.0a21.

CVE-2025-64481 at a Glance

CVE Identifier CVE-2025-64481
GHSA Identifier GHSA-w832-gg5g-x44m
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Datasette
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-64481

To remediate this vulnerability, upgrade all affected Datasette dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

datasette fixed: 0.65.2
pip install datasette>=0.65.2
datasette fixed: 1.0a21
pip install datasette>=1.0a21
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show datasette

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-64481, inspect your installed packages using pip:

pip show datasette

Analyze the terminal output to locate any version of Datasette in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.65.2), your application is affected.

Note: The pip show datasette command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Datasette, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2025-64481 Affected Datasette Versions

2 component(s)
Fixed Versions:
0.65.21.0a21
Product / Package Ecosystem Affected Versions Fixed Version
datasette
PyPI
< 0.65.2
0.65.2
datasette
PyPI
≥ 1.0a0
< 1.0a21
1.0a21

References

Frequently Asked Questions

What is CVE-2025-64481?
CVE-2025-64481 is a security vulnerability in Datasette involving Open redirect endpoint in Datasette under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Datasette versions are affected?
Affected versions include releases prior to 0.65.2, 1.0a21 across affected packages: datasette.
What version fixes CVE-2025-64481?
Upgrading to 0.65.2, 1.0a21 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datasette affected?
Yes, datasette is affected in releases prior to 0.65.2, 1.0a21. Upgrade your dependency to 0.65.2, 1.0a21 or later.
What CWE is associated with CVE-2025-64481?
CVE-2025-64481 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2025-64481?
Run the dependency tree command: 'pip show datasette'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w832-gg5g-x44m",
  "modified" : "2026-05-19T20:23:11Z",
  "published" : "2025-11-06T15:13:33Z",
  "aliases" : [ "CVE-2025-64481" ],
  "summary" : "Open redirect endpoint in Datasette",
  "details" : "### Impact\n\nDeployed instances of Datasette prior to `0.65.2` and `1.0a21` include an open redirect vulnerability.\n\nHits to the path `//example.com/foo/bar/` (the trailing slash is required) will redirect the user to `https://example.com/foo/bar`.\n\n### Patches\n\nThis problem has been patched in both Datasette `0.65.2` and `1.0a21`.\n\n### Workarounds\n\nIf Datasette is running behind a proxy that proxy could be configured to replace `//` with `/` in incoming request URLs.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "datasette"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.65.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "datasette"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0a0"
      }, {
        "fixed" : "1.0a21"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.0a20"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette/security/advisories/GHSA-w832-gg5g-x44m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64481"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette/issues/2429"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette/commit/f257ca6edb64848c3b04b54d41e347c54fe57c05"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2025-73.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/simonw/datasette"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-06T15:13:33Z",
    "nvd_published_at" : "2025-11-07T21:15:42Z"
  }
}