CVE-2026-34984: Sprig Template Dns Exfiltration

A Sprig template function map is being initialized without removing `getHostByName`. When templates are user-controlled, an attacker can use this function to perform DNS lookups from the server, leading to DNS exfiltration of sensitive data or SSRF-like network reconnaissance primitives. Ensure that you delete the `getHostByName` key from the function map be

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-34984-sprig-template-dns-exfiltration --engine opengrep

Description

A Sprig template function map is being initialized without removing `getHostByName`. When templates are user-controlled, an attacker can use this function to perform DNS lookups from the server, leading to DNS exfiltration of sensitive data or SSRF-like network reconnaissance primitives. Ensure that you delete the `getHostByName` key from the function map be