CVE-2026-63728CWE-1336

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

High · published July 20, 2026

CVSS v4.0
8.1
EPSS
0%
Percentile
10.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.1 · HIGH
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
EPSS
0.00206 · 10.2th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2026-07-20T23:32Z
EPSS history
Timeline
  • 20 JUL 23:32Z
    Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature
    cvelistv5