Symlink Attack Affecting github.com/hashicorp/consul-template/template package, versions >=0.1.0 <0.42.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMHASHICORPCONSULTEMPLATETEMPLATE-17816821
  • published4 Jul 2026
  • disclosed12 May 2026
  • creditUnknown

Introduced: 12 May 2026

CVE-2026-5061  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/consul-template/template to version 0.42.0 or higher.

Overview

github.com/hashicorp/consul-template/template is a template rendering, notifier, and supervisor for @hashicorp Consul and Vault data

Affected versions of this package are vulnerable to Symlink Attack via the file helper when a symbolic link is used to bypass the intended sandbox restrictions. An attacker can access files outside the designated sandbox by crafting a symlink that points to sensitive locations.

CVSS Base Scores

version 4.0
version 3.1