{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-32670","id":"CVE-2021-32670","title":"Reflected cross-site scripting issue in Datasette","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","descriptionLong":"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.","published":"2021-06-07T21:20:13.000Z","updated":"2026-10-20T10:54:45.308580172Z","reserved":"2021-05-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["simonw datasette"],"affectedProducts":[{"vendor":"simonw","product":"datasette","defaultStatus":null,"versions":[{"status":"affected","version":"< 0.56.1"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"datasette","purl":"pkg:pypi/datasette","ranges":["<0.56.1"],"fixed":["0.56.1"],"advisory":"GHSA-gff3-739c-gxfq"}],"cwes":["CWE-79"],"aliases":["GHSA-gff3-739c-gxfq","GHSA-xw7c-jx9m-xh5g","PYSEC-2021-89"],"references":[{"url":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/simonw/datasette/issues/1360","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://datasette.io/plugins/datasette-auth-passwords","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://pypi.org/project/datasette/","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32670","tags":["advisory"]},{"url":"https://pypi.org/project/datasette","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gff3-739c-gxfq","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2021-89.yaml","tags":["web"]},{"url":"https://github.com/simonw/datasette","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0096,"epssPercentile":0.62252,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-32670","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32670","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-32670","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gff3-739c-gxfq","ok":true,"note":"GHSA-gff3-739c-gxfq"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xw7c-jx9m-xh5g","ok":true,"note":"GHSA-xw7c-jx9m-xh5g"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32670","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}