Skip to content
OpenAdvisories
High · 8.3 CVE-2022-35920 EUVD-2022-6514GHSA-8cw9-5hmv-77w6PYSEC-2026-918

Improper Limitation of a Pathname to a Restricted Directory in sanic

Published Aug 1, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
sanic-org sanic >= 22.0.0, < 22.6.1, >= 21.0.0, < 21.12.2, < 20.12.7 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI sanic >= 22.0.0, < 22.6.1 22.6.1 GHSA-8cw9-5hmv-77w6
PyPI sanic >= 21.0.0, < 21.12.2 21.12.2 GHSA-8cw9-5hmv-77w6
PyPI sanic < 20.12.7 20.12.7 GHSA-8cw9-5hmv-77w6
PyPI sanic < 20.12.7 · >= 22.0.0, < 22.6.1 · >= 21.0.0, < 21.12.2 20.12.7, 22.6.1, 21.12.2 PYSEC-2026-918

References