CVE-2024-40626 Stored Cross-site Scripting (XSS) vulnerability in Outline editor
Authenticated users can inject malicious scripts via document attachments in self-hosted Outline instances, potentially executing code in other users' browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-40626?
CVE-2024-40626 is a high-severity cross-site scripting vulnerability in outline, published on 16 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Outline is an open source, collaborative document editor. A type confusion issue was found in ProseMirror’s rendering process that leads to a Stored Cross-Site Scripting (XSS) vulnerability in Outline. An authenticated user can create a document containing a malicious JavaScript payload. When other users view this document, the malicious Javascript can execute in the origin of Outline. Outline includes CSP rules to prevent third-party code execution, however in the case of self-hosting and having your file storage on the same domain as Outline a malicious payload can be uploaded as a file attachment and bypass those CSP restrictions. This issue has been addressed in release version 0.77.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2024-40626?
It affects 1 product.
Products include Getoutline Outline.
How do I fix CVE-2024-40626?
No fix has been published for CVE-2024-40626 yet. Limit exposure of the affected software until one is available.
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-2024-40626 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40626 exists.
Other vulnerabilities in outline
- CVE-2026-33640 Outline has a rate limit bypass that allows brute force of email login OTP
- CVE-2024-37829 Auth bypass in n/a
- CVE-2023-54331 Outline 1.6.0 - Unquoted Service Path
- CVE-2023-3532 Cross-site Scripting (XSS) - Stored in outline/outline
- CVE-2026-24901 Outline's IDOR allows unauthorized viewing and seizing of private deleted drafts
Sources
Also known as GHSA-888c-mvg8-v6wh.