Vulnerability · Published Mar 25, 2026 · Assigned by mitre
CVE-2026-30587
Medium 5.4
In plain English
A medium-severity cross-site scripting in the @seafile/sdoc-editor package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @seafile/sdoc-editor | 3.0.75 | GHSA-rqj3-x344-qvxc |
| npm | @seafile/sdoc-editor | 2.0.209 | GHSA-rqj3-x344-qvxc |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://gist.github.com/gabdevele/1b7e30ab367b26042fa32f45aa12ce2f
- https://manual.seafile.com/13.0/changelog/server-changelog/
- https://manual.seafile.com/13.0/changelog/changelog-for-seafile-professional-server/
- https://manual.seafile.com/12.0/changelog/changelog-for-seafile-professional-server/
- https://github.com/haiwen/seahub/commit/4c5301747bdb84c64b2f2b3230417df2d1cc8987
- https://github.com/haiwen/seadoc-editor/commit/8fa988aaede072b2ae073d1b2edcb2fc691423b2