CVE-2019-15782 Cross-Site Scripting in webtorrent

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in the victim's browser via malicious titles or filenames in the WebTorrent HTTP server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-15782?

CVE-2019-15782 is a medium-severity cross-site scripting vulnerability in n/a, published on 29 Aug 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

WebTorrent before 0.107.6 allows XSS in the HTTP server via a title or file name.

Weakness: CWE-79

Which versions are affected by CVE-2019-15782?

2 open source packages ship an affected version, including webtorrent. It affects 1 product.

PackageAffectedFixed in
webtorrent npmAll versions0.107.6
webtorrent npmAll versions0.107.6

Products include Webtorrent Webtorrent.

How do I fix CVE-2019-15782?

Upgrade webtorrent to 0.107.6 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2019-15782 being exploited?

There is no known exploitation of CVE-2019-15782 in the wild and no public exploit code.

Sources

Also known as GHSA-gjh4-fcv3-whpq.

Is CVE-2019-15782 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free