CVE-2026-58371 Details
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.
A vulnerability in SeaweedFS versions prior to 4.30 allows for cross-origin information disclosure through an unvalidated JSONP callback parameter. The issue arises because the application reflects the callback query parameter directly into responses with a Content-Type of application/javascript, using a shared helper function called writeJson. This vulnerability is present in several unauthenticated master endpoints, as well as the volume server and filer directory listing, all accessible by default without any whitelisting or security configurations. Exploitation involves loading the vulnerable endpoint via a script tag from a third-party website, which can then access sensitive cluster information. Additionally, the lack of proper validation allows for reflected script injection, where an attacker could inject scripts that are executed in the context of the SeaweedFS master server.
Users can upgrade to SeaweedFS version 4.30 or later, where this vulnerability has been fixed. Instructions for downloading the latest version are available on the SeaweedFS GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 30, 2026CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/geo-chen/oss/blob/main/seaweedfs.md | [email protected] | ExploitTechnical Analysis |
| https://github.com/seaweedfs/seaweedfs/commit/77dcb20a7485074d37340985d53103f94538abe6 | [email protected] | Source CodeVendor |
| https://github.com/seaweedfs/seaweedfs/pull/9686 | [email protected] | Issue TrackingVendor |
| https://github.com/seaweedfs/seaweedfs/releases/tag/4.30 | [email protected] | Release NotesVendor |
| https://www.vulncheck.com/advisories/seaweedfs-cross-origin-information-disclosure-via-unvalidated-jsonp-callback-parameter | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SeaweedFS | <f72c5ec5d390e3202fb6acc8c05fd25a177a7375 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | New CVE Received | [email protected] |
Volerion