{"id":"CVE-2021-32670","published":"2021-06-07T21:20:13Z","modified":"2024-08-03T23:25:31Z","title":"Reflected cross-site scripting issue in Datasette","vendor":"simonw","product":"datasette","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0096,"percentile":0.61414,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/simonw/datasette/issues/1360","tags":["x_refsource_MISC"]},{"url":"https://datasette.io/plugins/datasette-auth-passwords","tags":["x_refsource_MISC"]},{"url":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","tags":["x_refsource_MISC"]},{"url":"https://pypi.org/project/datasette/","tags":["x_refsource_MISC"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":12.28},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"simonw","affectedVersions":[{"vendor":"simonw","product":"datasette","versions":["< 0.56.1"]}],"affected":[{"ecosystem":"PyPI","package":"datasette","vulnerableRanges":["<0.56.1"],"patched":["0.56.1"],"from":["GHSA-xw7c-jx9m-xh5g","PYSEC-2021-89"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-0051","exploited":false,"provenance":"source"}}