{"id":"CVE-2021-32670","state":"PUBLISHED","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 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.","publishedAt":"2021-06-07T21:20:13.000Z","updatedAt":"2024-08-03T23:25:31.015Z","severity":{"score":7.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["simonw datasette"],"affected":[{"vendor":"simonw","product":"datasette","versions":[{"version":"< 0.56.1","status":"affected"}]}],"references":["https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","https://github.com/simonw/datasette/issues/1360","https://datasette.io/plugins/datasette-auth-passwords","https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","https://pypi.org/project/datasette/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:48:33.225Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/32xxx/CVE-2021-32670.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-32670","state":"PUBLISHED","datePublished":"2021-06-07T21:20:13.000Z","dateUpdated":"2024-08-03T23:25:31.015Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"Reflected cross-site scripting issue in Datasette","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"simonw","product":"datasette","versions":[{"version":"< 0.56.1","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.2,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-06-07T21:20:13.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-xw7c-jx9m-xh5g","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32670","STATE":"PUBLIC","TITLE":"Reflected cross-site scripting issue in Datasette"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"datasette","version":{"version_data":[{"version_value":"< 0.56.1"}]}}]},"vendor_name":"simonw"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.2,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","refsource":"CONFIRM","url":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g"},{"name":"https://github.com/simonw/datasette/issues/1360","refsource":"MISC","url":"https://github.com/simonw/datasette/issues/1360"},{"name":"https://datasette.io/plugins/datasette-auth-passwords","refsource":"MISC","url":"https://datasette.io/plugins/datasette-auth-passwords"},{"name":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","refsource":"MISC","url":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks"},{"name":"https://pypi.org/project/datasette/","refsource":"MISC","url":"https://pypi.org/project/datasette/"}]},"source":{"advisory":"GHSA-xw7c-jx9m-xh5g","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/simonw/datasette/issues/1360","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://datasette.io/plugins/datasette-auth-passwords","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://pypi.org/project/datasette/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T23:25:31.015Z"}}]}}}