Read the docs
TI-2022-16347 Aliases CVE-2022-35920GHSA-8cw9-5hmv-77w6

Improper Limitation of a Pathname to a Restricted Directory in sanic

Priority HIGH 75CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01199 68th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed sanic (sanic-org): 22.6.1, 21.12.2, 20.12.7sanic (PyPI): 22.6.1, 21.12.2, 20.12.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
sanic-orgsanic22.0.0 to before 22.6.1; 21.0.0 to before 21.12.2; before 20.12.722.6.1, 21.12.2, 20.12.7Patch availableCNA
—sanic (PyPI)22.0.0 to before 22.6.122.6.1Patch availableGHSA-8cw9-5hmv-77w6
—sanic (PyPI)21.0.0 to before 21.12.221.12.2Patch availableGHSA-8cw9-5hmv-77w6
—sanic (PyPI)before 20.12.720.12.7Patch availableGHSA-8cw9-5hmv-77w6
  • sanic Vendorsanic-org Affected 22.0.0 to before 22.6.1; 21.0.0 to before 21.12.2; before 20.12.7 Fixed in 22.6.1, 21.12.2, 20.12.7 Patch available CNA
  • sanic (PyPI) Vendor— Affected 22.0.0 to before 22.6.1 Fixed in 22.6.1 Patch available GHSA-8cw9-5hmv-77w6
  • sanic (PyPI) Vendor— Affected 21.0.0 to before 21.12.2 Fixed in 21.12.2 Patch available GHSA-8cw9-5hmv-77w6
  • sanic (PyPI) Vendor— Affected before 20.12.7 Fixed in 20.12.7 Patch available GHSA-8cw9-5hmv-77w6

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:*before 20.12.7; 21.0.0 to before 21.12.2; 22.0.0 to before 22.6.1VulnerableSanic Project
  • cpe:2.3:a:sanic_project:sanic:*:*:*:*:*:*:*:* Versions before 20.12.7; 21.0.0 to before 21.12.2; 22.0.0 to before 22.6.1 Vulnerable ·Sanic Project

Remediation

  • Fix · CNA sanic (sanic-org) Fixed in 22.6.1, 21.12.2, 20.12.7
  • Fix · GHSA-8cw9-5hmv-77w6 sanic (PyPI) Fixed in 22.6.1 Advisory →
  • Fix · GHSA-8cw9-5hmv-77w6 sanic (PyPI) Fixed in 21.12.2 Advisory →
  • Fix · GHSA-8cw9-5hmv-77w6 sanic (PyPI) Fixed in 20.12.7 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-35920
  2. 2026-10-03 Alias added: GHSA-8cw9-5hmv-77w6

References

  • TI-2026-58441 Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses CVSS 3.1HIGH 8.2
  • TI-2026-58442 sanic chunked trailer request smuggling allows hidden second request execution CVSS 3.1MEDIUM 6.5

Sources