Stored XSS via MathJax DOM clobbering
Published Aug 28, 2024 · Updated Aug 28, 2024
Cross-site scripting in Project Jupyter JupyterLab before 3.6.8 and 4.0.0 through 4.2.4 allows attackers to act with a user's session. The HTML sanitizer retains attacker-controlled id and name attributes in rendered Markdown, allowing them to clobber the global MathJax object and redirect script loading. Exploitation requires the attacked user to open a malicious notebook Markdown cell or Markdown preview, after which stored script execution can access that user's data and issue arbitrary requests in that user's context.
Summary
What happened
Cross-site scripting in Project Jupyter JupyterLab before 3.6.8 and 4.0.0 through 4.2.4 allows attackers to act with a user's session. The HTML sanitizer retains attacker-controlled id and name attributes in rendered Markdown, allowing them to clobber the global MathJax object and redirect script loading. Exploitation requires the attacked user to open a malicious notebook Markdown cell or Markdown preview, after which stored script execution can access that user's data and issue arbitrary requests in that user's context.
The record
- CVE
- CVE-2024-43805
- Published
- Aug 28, 2024
- Updated
- Aug 28, 2024
- Vendor
- Project Jupyter
- Product
- JupyterLab
- Classifications
- CWE-79, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 28, 2024CVE publishedPublication date reported by the CVE source.
- Aug 28, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=jupyterlab: < 3.6.8
- Affected versionversion=jupyterlab: >= 4.0.0, < 4.2.5
- Affected versionversion=notebook: >= 7.0.0, <= 7.2.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- DOMino Effect JupyterLab stored-XSS demonstrationproof of concept · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo