Description
A stored cross-site scripting (XSS) vulnerability in cube-root/directory-serve through 1.3.7 allows an attacker to inject arbitrary JavaScript into the web interface by uploading a file with a crafted filename containing HTML attribute-breaking characters.
Published: 2026-08-10
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The stored XSS flaw in cube-root directory-serve up to version 1.3.7 allows an attacker to inject arbitrary JavaScript by uploading a file whose name contains characters that break out of an HTML attribute. When a user views the directory listing, the unsanitized filename is embedded directly in an HTML attribute, causing the browser to execute the embedded script. This victim-side code can be used for session hijacking, cookie theft, or other client-side attacks within the context of the user who views the page.

Affected Systems

The vulnerability exists in cube-root directory-serve versions 1.3.7 and earlier. The application functions as a static file server that presents a web page listing uploaded files, exposing the directory structure to users.

Risk and Exploitability

With a CVSS score of 5.4, the flaw carries medium severity. The EPSS score is unavailable and it is not listed in the CISA KEV catalog. An attacker can exploit the issue by uploading a file with a crafted filename; no additional privileges are explicitly required for the upload endpoint. Once the malicious filename is present in the listing, any user who views the page may have their browser execute the injected script, potentially compromising session data and enabling further victim-directed attacks.

Generated by OpenCVE AI on August 10, 2026 at 20:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade cube-root directory-serve to the latest release (1.3.8 or newer) where filename sanitization is applied.
  • If an immediate upgrade is not feasible, restrict or disable unauthenticated file uploads and consider removing the exposed directory-listing interface.
  • Implement server-side validation to strip or HTML-encode characters that could break out of attribute contexts before rendering filenames in the listing.

Generated by OpenCVE AI on August 10, 2026 at 20:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Cube-root
Cube-root directory-serve
Vendors & Products Cube-root
Cube-root directory-serve

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description A stored cross-site scripting (XSS) vulnerability in cube-root/directory-serve through 1.3.7 allows an attacker to inject arbitrary JavaScript into the web interface by uploading a file with a crafted filename containing HTML attribute-breaking characters. The lib/helper/html.js file does not sanitize filenames before embedding them in HTML templates at line 28, enabling script execution in other users' browsers when they view the file listing. A stored cross-site scripting (XSS) vulnerability in cube-root/directory-serve through 1.3.7 allows an attacker to inject arbitrary JavaScript into the web interface by uploading a file with a crafted filename containing HTML attribute-breaking characters.

Mon, 10 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
Description A stored cross-site scripting (XSS) vulnerability in cube-root/directory-serve through 1.3.7 allows an attacker to inject arbitrary JavaScript into the web interface by uploading a file with a crafted filename containing HTML attribute-breaking characters. The lib/helper/html.js file does not sanitize filenames before embedding them in HTML templates at line 28, enabling script execution in other users' browsers when they view the file listing.
Title cube-root directory-serve - Stored Cross-Site Scripting via Malicious Filename
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Cube-root Directory-serve
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T17:51:17.121Z

Reserved: 2026-08-10T10:32:53.853Z

Link: CVE-2026-72570

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T11:17:29.633

Modified: 2026-08-10T18:18:51.307

Link: CVE-2026-72570

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T14:25:00Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')