{"id":"CVE-2019-15782","aliases":["EUVD-2019-0668","GHSA-gjh4-fcv3-whpq"],"status":"published","title":"Cross-Site Scripting in webtorrent","description":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01471,"percentile":0.7396,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2019-08-29T11:07:38Z","modified":"2026-10-20T10:50:48Z","fixes":[{"ecosystem":"npm","package":"webtorrent","fixed_in":["0.107.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"webtorrent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.107.6"}]}]},{"source":"osv","ecosystem":"npm","package":"webtorrent","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.107.6"}]}]}],"products":[{"vendor":"webtorrent","product":"webtorrent"}],"references":[{"url":"https://github.com/webtorrent/webtorrent/compare/v0.107.5...v0.107.6","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/webtorrent/webtorrent/pull/1714","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://hackerone.com/reports/681617","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15782","tags":["advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-WEBTORRENT-460351","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1158","tags":["web"]},{"url":"https://github.com/webtorrent/webtorrent/commit/7e829b5d52c32d2e6d8f5fbcf0f8f418fffde083","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gjh4-fcv3-whpq"}],"sources":{"cve":[{"id":"CVE-2019-15782","description":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","status":"published","published":"2019-08-29T11:07:38Z","modified":"2024-08-05T00:56:22.468Z","updated_at":"2026-11-02T14:20:21.397307Z"}],"euvd":[{"id":"EUVD-2019-0668","description":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","status":"published","published":"2019-08-29T11:07:38Z","modified":"2024-08-05T00:56:22Z","updated_at":"2026-11-03T02:40:35.132035Z"}],"ghsa":[{"id":"GHSA-gjh4-fcv3-whpq","title":"Cross-Site Scripting in webtorrent","description":"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.\n\n\n## Recommendation\n\nUpgrade to version 0.107.6 or later.","status":"published","published":"2019-09-04T10:02:50Z","modified":"2023-04-04T17:26:26Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:49.768564Z"}],"nvd":[{"id":"CVE-2019-15782","description":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","status":"published","published":"2019-08-29T12:15:11.687Z","modified":"2026-06-17T02:21:03.68Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:05:25.691233Z"}],"osv":[{"id":"CVE-2019-15782","description":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","status":"published","published":"2019-08-29T12:15:11.687Z","modified":"2026-10-20T10:50:48.834889725Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:11.361782Z"},{"id":"GHSA-gjh4-fcv3-whpq","title":"Cross-Site Scripting in webtorrent","description":"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.\n\n\n## Recommendation\n\nUpgrade to version 0.107.6 or later.","status":"published","published":"2019-09-04T10:02:50Z","modified":"2023-11-08T04:01:15.251103Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.822182Z"}]}}
