Symlink Attack Affecting github.com/hashicorp/consul-template/template package, versions <0.42.1


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-17912544
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditUnknown

Introduced: 8 Jul 2026

CVE-2026-14361  (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.1 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 writeToFile function. An attacker can cause template output to be written outside the intended directory or overwrite existing files by exploiting symbolic links.

CVSS Base Scores

version 4.0
version 3.1