{"id":"CVE-2022-25303","summary":"Cross-site Scripting (XSS)","details":"The package whoogle-search before 0.7.2 are vulnerable to Cross-site Scripting (XSS) via the query string parameter q. In the case where it does not contain the http string, it is used to build the error_message that is then rendered in the error.html template, using the [flask.render_template](https://flask.palletsprojects.com/en/2.1.x/api/flask.render_template) function. However, the error_message is rendered using the [| safe filter](https://jinja.palletsprojects.com/en/3.1.x/templates/working-with-automatic-escaping), meaning the user input is not escaped.","aliases":["GHSA-mxvc-fwgx-j778","PYSEC-2022-226","SNYK-PYTHON-WHOOGLESEARCH-2803306"],"modified":"2026-05-19T11:56:12.457330652Z","published":"2022-07-12T14:20:11.761Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25303.json","cna_assigner":"snyk"},"references":[{"type":"WEB","url":"https://github.com/benbusby/whoogle-search/blob/6d362ca5c7a00d2f691a2512461c5dfbfc01cbb3/app/routes.py%23L448"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25303.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25303"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-PYTHON-WHOOGLESEARCH-2803306"},{"type":"FIX","url":"https://github.com/benbusby/whoogle-search/commit/abc30d7da3b5c67be7ce84d4699f327442d44606"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/benbusby/whoogle-search","events":[{"introduced":"0"},{"fixed":"8a0b872337247e1fa5514b67768122a1121a159c"}]}],"versions":["v0.7.1","v0.7.0","v0.6.0","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.1","v0.4.0","v0.3.2","v0.3.1","v0.3.0","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-25303.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P"}]}