CVE-2026-58371: SeaweedFS - Stored XSS
- Cve: CVE-2026-58371
- Name: SeaweedFS - Stored XSS
- Description: SeaweedFS before 4.30 reflects the callback query parameter verbatim into responses served with Content-Type application/javascript in the shared writeJson helper (weed/server/common.go), with no callback-name validation, no X-Content-Type-Options: nosniff header, and no CORS allow-list. Every JSON endpoint that uses writeJson - including the unauthenticated master endpoints /dir/status, /dir/lookup and /cluster/status, the volume server /status, and the filer directory listing, all reachable in the default configuration (no -whiteList, no security.toml, bound to 0.0.0.0) - can therefore be loaded cross-origin via a script tag with a chosen callback, letting a third-party web page read cluster topology, volume server URLs and gRPC ports, file identifiers, and directory listings. Because the callback string is reflected at the start of the body and no nosniff header is sent, MIME-sniffing clients may also interpret the reflected content as HTML.
- Impact: Attackers can read sensitive cluster topology, volume server URLs, file identifiers, and directory listings via cross-origin script inclusion.
- Remediation: Update to version 4.30 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: information_disclosure, client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 3.1
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- Epss score: 0.00333
- Epss percentile: 0.26751
- Assignee: [email protected]
- Published at: 2026-06-30T17:16:25Z
- Age in days: 147
- Modified at: 2026-07-14T22:17:28Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-58371
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| seaweedfs:seaweedfs | < 4.30 | no | cna | /v1/products/seaweedfs/seaweedfs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| seaweedfs/seaweedfs | commit, fix, pull, releases | yes | /v1/repositories/seaweedfs/seaweedfs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts