Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-63728 EUVD-2026-46134GHSA-mmh4-9cvr-w4cj

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

Published Jul 20, 2026 · Updated Sep 24, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
gitleaks gitleaks < 8.30.1 8.30.1

References