CVE-2024-40626 Stored Cross-site Scripting (XSS) vulnerability in Outline editor

High 7.3 Published Updated

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.

Sources

Also known as GHSA-888c-mvg8-v6wh.

Is CVE-2024-40626 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free