GitHub Advisoryadvisory · npm
GHSA-hhqj-cfjx-vj25 Cross site scripting in reveal.js
MEDIUM
Official page ↗
- Aliases
- CVE-2022-0776
- Ecosystem
- npm
- Packages
- reveal.js
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2022-03-02
Affected packages
• npm reveal.js: < 4.3.0 → fixed in 4.3.0
Description
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
Related
Alias · CVE (1)
- CVE-2022-0776 Cross-site Scripting (XSS) - DOM in GitHub repository hakimel/reveal.js prior to 4.3.0. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness