CVE-2017-16762 is a high-severity (CVSS 7.5) Path Traversal vulnerability in sanic. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for sanic — see the affected versions and patch details below.
Sanic arbitrary file read and directory traversal
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
sanicReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | sanic | all versions | 0.5.1pip install --upgrade 'sanic==0.5.1' |
Affected Products
sanicsanic_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for sanic, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update sanic to 0.5.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2017-16762 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2017-16762 in your dependencies?
Find it across PyPI, including transitive dependencies.