CVE-2022-35920
HIGH 7.5CVSS 3.1sanic 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sanic_project | saniccpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:* |
< 20.12.7 | 20.12.7 |
| NVD | sanic_project | saniccpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:* |
>= 21.0.0, < 21.12.2 | 21.12.2 |
| NVD | sanic_project | saniccpe: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
- https://github.com/sanic-org/sanic/issues/2478 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/sanic-org/sanic/pull/2495 · Patch, Third Party Advisory, WEB
- https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-35920 · ADVISORY
- https://github.com/sanic-org/sanic · PACKAGE
- https://pypi.org/project/sanic · PACKAGE
- https://github.com/advisories/GHSA-8cw9-5hmv-77w6 · ADVISORY
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)