CVE-2022-25303
Description
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.
How to fix
- whoogle-search_project whoogle-search0.7.2 or later
- whoogle-search0.7.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| whoogle-search_project whoogle-search | v < 0.7.2 | 0.7.2 |
| whoogle-searchPyPI | v < 0.7.2 | 0.7.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.