CVE-2016-9177: Directory Traversal Vulnerability in com.sparkjava:spark-core

com.sparkjava:spark-core Updated 02 Oct 2025

Summary

04/10/2018
Yes i
High
7.5

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback