CVE-2022-25303
JSON

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 packageVersionsReported by
whoogle-searchfrom unspecified before 0.7.2CVE List
whoogle-search (PyPI)before 0.7.2, before abc30d7da3b5c67be7ce84d4699f327442d44606GitHub Advisory Database, PyPA Advisory Database
whoogle-search_project whoogle-searchbefore 0.7.2NVD

All scores

snyk5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2022-25303 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-mxvc-fwgx-j778 changed 2024-11-19CC-BY-4.0
NVDCVE-2022-25303 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-226 changed 2023-11-08CC-BY-4.0