Improper Removal of Sensitive Information Before Storage or Transfer Affecting github.com/anchore/grype/cmd/grype/cli/commands package, versions >=0.68.0 <0.104.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMANCHOREGRYPECMDGRYPECLICOMMANDS-14121790
  • published26 Nov 2025
  • disclosed25 Nov 2025
  • creditUnknown

Introduced: 25 Nov 2025

NewCVE-2025-65965  (opens in a new tab)
CWE-212  (opens in a new tab)

How to fix?

Upgrade github.com/anchore/grype/cmd/grype/cli/commands to version 0.104.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer in the form of registry credentials in JSON output files. When registry authentication is configured, an attacker can obtain registry credentials or other values (e.g. registry.auth[].password) by using the --file or --output json=<file> options, even if the credentials are not in use.

A malformed Grype Template could also theoretically be subject to this vulnerability, in Descriptor.Registry.Auth fields.

CVSS Base Scores

version 4.0
version 3.1