Missing Authorization Affecting github.com/portainer/portainer/api/http/handler/customtemplates package, versions <2.33.8>=2.39.0 <2.39.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (14th 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 Learn

Learn about Missing Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMPORTAINERPORTAINERAPIHTTPHANDLERCUSTOMTEMPLATES-17708386
  • published30 Jun 2026
  • disclosed14 May 2026
  • creditUnknown

Introduced: 14 May 2026

CVE-2026-44884  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade github.com/portainer/portainer/api/http/handler/customtemplates to version 2.33.8, 2.39.1 or higher.

Overview

Affected versions of this package are vulnerable to Missing Authorization in the customTemplateFile handler. An attacker can access sensitive file contents by sending crafted requests to the endpoint and enumerating template IDs. This is only exploitable if the attacker is an authenticated user and at least one custom template exists.

Workaround

This vulnerability can be mitigated by avoiding the storage of secrets in custom templates and reviewing existing templates for embedded secrets, moving sensitive values to environment variables or an external secret store.

CVSS Base Scores

version 4.0
version 3.1