Security mailing lists by PureSourceCode

CVE-2022-35920

HIGH 7.5CVSS 3.1

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

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.

Published
1 Aug 2022
Last modified
7 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-8cw9-5hmv-77w6PYSEC-2026-918
Sources
NVDJSONOSV GHSA-8cw9-5hmv-77w6JSONOSV PYSEC-2026-918JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
OSV GitHub CVSS 3.1 HIGH 8.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
OSV PyPA CVSS 3.1 HIGH 8.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD sanic_project sanic
cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*
< 20.12.7 20.12.7
NVD sanic_project sanic
cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*
>= 21.0.0, < 21.12.2 21.12.2
NVD sanic_project sanic
cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*
>= 22.0.0, < 22.6.1 22.6.1
OSV PyPI sanic >= 22.0.0, < 22.6.1 22.6.1
OSV PyPI sanic >= 21.0.0, < 21.12.2 21.12.2
OSV PyPI sanic < 20.12.7 20.12.7
OSV 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

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Aug 2022)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Aug 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.