Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/portainer/portainer
  4. ›
  5. CVE-2026-44882

CVE-2026-44882: Portainer's Kubernetes middleware continues after token validation failure, bypassing endpoint authorization

May 14, 2026 (updated June 9, 2026)

Portainer proxies requests to Kubernetes clusters through a middleware layer (kubeClientMiddleware) that validates the requesting user’s token before forwarding traffic to the cluster. When security.RetrieveTokenData returned an error, the middleware wrote an HTTP 403 response but was missing a return statement — execution continued into the handler with a nil tokenData value.

The Kubernetes endpoints sit behind Portainer’s outer AuthenticatedAccess bouncer, so an attacker requires a valid Portainer session. However, a user whose secondary token validation fails in kubeClientMiddleware — for example a user without permission to access a given Kubernetes endpoint — would have their request forwarded to the cluster anyway, bypassing the authorization check. The same defect was present in both the CE and EE codebases.

References

  • github.com/advisories/GHSA-mgq6-4x29-88r3
  • github.com/portainer/portainer/releases/tag/2.33.8
  • github.com/portainer/portainer/security/advisories/GHSA-mgq6-4x29-88r3
  • nvd.nist.gov/vuln/detail/CVE-2026-44882

Code Behaviors & Features

Detect and mitigate CVE-2026-44882 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.33.0 before 2.33.8

Fixed versions

  • 2.33.8

Solution

Upgrade to version 2.33.8 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/github.com/portainer/portainer/CVE-2026-44882.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 11 Nov 2026 00:15:38 +0000.