Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. datasette
  4. ›
  5. CVE-2021-32670

CVE-2021-32670: Reflected cross-site scripting issue in Datasette

June 7, 2021 (updated November 18, 2024)

The ?_trace=1 debugging feature in Datasette does not correctly escape generated HTML, resulting in a reflected cross-site scripting vulnerability.

This vulnerability is particularly relevant if your Datasette installation includes authenticated features using plugins such as datasette-auth-passwords as an attacker could use the vulnerability to access protected data.

References

  • datasette.io/plugins/datasette-auth-passwords
  • github.com/advisories/GHSA-gff3-739c-gxfq
  • github.com/advisories/GHSA-xw7c-jx9m-xh5g
  • github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2021-89.yaml
  • github.com/simonw/datasette
  • github.com/simonw/datasette/issues/1360
  • github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g
  • nvd.nist.gov/vuln/detail/CVE-2021-32670
  • owasp.org/www-community/attacks/xss/
  • pypi.org/project/datasette

Code Behaviors & Features

Detect and mitigate CVE-2021-32670 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.56.1

Fixed versions

  • 0.56.1

Solution

Upgrade to version 0.56.1 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/datasette/CVE-2021-32670.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:02 +0000.