原始 OSV JSON{
"id": "GHSA-xw7c-jx9m-xh5g",
"aliases": [
"CVE-2021-32670"
],
"details": "### Impact\n\nThe `?_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.\n\nThis 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.\n\n### Patches\n\nDatasette 0.57 and 0.56.1 both include patches for this issue.\n\n### Workarounds\n\nIf 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.\n\n### References\n\n- [OWASP guide to reflected cross-site scripting](https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks)\n- [Datasette issue #1360](https://github.com/simonw/datasette/issues/1360)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a discussion in [simonw/datasette](https://github.com/simonw/datasette/discussions)\n* Email us at `swillison+datasette @ gmail.com`\n",
"summary": "Reflected cross-site scripting issue in Datasette",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.56.1"
}
]
}
],
"package": {
"name": "datasette",
"ecosystem": "PyPI"
}
}
],
"modified": "2024-11-18T16:26:14Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
},
{
"type": "CVSS_V4",
"score": "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"
}
],
"published": "2021-06-07T21:47:41Z",
"references": [
{
"url": "https://github.com/simonw/datasette/security/advisories/GHSA-xw7c-jx9m-xh5g",
"type": "WEB"
},
{
"url": "https://github.com/simonw/datasette/issues/1360",
"type": "WEB"
},
{
"url": "https://datasette.io/plugins/datasette-auth-passwords",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-gff3-739c-gxfq",
"type": "ADVISORY"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/datasette/PYSEC-2021-89.yaml",
"type": "WEB"
},
{
"url": "https://github.com/simonw/datasette",
"type": "PACKAGE"
},
{
"url": "https://owasp.org/www-community/attacks/xss/#reflected-xss-attacks",
"type": "WEB"
},
{
"url": "https://pypi.org/project/datasette",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2021-06-07T20:59:14Z"
}
}