Description
A vulnerability was identified in WebTorrent up to 2.8.5/3.0.21. Affected by this vulnerability is the function getFileModtimes of the file torrent.js of the component File Path Handler. Such manipulation of the argument file.path leads to path traversal. The attack may be performed from remote. The exploit is publicly available and might be used. The reported GitHub issue was closed with the label "not planned".
Published: 2026-11-09
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Remote Path Traversal (arbitrary file read)
Action: Apply Fix
AI Analysis

Impact

The getFileModtimes function in WebTorrent’s torrent.js incorrectly handles the file.path argument, allowing an attacker to craft a path that escapes the intended directory. This path traversal flaw can be triggered from a remote source, leading to unauthorized reading of arbitrary files on the host. The vulnerability is identified by CWE-22 and public exploits are available, which means that any exposed WebTorrent instance could be used as a foothold to gain sensitive data by reading files outside the expected location.

Affected Systems

WebTorrent library up to and including versions 2.8.5 and 3.0.21 is affected. The flaw resides in the File Path Handler component of the package and directly impacts users of these releases who integrate WebTorrent into their applications.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity; the EPSS score is not available, and the vulnerability is not listed in KEV, suggesting no publicly known large‑scale exploitation campaigns yet. However, because the flaw can be abused remotely and public exploits exist, the threat is significant enough to warrant prompt attention. Attackers need only send a crafted request to a WebTorrent instance that processes a file.path parameter; no additional pre‑conditions are documented.

Generated by OpenCVE AI on November 9, 2026 at 09:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade WebTorrent to a release that includes the getFileModtimes path traversal fix.
  • If an upgrade is not feasible, sanitize any file.path values by rejecting or normalizing relative segments such as '..' before invoking getFileModtimes.
  • Limit exposure of the WebTorrent instance by ensuring it is only reachable from trusted networks or by guarding the interface that accepts file.path input.

Generated by OpenCVE AI on November 9, 2026 at 09:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 08:45:00 +0000

Type Values Removed Values Added
Description A vulnerability was identified in WebTorrent up to 2.8.5/3.0.21. Affected by this vulnerability is the function getFileModtimes of the file torrent.js of the component File Path Handler. Such manipulation of the argument file.path leads to path traversal. The attack may be performed from remote. The exploit is publicly available and might be used. The reported GitHub issue was closed with the label "not planned".
Title WebTorrent File Path torrent.js getFileModtimes path traversal
First Time appeared Webtorrent
Webtorrent webtorrent
Weaknesses CWE-22
CPEs cpe:2.3:a:webtorrent:webtorrent:*:*:*:*:*:*:*:*
Vendors & Products Webtorrent
Webtorrent webtorrent
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:N/A:N/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Webtorrent Webtorrent
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-11-09T08:30:22.978Z

Reserved: 2026-11-08T17:19:42.551Z

Link: CVE-2026-124582

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-09T09:16:59.053

Modified: 2026-11-09T09:16:59.230

Link: CVE-2026-124582

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T09:30:08Z

Weaknesses
  • CWE-22

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