VDB
Sign up
MEDIUM6.1

GHSA-hhqj-cfjx-vj25

Cross site scripting in reveal.js

Quick fix

GHSA-hhqj-cfjx-vj25 — reveal.js: upgrade to the fixed version with the command below.

npm install reveal.js@4.3.0

Details

The onmessage event listener in /plugin/notes/speaker-view.html does not check the origin of postMessage before adding the content to the webpage. The vulnerable code allows any origin to postMessage on the browser window and feeds attacker's input to parts using which attacker can execute arbitrary javascript code on victim's browser window hosting reveal.js

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/reveal.js
Introduced in: 0Fixed in: 4.3.0
Fixnpm install reveal.js@4.3.0

References