ADVISORIES

PyPA Advisory Database

PYSEC-2026-918

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

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:

Affected packages

EcosystemPackageAffected versions
PyPIsanic
All versions before 20.12.7 (fixed in 20.12.7)
From 22.0.0 before 22.6.1 (fixed in 22.6.1)
From 21.0.0 before 21.12.2 (fixed in 21.12.2)

References