CVE-2020-15230 is a medium-severity (CVSS 6.5) Path Traversal vulnerability in github.com/vapor/vapor. A fix is available for github.com/vapor/vapor — see the affected versions and patch details below.
Arbitrary file read using percent-encoded relative paths in FileMiddleware
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
github.com/vapor/vaporReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects SwiftURL packages — download data is not available via public APIs for these ecosystems.
Description
Impact
Attackers can access data at arbitrary filesystem paths on the same host as an application using FileMiddleware.
Patches
Version 4.29.4
Workarounds
Upgrade to 4.24.4 or later, or disable FileMiddleware.
References
- Introduced in https://github.com/vapor/vapor/pull/2223
- Fixed by https://github.com/vapor/vapor/pull/2500
For more information
If you have any questions or comments about this advisory:
- Open an issue
- Email us at [email protected]
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦SwiftURL | github.com/vapor/vapor | ≥ 4.0.0-rc.2.5&&< 4.29.4 | 4.29.4 |
Affected Products
vaporvapor_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/vapor/vapor, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/vapor/vapor to 4.29.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-15230 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-2020-15230 in your dependencies?
Find it across SwiftURL, including transitive dependencies.