CVE-2022-25303: Whoogle Search Cross-site Scripting via string parameter

CVE-2022-25303 · Severity: low · CVSS 3.1 · Published 2022-07-12

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.

Technologies: whoogle-search (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2022-25303 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-25303 being exploited in the wild.
How severe is CVE-2022-25303?
Low severity, with a CVSS score of 3.1, published 12 July 2022.
Which products and versions are affected?
whoogle-search (PyPI) ECOSYSTEM:introduced=0,fixed=0.7.2, GIT:introduced=0,fixed=abc30d7da3b5c67be7ce84d4699f327442d44606|ECOSYSTEM:introduced=0,fixed=0.7.2.
Is there a fix for CVE-2022-25303?
Yes. whoogle-search (PyPI): upgrade to 0.7.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-25303?
Check whether you run whoogle-search (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • whoogle-search (PyPI): upgrade to 0.7.2 or later
    pip install "whoogle-search>=0.7.2"

Affected products

  • whoogle-search (PyPI) ECOSYSTEM:introduced=0,fixed=0.7.2, GIT:introduced=0,fixed=abc30d7da3b5c67be7ce84d4699f327442d44606|ECOSYSTEM:introduced=0,fixed=0.7.2

Identifiers

  • CVE-2022-25303
  • GHSA-mxvc-fwgx-j778
  • PYSEC-2022-226

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.