CVE-2026-30587 Seafile Server has multiple stored XSS vulnerabilities

Medium 5.4 Published Updated

Authenticated attackers can inject malicious JavaScript via unsanitized WebSocket messages in the Seadoc editor, potentially leading to code execution or account takeover.

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
Available

What is CVE-2026-30587?

CVE-2026-30587 is a medium-severity cross-site scripting vulnerability in n/a, published on 25 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Multiple Stored XSS vulnerabilities exist in Seafile Server version 13.0.15,13.0.16-pro,12.0.14 and prior and fixed in 13.0.17, 13.0.17-pro, and 12.0.20-pro, via the Seadoc (sdoc) editor. The application fails to properly sanitize WebSocket messages regarding document structure updates. This allows authenticated remote attackers to inject malicious JavaScript payloads via the src attribute of embedded Excalidraw whiteboards or the href attribute of anchor tags

Weakness: CWE-79

Which versions are affected by CVE-2026-30587?

4 open source packages ship an affected version, including @seafile/sdoc-editor. It affects 1 product.

PackageAffectedFixed in
@seafile/sdoc-editor npmAll versions2.0.209
@seafile/sdoc-editor npmAll versions2.0.209
@seafile/sdoc-editor npmFrom 3.0.03.0.75
@seafile/sdoc-editor npmFrom 3.0.03.0.75

Products include Seafile Seafile Server.

How do I fix CVE-2026-30587?

Upgrade @seafile/sdoc-editor to a fixed version for your release line: 2.0.209 or 3.0.75.

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-2026-30587 being exploited?

There is no known exploitation of CVE-2026-30587 in the wild and no public exploit code.

Sources

Also known as GHSA-rqj3-x344-qvxc.

Is CVE-2026-30587 in your software?

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

Check your SBOMs for free