{"id":"CVE-2022-25303","aliases":["CVE-2022-25303","GHSA-mxvc-fwgx-j778","PYSEC-2022-226","SNYK-PYTHON-WHOOGLESEARCH-2803306"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The package whoogle-search before version 0.7.2 is 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete whoogle-search versiones anteriores a 0.7.2, es vulnerable a un ataque de tipo Cross-site Scripting (XSS) por medio del parámetro query string q. En el caso de que no contenga la cadena http, es usada para construir el error_message que luego es renderizado en la plantilla error.html, usando la función [flask.render_template](https://flask.palletsprojects.com/en/2.1.x/api/flask.render_template). Sin embargo, el mensaje de error es mostrado usando el filtro [| safe](https://jinja.palletsprojects.com/en/3.1.x/templates/working-with-automatic-escaping), lo que significa que la entrada del usuario no es escapada","source":"nvd"}],"published":"2022-07-12T14:20:11.761Z","modified":"2026-06-17T04:33:21.280Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.7.2","status":"affected"}],"product":"whoogle-search","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.2"}],"ecosystem":"PyPI","package":"whoogle-search","purl":"pkg:pypi/whoogle-search","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.7.2"}],"vendor":"whoogle-search_project","product":"whoogle-search","cpe":"cpe:2.3:a:whoogle-search_project:whoogle-search:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"abc30d7da3b5c67be7ce84d4699f327442d44606"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.2"}],"ecosystem":"PyPI","package":"whoogle-search","purl":"pkg:pypi/whoogle-search","repo":"https://github.com/benbusby/whoogle-search","source":"pysec"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-WHOOGLESEARCH-2803306","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/benbusby/whoogle-search/blob/6d362ca5c7a00d2f691a2512461c5dfbfc01cbb3/app/routes.py%23L448","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/benbusby/whoogle-search/commit/abc30d7da3b5c67be7ce84d4699f327442d44606","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25303","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-mxvc-fwgx-j778","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/benbusby/whoogle-search","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/whoogle-search/PYSEC-2022-226.yaml","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Security Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25303","url":"https://www.cve.org/CVERecord?id=CVE-2022-25303","licence":"CVE Terms of Use","modified":"2024-09-16T19:14:22.978Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mxvc-fwgx-j778","url":"https://github.com/advisories/GHSA-mxvc-fwgx-j778","licence":"CC-BY-4.0","modified":"2024-11-19T19:24:44.773Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25303","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25303","licence":"Public domain","modified":"2026-06-17T04:33:21.280Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-226","url":"https://osv.dev/vulnerability/PYSEC-2022-226","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:45.680Z"}],"updatedAt":"2026-11-25T22:58:12.863Z","epss":{"score":0.01009,"percentile":0.64044,"date":"2026-12-01T12:00:22.000Z"}}