CVE-2020-8127 Cross-site Scripting in reveal.js

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts in the context of users viewing presentations due to insufficient validation in postMessage handling.

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-8127?

CVE-2020-8127 is a medium-severity cross-site scripting vulnerability in reveal.js, published on 28 Feb 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

Insufficient validation in cross-origin communication (postMessage) in reveal.js version 3.9.1 and earlier allow attackers to perform cross-site scripting attacks.

Weakness: CWE-79

Which versions are affected by CVE-2020-8127?

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

PackageAffectedFixed in
reveal.js npmAll versions3.9.2
reveal.js npmAll versions3.9.2

Products include Revealjs Reveal.js.

How do I fix CVE-2020-8127?

Upgrade reveal.js to 3.9.2 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-2020-8127 being exploited?

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

Sources

Also known as GHSA-6vwx-mwp8-fh44.

Is CVE-2020-8127 in your software?

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

Check your SBOMs for free