# CVE-2022-25303: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2022-07-12T14:20:11.761Z
- Modified: 2026-06-17T04:33:21.280Z
- Also known as: GHSA-mxvc-fwgx-j778, PYSEC-2022-226, SNYK-PYTHON-WHOOGLESEARCH-2803306
- Weaknesses: CWE-79
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- whoogle-search: from unspecified before 0.7.2
- whoogle-search (PyPI): before 0.7.2; before abc30d7da3b5c67be7ce84d4699f327442d44606
- whoogle-search_project whoogle-search: before 0.7.2

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-PYTHON-WHOOGLESEARCH-2803306> (advisory, third-party-advisory, web)
- <https://github.com/benbusby/whoogle-search/blob/6d362ca5c7a00d2f691a2512461c5dfbfc01cbb3/app/routes.py%23L448> (broken-link, web)
- <https://github.com/benbusby/whoogle-search/commit/abc30d7da3b5c67be7ce84d4699f327442d44606> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25303> (advisory)
- <https://github.com/advisories/GHSA-mxvc-fwgx-j778> (advisory)
- <https://github.com/benbusby/whoogle-search> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/whoogle-search/PYSEC-2022-226.yaml> (web)

## Sources

- CVE List: [CVE-2022-25303](https://www.cve.org/CVERecord?id=CVE-2022-25303), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-mxvc-fwgx-j778](https://github.com/advisories/GHSA-mxvc-fwgx-j778), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2022-25303](https://nvd.nist.gov/vuln/detail/CVE-2022-25303), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-226](https://osv.dev/vulnerability/PYSEC-2022-226), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-25303 · Whole record: https://cve.day/CVE-2022-25303.json · Rebuilt by cve.day 2026-11-25T22:58:12.863Z
