Vulnerability · Published Jul 20, 2026 · Assigned by VulnCheck

CVE-2026-63728Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature

Medium 6.3

In plain English

A medium-severity security flaw in gitleaks from gitleaks. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities).

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.2%top 89.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Gitleaks prior to 8.30.1 contains a template injection vulnerability that allows attackers who can supply or influence report templates to read arbitrary environment variables and exfiltrate sensitive data by leveraging non-hermetic Sprig template functions. Attackers can craft malicious report templates using the env, expandenv, and getHostByName functions to extract credentials, tokens, and API keys from the host process and exfiltrate them through DNS queries, including secrets discovered during the scan itself.

Affected products (as reported)

VendorProductVersions
gitleaks gitleaks 0 – before 8.30.1

Weakness: CWE-1336 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

References