CVE-2026-30587

Seafile Server: Seadoc editor: seahub: seadoc-editor: Seafile Server: Arbitrary client-side code execution via Stored Cross-Site Scripting in Seadoc editor

Published Mar 25, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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

Analysis

AI-generated

Technical impact

Seafile Server releases 13.0.15, 13.0.16‑pro, 12.0.14 and earlier contain stored cross‑site scripting weaknesses in the Seadoc editor. The application does not sanitize certain WebSocket messages that describe document structure updates, allowing an authenticated remote user to embed malicious JavaScript through the src attribute of an Excalidraw whiteboard or the href attribute of an anchor tag. When another user opens or edits the affected document, the injected script runs in the victim’s browser.

Affected Systems

The vulnerability affects Seafile Server from the vendor Seafile, including all community and professional editions up to and including version 13.0.15, 13.0.16‑pro, and 12.0.14. The issue was fixed in releases 13.0.17, 13.0.17‑pro, and 12.0.20‑pro, as well as later builds.

Risk and Exploitability

The CVSS score is 5.4, indicating moderate severity, while the EPSS score is below 1%, suggesting a low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires a legitimate user to inject the payload into a Seadoc document; the attacker then relies on other users opening that document to trigger the injected code. The impact is limited to client-side code execution, which could affect the user’s browser session.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Seafile Server to a fixed release (13.0.17, 13.0.17‑pro, or 12.0.20‑pro) as soon as possible.
  • If an upgrade is not feasible, disable embedding of Excalidraw whiteboards or strip the src attribute of injected elements and the href attribute of anchor tags in shared Seadoc documents, or otherwise sanitize user‑supplied content.
  • Implement a Content Security Policy that blocks inline scripts and restricts script execution to trusted origins.
  • Monitor server logs for unusual WebSocket traffic or unexpected script insertion in documents and review shared content for suspicious changes.

Generated by OpenCVE AI on March 31, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rqj3-x344-qvxc Seafile Server has multiple stored XSS vulnerabilities
History
Type Values Removed Values Added
First Time appeared Seafile seafile Server
CPEs cpe:2.3:a:seafile:seafile_server:*:*:*:*:professional:*:*:*
cpe:2.3:a:seafile:seafile_server:13.0.15:*:*:*:community:*:*:*
cpe:2.3:a:seafile:seafile_server:13.0.16:*:*:*:professional:*:*:*
Vendors & Products Seafile seafile Server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N'}

cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Seafile
Seafile seafile
Vendors & Products Seafile
Seafile seafile
Type Values Removed Values Added
Title Stored XSS via Unsanitized WebSocket Updates in Seafile Seadoc Editor Seafile Server: Seadoc editor: seahub: seadoc-editor: Seafile Server: Arbitrary client-side code execution via Stored Cross-Site Scripting in Seadoc editor
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Title Stored XSS via Unsanitized WebSocket Updates in Seafile Seadoc Editor
Weaknesses CWE-79
Type Values Removed Values Added
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
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 10, 2026, 1:02 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Modified
Published
Mar 25, 2026, 6:16 PM
Modified
Jun 17, 2026, 10:32 AM
Severity
Moderate
Public date
Mar 25, 2026, 12:00 AM