~ / search / GHSA-gjh4-fcv3-whpq

GHSA-gjh4-fcv3-whpq

Cross-Site Scripting in webtorrent

Source: GitHub Advisory Database (reviewed) Moderate CVE-2019-15782

Packages

EcosystemPackageAffectedFixed in
npm webtorrent < 0.107.6 0.107.6

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.