All reports
High

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

Affected versions

Version ranges need review.

PyPIsanic
Affected versions
>= 21.0.0, < 21.12.2
Fixed version
21.12.2
PyPIsanic
Affected versions
<20.12.7 || >=22.0.0 <22.6.1 || >=21.0.0 <21.12.2
Fixed version
20.12.7 · 21.12.2 · 22.6.1
PyPIsanic
Affected versions
< 20.12.7
Fixed version
20.12.7
PyPIsanic
Affected versions
>= 22.0.0, < 22.6.1
Fixed version
22.6.1

Exploitation

CVE-2022-35920

Probability of exploitation in the next 30 days: 1.20%

FIRST EPSS · 2026-11-21

Description

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:

Links