CVE-2022-0776 Cross-site Scripting (XSS) - DOM in hakimel/reveal.js

Medium 5.3 Published Updated

An attacker can execute arbitrary JavaScript in the victim's browser via DOM-based XSS in the reveal.js presentation library.

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-2022-0776?

CVE-2022-0776 is a medium-severity cross-site scripting vulnerability in hakimel/reveal.js, published on 1 Mar 2022. 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

Cross-site Scripting (XSS) - DOM in GitHub repository hakimel/reveal.js prior to 4.3.0.

Weakness: CWE-79

Which versions are affected by CVE-2022-0776?

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

PackageAffectedFixed in
reveal.js npmAll versions4.3.0
reveal.js npmAll versions4.3.0

Products include Revealjs Reveal.js.

How do I fix CVE-2022-0776?

Upgrade reveal.js to 4.3.0 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-2022-0776 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0776 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-hhqj-cfjx-vj25.

Is CVE-2022-0776 in your software?

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

Check your SBOMs for free