CVE-2020-12670 Cross-site scripting in n/a

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript via unsanitized HTML emails in Webmin's Read User Email module, potentially compromising user accounts.

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-2020-12670?

CVE-2020-12670 is a medium-severity cross-site scripting vulnerability in Webmin Webmin, published on 12 Oct 2020. 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

XSS exists in Webmin 1.941 and earlier affecting the Save function of the Read User Email Module / mailboxes Endpoint when attempting to save HTML emails. This module parses any output without sanitizing SCRIPT elements, as opposed to the View function, which sanitizes the input correctly. A malicious user can send any JavaScript payload into the message body and execute it if the user decides to save that email.

Weakness: CWE-79

Which versions are affected by CVE-2020-12670?

It affects 1 product.

Products include Webmin Webmin.

How do I fix CVE-2020-12670?

Upgrade to a fixed version.

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-2020-12670 being exploited?

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

All Webmin Webmin vulnerabilities

Sources

Also known as GHSA-xjf8-qhj9-9w5r.

Is CVE-2020-12670 in your software?

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

Check your SBOMs for free