Skip to content
Heist/ feed
Back to feed
Medium

Cross-site Scripting (XSS)

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-25303
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:36 UTC · Revision 1

Source evidence

Cross-site Scripting (XSS)

core-osv · Original source

Published 12 Jul 2022, 14:20 UTC

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.

osv:CVE-2022-25303
Complete source record
{
  "id": "bafea66bbbdef16e0e549cecba04371d28dfbfca6fdcf3e470003e97b0231c94",
  "url": "https://osv.dev/vulnerability/CVE-2022-25303",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Cross-site Scripting (XSS)",
    "summary": "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.",
    "evidence": "osv:CVE-2022-25303",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-25303",
      "aliases": [
        "CVE-2022-25303",
        "GHSA-mxvc-fwgx-j778",
        "PYSEC-2022-226",
        "SNYK-PYTHON-WHOOGLESEARCH-2803306"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/benbusby/whoogle-search",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8a0b872337247e1fa5514b67768122a1121a159c"
                },
                {
                  "fixed": "abc30d7da3b5c67be7ce84d4699f327442d44606"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:whoogle-search_project:whoogle-search:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.7.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "abc30d7da3b5c67be7ce84d4699f327442d44606"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.7.1",
            "v0.7.0",
            "v0.6.0",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.1",
            "v0.4.0",
            "v0.3.2",
            "v0.3.1",
            "v0.3.0",
            "v0.1.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25303.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.564763853Z",
      "provider": "osv",
      "references": [
        "https://github.com/benbusby/whoogle-search/blob/6d362ca5c7a00d2f691a2512461c5dfbfc01cbb3/app/routes.py%23L448",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25303.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-25303",
        "https://snyk.io/vuln/SNYK-PYTHON-WHOOGLESEARCH-2803306",
        "https://github.com/benbusby/whoogle-search/commit/abc30d7da3b5c67be7ce84d4699f327442d44606"
      ],
      "provider_metadata": {
        "cna_assigner": "snyk",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25303.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-25303",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489933,
  "published_at": "2022-07-12T14:20:11.761+00:00"
}