SeaweedFS versions before 4.30 contain a vulnerability where the callback query parameter is reflected without validation in JavaScript responses. (CVE-2026-58371)
SeaweedFS versions before 4.30 contain a vulnerability where the callback query parameter is reflected without validation in JavaScript responses. This affects multiple JSON endpoints, including unauthenticated master and volume server endpoints, which can be accessed cross-origin via script tags. The absence of X-Content-Type-Options: nosniff headers and CORS allow-listing increases the risk of MIME-sniffing clients interpreting the response as HTML. This exposure allows third-party web pages to read sensitive cluster information such as topology, volume server URLs, gRPC ports, file identifiers, and directory listings.
AI Analysis
Technical Summary
SeaweedFS prior to version 4.30 reflects the callback query parameter verbatim in responses served with Content-Type application/javascript in the shared writeJson helper function. There is no validation of the callback name, no nosniff header, and no CORS allow-list, enabling cross-origin script tag inclusion of JSON endpoints. This affects unauthenticated master endpoints (/dir/status, /dir/lookup, /cluster/status), the volume server /status, and the filer directory listing, all accessible by default configurations. The vulnerability allows a third-party web page to read cluster topology and file system metadata. Additionally, the lack of nosniff headers may cause MIME-sniffing clients to interpret the reflected content as HTML, increasing potential attack surface.
Potential Impact
An attacker can exploit this vulnerability to perform cross-origin data theft by injecting a script tag with a chosen callback parameter, allowing them to read sensitive cluster information such as topology, volume server URLs, gRPC ports, file identifiers, and directory listings. This exposure occurs without authentication and affects default configurations. However, the vulnerability requires user interaction (UI:P) and has high attack complexity (AC:H), limiting ease of exploitation. There is no indication of remote code execution or direct system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. In the meantime, users should consider restricting access to the affected JSON endpoints via network controls or configuration changes such as enabling whitelist restrictions or security.toml configurations. Implementing proper callback validation, adding X-Content-Type-Options: nosniff headers, and configuring CORS allow-lists would mitigate the vulnerability once patches or updates are available.
SeaweedFS versions before 4.30 contain a vulnerability where the callback query parameter is reflected without validation in JavaScript responses. (CVE-2026-58371)
Description
SeaweedFS versions before 4.30 contain a vulnerability where the callback query parameter is reflected without validation in JavaScript responses. This affects multiple JSON endpoints, including unauthenticated master and volume server endpoints, which can be accessed cross-origin via script tags. The absence of X-Content-Type-Options: nosniff headers and CORS allow-listing increases the risk of MIME-sniffing clients interpreting the response as HTML. This exposure allows third-party web pages to read sensitive cluster information such as topology, volume server URLs, gRPC ports, file identifiers, and directory listings.
CVSS v4.0
Affected software
pkg:github/seaweedfs/seaweedfsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SeaweedFS prior to version 4.30 reflects the callback query parameter verbatim in responses served with Content-Type application/javascript in the shared writeJson helper function. There is no validation of the callback name, no nosniff header, and no CORS allow-list, enabling cross-origin script tag inclusion of JSON endpoints. This affects unauthenticated master endpoints (/dir/status, /dir/lookup, /cluster/status), the volume server /status, and the filer directory listing, all accessible by default configurations. The vulnerability allows a third-party web page to read cluster topology and file system metadata. Additionally, the lack of nosniff headers may cause MIME-sniffing clients to interpret the reflected content as HTML, increasing potential attack surface.
Potential Impact
An attacker can exploit this vulnerability to perform cross-origin data theft by injecting a script tag with a chosen callback parameter, allowing them to read sensitive cluster information such as topology, volume server URLs, gRPC ports, file identifiers, and directory listings. This exposure occurs without authentication and affects default configurations. However, the vulnerability requires user interaction (UI:P) and has high attack complexity (AC:H), limiting ease of exploitation. There is no indication of remote code execution or direct system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. In the meantime, users should consider restricting access to the affected JSON endpoints via network controls or configuration changes such as enabling whitelist restrictions or security.toml configurations. Implementing proper callback validation, adding X-Content-Type-Options: nosniff headers, and configuring CORS allow-lists would mitigate the vulnerability once patches or updates are available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7cpf-frp7-pm75
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58371"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a4452e227e9c797198e1258
Added to database: 06/30/2026, 23:36:02 UTC
Last enriched: 06/30/2026, 23:48:47 UTC
Last updated: 07/31/2026, 20:12:02 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.