CVE-2026-72571

mustafaakin cast-localvideo - Unauthenticated Path Traversal via dir Parameter

Published Aug 10, 2026 CVSS 3.1 · 7.5 High EPSS 1.1% KEV · Not listed
Description
A path traversal vulnerability in mustafaakin/cast-localvideo (all versions) allows an unauthenticated remote attacker to read arbitrary files from the server. The app.js handler at lines 151-153 passes the user-supplied req.body.dir parameter directly to res.sendFile() without sanitization, enabling directory traversal via absolute paths or ../ sequences to read sensitive system files.

Analysis

AI-generated

Technical impact

A path traversal flaw in the mustafaakin/cast-localvideo application allows an unauthenticated attacker to read arbitrary files from the server by supplying a specially crafted dir parameter to the app.js handler, which directly passes the value to res.sendFile(). The flaw, identified as CWE-22, permits traversal through absolute paths or '../' sequences, potentially exposing sensitive system files to attackers.

Affected Systems

The vulnerability affects all released versions of mustafaakin's cast‑localvideo product. The app is written in Node.js and deployed under the author’s GitHub repository. No specific OS or environment was indicated beyond typical Node.js hosting.

Risk and Exploitability

The CVSS score of 7.5 reflects a high severity impact: unauthenticated remote exploitation leads to information disclosure. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. An attacker can exploit the flaw by issuing a crafted HTTP request to the server’s endpoint that accepts the dir parameter, without needing credentials or additional constraints.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Incorporate an update or patch from the vendor that sanitizes the dir parameter, ensuring no absolute paths or traversal sequences are accepted.
  • Implement input validation that whitelists allowed directory paths and normalizes the received path before passing it to res.sendFile().
  • Restrict the Node.js process’s filesystem access by configuring appropriate permissions or using containerization techniques to limit which directories can be read.

Generated by OpenCVE AI on August 10, 2026 at 12:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mustafaakin
Mustafaakin cast-localvideo
Vendors & Products Mustafaakin
Mustafaakin cast-localvideo
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description A path traversal vulnerability in mustafaakin/cast-localvideo (all versions) allows an unauthenticated remote attacker to read arbitrary files from the server. The app.js handler at lines 151-153 passes the user-supplied req.body.dir parameter directly to res.sendFile() without sanitization, enabling directory traversal via absolute paths or ../ sequences to read sensitive system files.
Title mustafaakin cast-localvideo - Unauthenticated Path Traversal via dir Parameter
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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