CVE-2026-124582

WebTorrent File Path torrent.js getFileModtimes path traversal

Published Nov 9, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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".

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 30, 2026, 3:21 PM
Reserved
Nov 8, 2026, 5:19 PM
Status
Deferred
Published
Nov 9, 2026, 9:16 AM
Modified
Nov 9, 2026, 11:17 PM