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.
Published: 2026-08-10
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

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

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T10:56:34.957Z

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

Link: CVE-2026-72571

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T13:00:04Z

Weaknesses
  • CWE-22

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