Skip to main content

directory-serve EUVDEUVD-2026-55237

| CVE-2026-72569 CRITICAL
Path Traversal (CWE-22)
2026-08-10 TuranSec GHSA-gqqc-7rm5-p6gm
9.1
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach directory-serve instance with --delete
  2. Delivery
    Craft file param with ../ traversal
  3. Exploit
    Send request to file-remove endpoint
  4. Execution
    Middleware resolves path outside root
  5. Persist
    Delete arbitrary file
  6. Impact
    Data loss or denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the directory-serve server (version <= 1.3.7) to be launched with the --delete option enabled, which activates the vulnerable lib/middleware/file-remove.js middleware; without --delete the file-removal endpoint is not available. Given that flag, no authentication or user interaction is needed (PR:N/UI:N) and the attack is remote over the network (AV:N) with low complexity (AC:L) against the file-delete endpoint. The main limiting factor is that --delete is a non-default operating mode, so only instances explicitly configured for deletion and reachable by the attacker are exploitable; impact is limited to files the service process has permission to delete.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H, score 9.1) indicates a network-reachable, low-complexity, unauthenticated attack with high integrity and availability impact and no confidentiality loss, which is consistent with a destructive file-deletion primitive. The real-world risk is materially gated by a deployment precondition the base score does not capture: the application must be running with the --delete option, which is not the default mode, so this is closer to a conditional than a universal exposure. No EPSS score, KEV listing, POC, or SSVC decision data was provided, so exploitation probability cannot be quantified from the input; the absence of KEV means there is no evidence of active exploitation. Net assessment: genuinely high severity where the delete feature is enabled and exposed, but the missing --delete flag in typical deployments and the niche footprint of the tool lower the aggregate real-world priority relative to the raw 9.1.

Exploit ScenarioDerived

An attacker who can reach a directory-serve instance started with --delete sends an HTTP request to the file-removal endpoint with a file parameter such as ../../../../etc/hosts or a path to application config or database files. The middleware resolves the traversal outside the served directory and deletes the target, letting an unauthenticated remote actor corrupt or disable the host with no credentials or user interaction. No public POC is identified, but the attack is trivial to construct from the disclosed source.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 10, 2026

Arbitrary file deletion in the cube-root/directory-serve Node.js utility (all versions through 1.3.7) lets an unauthenticated remote attacker remove files anywhere on the host by supplying ../ sequences in the file query parameter of the file-remove middleware. Exploitation requires the server to be started with the --delete option, and the CVSS 3.1 score of 9.1 (I:H/A:H) reflects the potential for destruction of configuration, data, or system files. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the flaw is trivially reproducible from the disclosed source path.

RemediationAI

No vendor-released patch version is identified at time of analysis, so the primary compensating control is to stop running directory-serve with the --delete option, which removes the vulnerable code path entirely and only costs the file-deletion feature. If deletion functionality is required, restrict network exposure by binding the service to localhost or placing it behind an authenticated reverse proxy and firewalling the listening port so only trusted clients can reach it, accepting the trade-off of reduced accessibility. Additionally run the tool as an unprivileged user in a chrooted or containerized directory so a traversal cannot reach sensitive files outside the intended root. Monitor the project repository (https://github.com/cube-root/directory-serve) for a patched release that canonicalizes and validates the file parameter, and upgrade to it once published; do not rely on an assumed fix version, as none is confirmed in the input data.

Affected VersionsENISA

directory-serve 0 <1.3.7

Affected Packages

euvd directory_serve fix: 1.3.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

directory-serve is a lightweight command-line tool that exposes a local directory over HTTP, and its optional file-management feature is implemented in lib/middleware/file-remove.js. The vulnerability is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal): the middleware takes the attacker-controlled req.query.file value and concatenates it into a filesystem path passed to a delete operation without canonicalizing or validating that the result stays within the intended served directory. Because Node's path/fs APIs will resolve ../ segments against the base directory, an attacker can escape the web root and reference arbitrary absolute or relative locations. The affected component is identified by CPE cpe:2.3:a:cube-root:directory-serve:*:*:*:*:*:*:*:* covering all releases up to and including 1.3.7.

Know when Directory Serve gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 9.1 CRITICAL

Remote unauthenticated traversal (AV:N/PR:N/UI:N); low complexity once --delete is enabled; arbitrary file deletion gives I:H/A:H with no data disclosure (C:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 10, 2026 - 12:17 EUVD
CVE Published
Aug 10, 2026 - 10:40 cve.org
CRITICAL 9.1

DescriptionCVE.org

A path traversal vulnerability in cube-root/directory-serve through 1.3.7 allows an unauthenticated remote attacker to delete arbitrary files outside the intended served directory when the application is run with the --delete option. The lib/middleware/file-remove.js middleware does not sanitize the req.query.file parameter before using it to construct file system paths, enabling directory traversal via ../ sequences.

Executive ViewAI

Why It Matters

The cube-root/directory-serve Node.js utility contains a critical vulnerability enabling unauthenticated attackers to delete arbitrary files on affected servers, with all versions through 1.3.7 impacted and no vendor patch currently available. Any organization running this utility with the --delete option enabled faces significant risk of operational disruption, data loss, or configuration compromise. Immediate action is required to identify affected deployments and implement interim controls pending removal of the affected component.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Disable the --delete flag immediately on all deployments; implement firewall or network access controls to restrict remote connectivity to directory-serve endpoints; enable and monitor file deletion events through application and system audit logging; plan replacement with alternative file-serving solutions that do not have path-traversal vulnerabilities.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Rare
obscure single-maintainer npm CLI utility, tiny deployment footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy