{"id":"CVE-2022-35920","aliases":["GHSA-8cw9-5hmv-77w6","PYSEC-2026-918"],"url":"https://o3.security/vulnerability/CVE-2022-35920","summary":"Improper Limitation of a Pathname to a Restricted Directory in sanic","details":"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":"2022-08-01T21:35:27Z","modified":"2026-08-12T03:51:35.018620384Z","cvss":{"score":8.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"},"epss":{"score":0.0113,"percentile":0.63463,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"sanic","fixedVersion":"22.6.1"},{"ecosystem":"PyPI","name":"sanic","fixedVersion":"21.12.2"},{"ecosystem":"PyPI","name":"sanic","fixedVersion":"20.12.7"}],"fix":{"url":"https://github.com/sanic-org/sanic/pull/2495","label":"sanic-org/sanic#2495"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35920.json"},{"type":"ADVISORY","url":"https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35920"},{"type":"REPORT","url":"https://github.com/sanic-org/sanic/issues/2478"},{"type":"FIX","url":"https://github.com/sanic-org/sanic/pull/2495"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:35.018620384Z"}}