Vulnerability in Gitleaks

CVE-2026-63728

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.

EPSS: 0.002 (10.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-63728?
CVE-2026-63728 is a medium-severity vulnerability in Gitleaks, classified under Improper Neutralization of Special Elements Used in a Template Engine. CVSS score: 6.3/10. Published 2026-07-21.
How severe is CVE-2026-63728?
Medium severity. CVSS v3 base score is 6.3 out of 10.