Every CVE Search/ Get API key

CVE-2019-15782

Cross-Site Scripting in webtorrent

6.1 MediumFix available

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

1.47%Up 0.6 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
webtorrent
npm
before 0.107.6
0.107.6

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

MoveEnter Open