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

Medium 5.4 Published Updated

Attackers can inject HTML into Webmin command logs, potentially stealing data or bypassing security controls when logs are viewed.

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

What is CVE-2020-8821?

CVE-2020-8821 is a medium-severity cross-site scripting vulnerability in Webmin Webmin, published on 12 Oct 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

An Improper Data Validation Vulnerability exists in Webmin 1.941 and earlier affecting the Command Shell Endpoint. A user may enter HTML code into the Command field and submit it. Then, after visiting the Action Logs Menu and displaying logs, the HTML code will be rendered (however, JavaScript is not executed). Changes are kept across users.

Weakness: CWE-79

Which versions are affected by CVE-2020-8821?

It affects 1 product.

Products include Webmin Webmin.

How do I fix CVE-2020-8821?

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-8821 being exploited?

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

All Webmin Webmin vulnerabilities

Sources

Also known as GHSA-2gmj-rvcm-f6j2.

Is CVE-2020-8821 in your software?

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

Check your SBOMs for free