CVE-2026-72570

cube-root directory-serve - Stored Cross-Site Scripting via Malicious Filename

Published Aug 10, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Cube-root
Cube-root directory-serve
Vendors & Products Cube-root
Cube-root directory-serve
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.
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 5:51 PM
Reserved
Aug 10, 2026, 10:32 AM
Status
Deferred
Published
Aug 10, 2026, 11:17 AM
Modified
Oct 24, 2026, 3:10 PM