Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. snyk
  4. ›
  5. CVE-2025-6624

CVE-2025-6624: Snyk CLI Insertion of Sensitive Information into Log File allowed in DEBUG or DEBUG/TRACE mode

June 26, 2025 (updated June 30, 2025)

Versions of the package snyk before 1.1297.3 are vulnerable to Insertion of Sensitive Information into Log File through local Snyk CLI debug logs. Container Registry credentials provided via environment variables or command line arguments can be exposed when executing Snyk CLI in DEBUG or DEBUG/TRACE mode.

The issue affects the following Snyk commands:

  1. When snyk container test or snyk container monitor commands are run against a container registry, with debug mode enabled, the container registry credentials may be written into the local Snyk CLI debug log. This only happens with credentials specified in environment variables (SNYK_REGISTRY_USERNAME and SNYK_REGISTRY_PASSWORD), or in the CLI (–password/-p and –username/-u).

  2. When snyk auth command is executed with debug mode enabled AND the log level is set to TRACE, the Snyk access / refresh credential tokens used to connect the CLI to Snyk may be written into the local CLI debug logs.

  3. When snyk iac test is executed with a Remote IAC Custom rules bundle, debug mode enabled, AND the log level is set to TRACE, the docker registry token may be written into the local CLI debug logs.

References

  • docs.snyk.io/snyk-cli/debugging-the-snyk-cli
  • github.com/advisories/GHSA-6hwc-9h8r-3vmf
  • github.com/snyk
  • github.com/snyk/cli/commit/38322f377da7e5f1391e1f641710be50989fa4df
  • github.com/snyk/cli/releases/tag/v1.1297.3
  • github.com/snyk/go-application-framework/commit/ca7ba7d72e68455afb466a7a47bb2c9aece86c18
  • nvd.nist.gov/vuln/detail/CVE-2025-6624
  • security.snyk.io/vuln/SNYK-JS-SNYK-10497607

Code Behaviors & Features

Detect and mitigate CVE-2025-6624 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1297.3

Fixed versions

  • 1.1297.3

Solution

Upgrade to version 1.1297.3 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-532: Insertion of Sensitive Information into Log File

Source file

npm/snyk/CVE-2025-6624.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:38 +0000.