Advisory

GHSA-gjh4-fcv3-whpq

Also known as: CVE-2019-15782

Summary

Cross-Site Scripting in webtorrent

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-09-04 10:02 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

webtorrent

npm · All systems

Affected

  • introduced 0, fixed 0.107.6 (semver)

Fixed versions

0.107.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences