CVE-2022-35920Sanic Project Sanic
High 7.5 No auth needed
Follow: this CVE · Sanic Project · Sanic Project Sanic We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Aug 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue.
What to do
- Apply the vendor's security update for Sanic.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | sanic |
≥ 22.0.0 < 22.6.1 |
22.6.1 |
pip install "sanic>=22.6.1" |
| PyPI | sanic |
≥ 21.0.0 < 21.12.2 |
21.12.2 |
pip install "sanic>=21.12.2" |
| PyPI | sanic |
< 20.12.7 |
20.12.7 |
pip install "sanic>=20.12.7" |
| PyPI | sanic |
< 20.12.7 |
20.12.7 |
pip install "sanic>=20.12.7" |
| PyPI | sanic |
≥ 22.0.0 < 22.6.1 |
22.6.1 |
pip install "sanic>=22.6.1" |
| PyPI | sanic |
≥ 21.0.0 < 21.12.2 |
21.12.2 |
pip install "sanic>=21.12.2" |
Per OSV / GitHub Advisories (GHSA-8cw9-5hmv-77w6, PYSEC-2026-918). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sanic_project | sanic | < 20.12.7 |
| sanic_project | sanic | ≥ 21.0.0 < 21.12.2 |
| sanic_project | sanic | ≥ 22.0.0 < 22.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory