Vulnerabilities in pkg:npm/@seafile/sdoc-editor
PACKAGECVE-2026-30587 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @seafile/sdoc editor libraries in the npm ecosystem. The issue involves seafile server has multiple stored xss vulnerabilities. Remediation is available by upgrading affected packages to version 3.0.75, 2.0.209.
pkg:npm/@seafile/sdoc-editor
Vulnerability advisories affecting package pkg:npm/@seafile/sdoc-editor. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rqj3-x344-qvxc | CVE-2026-30587 | MODERATE | Seafile Server has multiple stored XSS vulnerabilities |
CVE-2026-30587 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-30587
To remediate this vulnerability, upgrade all affected @seafile/sdoc editor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @seafile/sdoc-editor@3.0.75
npm install @seafile/sdoc-editor@2.0.209
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @seafile/sdoc-editor
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-30587, inspect your project dependencies using npm:
npm ls @seafile/sdoc-editor
Analyze the terminal output to locate any version of @seafile/sdoc editor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.75), your application is affected.
Note: The npm ls @seafile/sdoc-editor command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @seafile/sdoc editor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-30587 Affected @seafile/sdoc editor Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@seafile/sdoc-editor
|
npm |
≥ 3.0.0
< 3.0.75
|
3.0.75
|
|
@seafile/sdoc-editor
|
npm |
< 2.0.209
|
2.0.209
|
References
Frequently Asked Questions
What is CVE-2026-30587?
Which @seafile/sdoc editor versions are affected?
What version fixes CVE-2026-30587?
Is @seafile/sdoc-editor affected?
What is the CVSS score of CVE-2026-30587?
What CWE is associated with CVE-2026-30587?
How can I check npm dependencies for CVE-2026-30587?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rqj3-x344-qvxc",
"modified" : "2026-04-02T00:00:24Z",
"published" : "2026-03-25T18:31:55Z",
"aliases" : [ "CVE-2026-30587" ],
"summary" : "Seafile Server has multiple stored XSS vulnerabilities",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@seafile/sdoc-editor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.75"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@seafile/sdoc-editor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.209"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30587"
}, {
"type" : "WEB",
"url" : "https://github.com/haiwen/seadoc-editor/commit/8fa988aaede072b2ae073d1b2edcb2fc691423b2"
}, {
"type" : "WEB",
"url" : "https://github.com/haiwen/seahub/commit/4c5301747bdb84c64b2f2b3230417df2d1cc8987"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/gabdevele/1b7e30ab367b26042fa32f45aa12ce2f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/haiwen/seadoc-editor"
}, {
"type" : "WEB",
"url" : "https://manual.seafile.com/12.0/changelog/changelog-for-seafile-professional-server"
}, {
"type" : "WEB",
"url" : "https://manual.seafile.com/13.0/changelog/changelog-for-seafile-professional-server"
}, {
"type" : "WEB",
"url" : "https://manual.seafile.com/13.0/changelog/server-changelog"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-02T00:00:24Z",
"nvd_published_at" : "2026-03-25T18:16:31Z"
}
}