CVE-2026-72570: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cube-root directory-serve
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.
AI Analysis
Technical Summary
This vulnerability in cube-root/directory-serve (through version 1.3.7) is due to improper neutralization of input during web page generation (CWE-79). Specifically, the lib/helper/html.js file fails to sanitize filenames before embedding them in HTML templates at line 28. An attacker can exploit this by uploading a file with a crafted filename containing HTML attribute-breaking characters, resulting in stored cross-site scripting. When other users view the file listing, the injected script executes in their browsers.
Potential Impact
Successful exploitation allows an attacker with upload privileges to execute arbitrary JavaScript in the context of other users' browsers who view the affected file listing. This can lead to information disclosure or session hijacking limited to the privileges of the affected users. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, user interaction, and partial confidentiality and integrity impact without availability impact.
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, users should restrict file upload permissions to trusted users only and consider manual sanitization or filtering of filenames before upload or display to mitigate the risk.
CVE-2026-72570: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cube-root directory-serve
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.
CVSS v3.1
Score 5.4medium
Affected software
pkg:github/cube-root/directory-serveRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in cube-root/directory-serve (through version 1.3.7) is due to improper neutralization of input during web page generation (CWE-79). Specifically, the lib/helper/html.js file fails to sanitize filenames before embedding them in HTML templates at line 28. An attacker can exploit this by uploading a file with a crafted filename containing HTML attribute-breaking characters, resulting in stored cross-site scripting. When other users view the file listing, the injected script executes in their browsers.
Potential Impact
Successful exploitation allows an attacker with upload privileges to execute arbitrary JavaScript in the context of other users' browsers who view the affected file listing. This can lead to information disclosure or session hijacking limited to the privileges of the affected users. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, user interaction, and partial confidentiality and integrity impact without availability impact.
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, users should restrict file upload permissions to trusted users only and consider manual sanitization or filtering of filenames before upload or display to mitigate the risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-10T10:32:53.853Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a79ae6ebf8831d5398afd0d
Added to database: 08/10/2026, 10:56:46 UTC
Last enriched: 08/10/2026, 11:14:10 UTC
Last updated: 08/11/2026, 03:41:00 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.