HIGH8.3
PYSEC-2026-918
sanic vulnerable to Path Traversal when using `app.static` if using encoded `%2F` URLs
Quick fix
PYSEC-2026-918 — sanic: upgrade to the fixed version with the command below.
pip install --upgrade 'sanic>=20.12.7'Details
### Impact Access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted.
### Patches - v20.12.7 (LTS) - v21.12.2 (LTS) - v22.6.1
### 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: * Open an issue in [the community forums](https://community.sanicframework.org/) * Ping us on [the Discord server](https://discord.gg/FARQzAEMAA)
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-35920[ADVISORY]
- https://github.com/sanic-org/sanic/issues/2478[WEB]
- https://github.com/sanic-org/sanic/pull/2495[WEB]
- https://github.com/sanic-org/sanic[PACKAGE]
- https://pypi.org/project/sanic[PACKAGE]
- https://github.com/advisories/GHSA-8cw9-5hmv-77w6[ADVISORY]