GHSA-gff3-739c-gxfq: Duplicate Advisory Cross-Site Scripting Vulnerability

HIGH
CVSS 7.2
CWE-79
Published
Advisory Summary

GHSA-gff3-739c-gxfq is a HIGH (CVSS 7.2) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves reflected cross-site scripting issue in datasette. Remediation is available by upgrading affected packages to version 0.56.1.

GHSA-gff3-739c-gxfq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gff3-739c-gxfq
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Duplicate Advisory
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-gff3-739c-gxfq

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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.56.1
pip install datasette>=0.56.1
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 GHSA-gff3-739c-gxfq, inspect your installed packages using pip:

pip show datasette

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.56.1), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-xw7c-jx9m-xh5g. This link is maintained to preserve external references. ## Original Description Datasette is an open source multi-tool for exploring and publishing data. The `?_trace=1` debugging feature in Datasette does not correctly escape generated HTML, resulting in a [reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks) vulnerability. This vulnerability is particularly relevant if your Datasette installation includes authenticated features using plugins such as [datasette-auth-passwords](https://datasette.io/plugins/datasette-auth-passwords) as an attacker could use the vulnerability to access protected data. Datasette 0.57 and 0.56.1 both include patches for this issue. If you run Datasette behind a proxy you can workaround this issue by rejecting any incoming requests with `?_trace=` or `&_trace=` in their query string parameters.

GHSA-gff3-739c-gxfq Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
0.56.1
Product / Package Ecosystem Affected Versions Fixed Version
datasette
PyPI
< 0.56.1
0.56.1

References

Frequently Asked Questions

What is GHSA-gff3-739c-gxfq?
GHSA-gff3-739c-gxfq is a security vulnerability in Duplicate Advisory involving Reflected cross-site scripting issue in Datasette under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 0.56.1 across affected packages: datasette.
What version fixes GHSA-gff3-739c-gxfq?
Upgrading to 0.56.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datasette affected?
Yes, datasette is affected in releases prior to 0.56.1. Upgrade your dependency to 0.56.1 or later.
What is the CVSS score of GHSA-gff3-739c-gxfq?
GHSA-gff3-739c-gxfq has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-gff3-739c-gxfq?
GHSA-gff3-739c-gxfq is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for GHSA-gff3-739c-gxfq?
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-gff3-739c-gxfq",
  "modified" : "2024-09-16T15:03:13Z",
  "published" : "2021-06-10T17:22:59Z",
  "withdrawn" : "2024-09-16T15:02:24Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Reflected cross-site scripting issue in Datasette",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-xw7c-jx9m-xh5g. This link is maintained to preserve external references.\n\n## Original Description\nDatasette is an open source multi-tool for exploring and publishing data. The `?_trace=1` debugging feature in Datasette does not correctly escape generated HTML, resulting in a [reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks) vulnerability. This vulnerability is particularly relevant if your Datasette installation includes authenticated features using plugins such as [datasette-auth-passwords](https://datasette.io/plugins/datasette-auth-passwords) as an attacker could use the vulnerability to access protected data. Datasette 0.57 and 0.56.1 both include patches for this issue. If you run Datasette behind a proxy you can workaround this issue by rejecting any incoming requests with `?_trace=` or `&_trace=` in their query string parameters.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "datasette"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.56.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32670"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette/issues/1360"
  }, {
    "type" : "WEB",
    "url" : "https://datasette.io/plugins/datasette-auth-passwords"
  }, {
    "type" : "WEB",
    "url" : "https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/datasette"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-06-09T20:39:24Z",
    "nvd_published_at" : "2021-06-07T22:15:00Z"
  }
}