sanic
Affected
- introduced
22.0.0, fixed22.6.1(ecosystem)
Fixed versions
22.6.1
Fix
- Fixed version
22.6.1pip install --upgrade sanic==22.6.1
Advisory
Also known as: CVE-2022-35920, PYSEC-2026-918
sanic vulnerable to Path Traversal when using app.static if using encoded %2F URLs
Impact
Access to lateral directories when using app.static if using encoded %2F URLs. Parent directory traversal is not impacted.
Patches
References
https://github.com/sanic-org/sanic/issues/2478
https://github.com/sanic-org/sanic/pull/2495
For more information
If you have any questions or comments about this advisory:
High Basis: The source's own band: HIGH
22.0.0, fixed 22.6.1 (ecosystem)22.6.1
22.6.1pip install --upgrade sanic==22.6.121.0.0, fixed 21.12.2 (ecosystem)21.12.2
21.12.2pip install --upgrade sanic==21.12.20, fixed 20.12.7 (ecosystem)20.12.7
20.12.7pip install --upgrade sanic==20.12.7Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0