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

> Attackers can read sensitive cluster topology and file metadata via JSONP injection in SeaweedFS, potentially leading to further compromise.

- **Severity:** Low 2.3 (`CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 30 Jun 2026
- **Updated:** 14 Jul 2026
- **Also known as:** BIT-seaweedfs-2026-58371, GHSA-7cpf-frp7-pm75

## What is CVE-2026-58371?

CVE-2026-58371 is a low-severity cross-site scripting vulnerability in seaweedfs, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2026-58371?

1 open source package ship an affected version, including seaweedfs.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `seaweedfs` | Bitnami | All versions | 4.30.0 |

## How do I fix CVE-2026-58371?

Upgrade seaweedfs to 4.30.0 or later.

## Is CVE-2026-58371 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58371 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-58371 and fix it if it is affected.

What it is: CVE-2026-58371 is a low-severity cross-site scripting vulnerability in seaweedfs, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58371 exists.

Affected packages and fixed versions:
- seaweedfs (Bitnami): affected all versions; fixed in 4.30.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-58371/ (Markdown: https://insights.sbomify.com/CVE-2026-58371/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-58371
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-58371
- OSV: https://osv.dev/vulnerability/CVE-2026-58371

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-58371/
Summaries are generated and may contain mistakes; the official description above is the record.
