CVE-2016-9177: Directory Traversal Vulnerability in com.sparkjava:spark-core
Summary
CVE-2016-9177: Spark allows remote attackers to read arbitrary files via a .. (dot dot) in the URI. Affects com.sparkjava:spark-core versions < 2.5.2. Fixed in 2.5.2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
com.sparkjava:spark-core is a Maven package that provides a lightweight web framework for Java applications. It allows developers to build RESTful web services and applications easily. The package is widely used and has a large user base. However, it is vulnerable to a directory traversal attack.
Vulnerability Detail
The directory traversal vulnerability in com.sparkjava:spark-core allows remote attackers to read arbitrary files by exploiting a '..' (dot dot) in the URI. This means that an attacker can access sensitive files on the server by manipulating the URI and traversing directories that they should not have access to. The vulnerability can lead to unauthorized disclosure of sensitive information and potential compromise of the server.
How To Fix
Latest published version: 2.9.4 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.5.2
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of com.sparkjava:spark-core to mitigate the risk.
Conclusion
The directory traversal vulnerability in com.sparkjava:spark-core can allow remote attackers to read arbitrary files on the server. It is crucial for developers to upgrade to the fixed version of the package (2.5.2 or later) to mitigate the risk. Vulert's playground can be used to check if your application is affected by this vulnerability. For additional support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for com.sparkjava:spark-core →
FAQ
A directory traversal vulnerability allows an attacker to access files outside of the intended directory by manipulating input parameters or file paths.
The vulnerability allows remote attackers to read arbitrary files on the server, potentially leading to unauthorized disclosure of sensitive information.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.
Yes, the vulnerability has been fixed in com.sparkjava:spark-core version 2.5.2 and later. It is recommended to upgrade to the latest version to ensure the security of your application.
For further support on vulnerability remediation, you can contact info@devnack.com. They can provide assistance and guidance on fixing the vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for com.sparkjava:spark-core.