CVE-2026-17459

perwendel spark SparkJava ExternalResourceHandler.jav staticFiles.externalLocation symlink

Published Jul 26, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was determined in perwendel spark up to 2.9.4. This vulnerability affects the function staticFiles.externalLocation of the file src/main/java/spark/resource/ExternalResourceHandler.jav of the component SparkJava. Executing a manipulation can lead to symlink following. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The vulnerability resides in SparkJava’s ExternalResourceHandler, where the staticFiles.externalLocation method processes user-supplied paths and can follow symbolic links. By crafting a request that points to a symlink, an attacker can cause the server to resolve and expose arbitrary files on the host, resulting in potential information disclosure.

Affected Systems

The issue affects the perwendel spark framework up to and including version 2.9.4. Any deployment using SparkJava’s static file serving feature with that function is susceptible; newer releases (beyond 2.9.4) may contain the fix.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. The EPSS score is less than 1%, pointing to a very low likelihood of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. The attack is remotely achievable via HTTP requests that manipulate the staticFiles.externalLocation parameter, and the exploit has been publicly disclosed, meaning attackers could try it if the target remains unpatched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SparkJava to a version where the fix has been applied (any release after 2.9.4).
  • If an immediate upgrade is not feasible, disable the staticFiles.externalLocation feature or remove it from your application so the server cannot resolve external paths.
  • Audit the directories exposed by staticFiles.externalLocation to ensure they contain no symbolic links pointing to sensitive files; relocate such files outside the directory or rename them.

Generated by OpenCVE AI on August 3, 2026 at 18:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability was determined in perwendel spark up to 2.9.4. This vulnerability affects the function staticFiles.externalLocation of the file src/main/java/spark/resource/ExternalResourceHandler.jav of the component SparkJava. Executing a manipulation can lead to symlink following. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
Title perwendel spark SparkJava ExternalResourceHandler.jav staticFiles.externalLocation symlink
First Time appeared Perwendel
Perwendel spark
Weaknesses CWE-59
CWE-61
CPEs cpe:2.3:a:perwendel:spark:*:*:*:*:*:*:*:*
Vendors & Products Perwendel
Perwendel spark
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

  • CWE-61

    UNIX Symbolic Link (Symlink) Following

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jul 27, 2026, 5:23 PM
Reserved
Jul 25, 2026, 7:07 PM
Status
Deferred
Published
Jul 26, 2026, 11:16 AM
Modified
Oct 24, 2026, 1:10 PM