CVE-2022-0776: RevealJS postMessage <4.3.0 - Cross-Site Scripting
- Template: CVE-2022-0776
- Name: RevealJS postMessage <4.3.0 - Cross-Site Scripting
- Description: RevealJS postMessage before 4.3.0 contains a cross-site scripting vulnerability via the document object model.
- Impact: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
- Remediation: Upgrade to RevealJS postMessage version 4.3.0 or later to mitigate this vulnerability.
- Severity: medium
- Authors: LogicalHunter
- Tags: cve, cve2022, hackerone, huntr, headless, postmessage, revealjs, node.js, vuln
- References: https://hackerone.com/reports/691977, https://github.com/hakimel/reveal.js/pull/3137, https://huntr.dev/bounties/be2b7ee4-f487-42e1-874a-6bcc410e4001/, https://nvd.nist.gov/vuln/detail/CVE-2022-0776, https://github.com/hakimel/reveal.js/commit/32cdd3b1872ba8e2267c9e87ae216cb55f40f4d2
- Cves: CVE-2022-0776
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-0776.yaml
- Digest: 490a0046304402201f9e33a32ed91da5289e729a72a82a124f5f6bf6893affcea23f7afc7931939b02200cde23480670534a3fa654c7b0fbd30ba36ba31f558d009d6f56c5db367e98a6
- Created at: 2022-05-29T10:39:24Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1640
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0776.yaml
- Checked, none or zero: verified
- Not known: max requests
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.03679
- Epss percentile: 0.89958
- Cpe: cpe:2.3:a:revealjs:reveal.js:*:*:*:*:*:node.js:*:*
Metadata
- Framework: node.js
- Product: reveal.js
- Vendor: revealjs
Products
| Product | Indexed | Url |
|---|---|---|
| revealjs:reveal.js | yes | /v1/products/revealjs/reveal.js |
Labels
- Name: RevealJS - Stored XSS
- Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or data theft.
- Remediation: Update to RevealJS version 4.3.0 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to craft malicious content for the victim to load
- Labels source: projectdiscovery
- From cve: CVE-2022-0776
```yaml
id: CVE-2022-0776
info:
name: RevealJS postMessage <4.3.0 - Cross-Site Scripting
author: LogicalHunter
severity: medium
description: RevealJS postMessage before 4.3.0 contains a cross-site scripting vulnerability via the document object model.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
remediation: |
Upgrade to RevealJS postMessage version 4.3.0 or later to mitigate this vulnerability.
reference:
- https://hackerone.com/reports/691977
- https://github.com/hakimel/reveal.js/pull/3137
- https://huntr.dev/bounties/be2b7ee4-f487-42e1-874a-6bcc410e4001/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0776
- https://github.com/hakimel/reveal.js/commit/32cdd3b1872ba8e2267c9e87ae216cb55f40f4d2
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-0776
cwe-id: CWE-79
epss-score: 0.03679
epss-percentile: 0.89958
cpe: cpe:2.3:a:revealjs:reveal.js:*:*:*:*:*:node.js:*:*
metadata:
vendor: revealjs
product: reveal.js
framework: node.js
tags: cve,cve2022,hackerone,huntr,headless,postmessage,revealjs,node.js,vuln
headless:
- steps:
- args:
url: "{{BaseURL}}"
action: navigate
- action: waitload
- action: script
name: extract
args:
code: |
() => {
return (Reveal.VERSION <= "3.8.0" || Reveal.VERSION < "4.3.0")
}
matchers:
- type: word
part: extract
words:
- "true"
digest: 490a0046304402201f9e33a32ed91da5289e729a72a82a124f5f6bf6893affcea23f7afc7931939b02200cde23480670534a3fa654c7b0fbd30ba36ba31f558d009d6f56c5db367e98a6:922c64590222798bb761d5b6d8e72950
```