CVE-2022-35920: PYSEC-2026-918 - sanic vulnerable to Path Traversal when using `app.static` if using encoded `%2F` URLs

CVE-2022-35920 · Severity: low · CVSS 3.1 · Published 2026-07-06

sanic vulnerable to Path Traversal when using `app.static` if using encoded `%2F` URLs

Technologies: sanic (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2022-35920 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-35920 being exploited in the wild.
How severe is CVE-2022-35920?
Low severity, with a CVSS score of 3.1, published 6 July 2026.
Which products and versions are affected?
sanic (PyPI) ECOSYSTEM:introduced=0,fixed=20.12.7,introduced=22.0.0,fixed=22.6.1,introduced=21.0.0,fixed=21.12.2, ECOSYSTEM:introduced=22.0.0,fixed=22.6.1.
Is there a fix for CVE-2022-35920?
Yes. sanic (PyPI): upgrade to 21.12.2, 22.6.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-35920?
Check whether you run sanic (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

  • sanic (PyPI): upgrade to 21.12.2, 22.6.1 or later
    pip install "sanic>=22.6.1"

Affected products

  • sanic (PyPI) ECOSYSTEM:introduced=0,fixed=20.12.7,introduced=22.0.0,fixed=22.6.1,introduced=21.0.0,fixed=21.12.2, ECOSYSTEM:introduced=22.0.0,fixed=22.6.1

Identifiers

  • CVE-2022-35920
  • GHSA-8cw9-5hmv-77w6
  • PYSEC-2026-918

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