5.4medium
Cross-site Scripting (XSS)
- Severity
- 5.4medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.01% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-mxvc-fwgx-j778PYSEC-2022-226SNYK-PYTHON-WHOOGLESEARCH-2803306
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| whoogle-search | from unspecified before 0.7.2 | CVE List |
| whoogle-search (PyPI) | before 0.7.2, before abc30d7da3b5c67be7ce84d4699f327442d44606 | GitHub Advisory Database, PyPA Advisory Database |
| whoogle-search_project whoogle-search | before 0.7.2 | NVD |
All scores
| snyk | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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 function. However, the error_message is rendered using the | safe filter, meaning the user input is not escaped.
NVD (es)
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25303 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mxvc-fwgx-j778 changed 2024-11-19 | CC-BY-4.0 |
| NVD | CVE-2022-25303 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-226 changed 2023-11-08 | CC-BY-4.0 |