{"id":"CVE-2019-15782","aliases":["CVE-2019-15782","GHSA-gjh4-fcv3-whpq"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in webtorrent","summary":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.","source":"cvelist"},{"lang":"en","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.\n\n\n## Recommendation\n\nUpgrade to version 0.107.6 or later.","format":"markdown","source":"ghsa"},{"lang":"es","text":"WebTorrent versiones anteriores a 0.107.6, permite un ataque de tipo XSS en el servidor HTTP por medio de un título o nombre de archivo.","source":"nvd"}],"published":"2019-08-29T11:07:38.000Z","modified":"2026-06-17T02:21:03.680Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.107.6"}],"ecosystem":"npm","package":"webtorrent","purl":"pkg:npm/webtorrent","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.107.6"}],"vendor":"webtorrent","product":"webtorrent","cpe":"cpe:2.3:a:webtorrent:webtorrent:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/webtorrent/webtorrent/compare/v0.107.5...v0.107.6","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/webtorrent/webtorrent/pull/1714","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://hackerone.com/reports/681617","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15782","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/webtorrent/webtorrent/commit/7e829b5d52c32d2e6d8f5fbcf0f8f418fffde083","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-WEBTORRENT-460351","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1158","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-15782","url":"https://www.cve.org/CVERecord?id=CVE-2019-15782","licence":"CVE Terms of Use","modified":"2024-08-05T00:56:22.468Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gjh4-fcv3-whpq","url":"https://github.com/advisories/GHSA-gjh4-fcv3-whpq","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:15.251Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-15782","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15782","licence":"Public domain","modified":"2026-06-17T02:21:03.680Z"}],"updatedAt":"2026-11-25T22:57:46.763Z","epss":{"score":0.01471,"percentile":0.7453,"date":"2026-12-01T12:00:22.000Z"}}