CVE-2019-15782
Cross-Site Scripting in webtorrent
WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.1
WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.
- Record
CVE-2019-15782- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.
- Record
CVE-2019-15782- Updated
- 2026-11-02
EUVDEUVD-2019-0668 No score
WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.
- Record
EUVD-2019-0668- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gjh4-fcv3-whpq
6.1
Cross-Site Scripting in webtorrent
Versions of webtorrent prior to 0.107.6 are vulnerable to Cross-Site Scripting. webtorrent servers started with torrent.createServer() lists a torrent's title and files in the index page without sanitization. This allows attackers to execute arbitrary JavaScript in the victim's browser through files with names containing the malicious payload. The issue is mitigated due to the fact that the server only allows fetching data pieces from the torrent.
Recommendation
Upgrade to version 0.107.6 or later.
- Record
GHSA-gjh4-fcv3-whpq- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.1
WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.
- Record
CVE-2019-15782- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVGHSA-gjh4-fcv3-whpq
6.1
Cross-Site Scripting in webtorrent
Versions of webtorrent prior to 0.107.6 are vulnerable to Cross-Site Scripting. webtorrent servers started with torrent.createServer() lists a torrent's title and files in the index page without sanitization. This allows attackers to execute arbitrary JavaScript in the victim's browser through files with names containing the malicious payload. The issue is mitigated due to the fact that the server only allows fetching data pieces from the torrent.
Recommendation
Upgrade to version 0.107.6 or later.
- Record
GHSA-gjh4-fcv3-whpq- CVSS 3.0
- 6.1 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
webtorrentnpm |
before 0.107.6 | 0.107.6 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-15782 is a medium vulnerability (CVSS 6.1) in Webtorrent, published August 29, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.47%, the 73rd percentile. Fixed in webtorrent 0.107.6.
References
github.com/webtorrent/webtorrent/compare/v0.107.5...v0.107.6
github.com/webtorrent/webtorrent/pull/1714
hackerone.com/reports/681617
nvd.nist.gov/vuln/detail/CVE-2019-15782
snyk.io/vuln/SNYK-JS-WEBTORRENT-460351
npmjs.com/advisories/1158
github.com/webtorrent/webtorrent/commit/7e829b5d52c32d2e6d8f5fbcf0f8f418fffde083
github.com/advisories/GHSA-gjh4-fcv3-whpq