Skip to content
Heist/ feed
Back to feed
High

Grype has a credential disclosure vulnerability in Grype JSON output

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-65965
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 20:46 UTC · Revision 1

Source evidence

Grype has a credential disclosure vulnerability in Grype JSON output

core-osv · Original source

Published 25 Nov 2025, 19:36 UTC

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

osv:CVE-2025-65965
Complete source record
{
  "id": "6538228bbd9ffd1b26fcf85aa4c97a9874d9db487f6ba68eb1234b51f7b6daf4",
  "url": "https://osv.dev/vulnerability/CVE-2025-65965",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Grype has a credential disclosure vulnerability in Grype JSON output",
    "summary": "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= 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.",
    "evidence": "osv:CVE-2025-65965",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-65965",
      "aliases": [
        "CVE-2025-65965",
        "GHSA-6gxw-85q2-q646",
        "GO-2025-4160"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/anchore/grype",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a87e198e58a446e887e00399021852bb0e1ea2e5"
                },
                {
                  "fixed": "39f7fa17af2739cafe9b27176d4a68f7c05f21c1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.68.0"
                      },
                      {
                        "fixed": "0.104.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "39f7fa17af2739cafe9b27176d4a68f7c05f21c1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.104.0",
            "v0.103.0",
            "v0.102.0",
            "v0.101.1",
            "v0.101.0",
            "v0.100.0",
            "v0.99.1",
            "v0.99.0",
            "v0.98.0",
            "v0.97.2",
            "v0.97.1",
            "v0.97.0",
            "v0.96.1",
            "v0.96.0",
            "v0.95.0",
            "v0.94.0",
            "v0.93.0",
            "v0.92.2",
            "v0.92.1",
            "v0.92.0",
            "v0.87.0",
            "v0.91.2",
            "v0.91.1",
            "v0.91.0",
            "v0.90.0",
            "v0.89.1",
            "v0.89.0",
            "v0.88.0",
            "v0.86.1",
            "v0.86.0",
            "v0.85.0",
            "v0.84.0",
            "v0.83.0",
            "v0.82.2",
            "v0.82.1",
            "v0.82.0",
            "v0.81.0",
            "v0.80.2",
            "v0.80.1",
            "v0.80.0",
            "v0.79.6",
            "v0.79.5",
            "v0.79.4",
            "v0.79.3",
            "v0.79.2",
            "v0.79.1",
            "v0.79.0",
            "v0.78.0",
            "v0.77.4",
            "v0.77.3",
            "v0.77.2",
            "v0.77.1",
            "v0.77.0",
            "v0.76.0",
            "v0.75.0",
            "v0.74.7",
            "v0.74.6",
            "v0.74.5",
            "v0.74.4",
            "v0.74.3",
            "v0.74.2",
            "v0.74.1",
            "v0.74.0",
            "v0.73.5",
            "v0.73.4",
            "v0.73.3",
            "v0.73.2",
            "v0.73.1",
            "v0.73.0",
            "v0.72.0",
            "v0.71.0",
            "v0.70.0",
            "v0.69.1",
            "v0.69.0",
            "v0.68.1",
            "v0.68.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-65965.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.470532533Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65965.json",
        "https://github.com/anchore/grype/security/advisories/GHSA-6gxw-85q2-q646",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-65965",
        "https://github.com/anchore/grype/commit/39f7fa17af2739cafe9b27176d4a68f7c05f21c1",
        "https://github.com/anchore/grype/pull/3068"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-212"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65965.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-65965",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520358,
  "published_at": "2025-11-25T19:36:11.09+00:00"
}