Portainer 2.39.7 → 2.41.0
4 releases · 5 breaking changes · 59 security fixes · 0 advisories fixed
59security5breaking2deprecated27feature27fix
Breaking changes
- breaking Portainer fails to start with a fatal log entry like failed to build server | error="invalid url for trusted origin... trusted_origin: \"portainer.example.com\"". The new implementation requires each entry in the trusted origins list to be a full URL including scheme (e.g.… in 2.41.0
- breaking Browser requests return 403 Forbidden on state-changing actions, with CSRF check failed entries in the server logs. This means the browser's origin is not in the trusted origins list and needs to be added. in 2.41.0
- breaking Removed MicroK8s cluster provisioning and management integration from the EE server. in 2.41.0
- breaking curl removed from the kubectl shell image. curl and its libraries were removed from the kubectl shell image to cut the OS-package vulnerabilities they brought in. Anyone who runs commands or scripts in the kubectl shell that call curl now gets curl: not found. Use wget instead, which is still… in 2.39.9
- breaking Stacks can only use networks the user has access to. Non-administrators could previously attach containers and stacks to Docker networks they had no access to, which bypassed network access control. Now, a non-administrator's Compose or Swarm stack that uses such a network (as external, through… in 2.39.9
Security changes
- security Fixes CVE-2026-44883: Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. From 2.33.0 to befor… in 2.41.0
- security Bumped Go toolchain to 1.26.2 to remediate the following CVEs: in 2.41.0
- security CVE-2026-32280 (crypto/x509 excessive chain-building work in Verify, denial of service) in 2.41.0
- security CVE-2026-32281 (crypto/x509 inefficient policy validation, denial of service) in 2.41.0
- security CVE-2026-32283 (crypto/tls 1.3 key update deadlock, uncontrolled resource consumption) in 2.41.0
- security CVE-2026-33810 (crypto/x509 excluded DNS constraints not applied to wildcard domains in different case) in 2.41.0
- security Bumped helm.sh/helm/v4 to v4.1.4 to remediate the following CVEs: in 2.41.0
- security CVE-2026-35204 (plugin version path traversal enables arbitrary file write; GHSA-vmx8-mqv2-9gmg) in 2.41.0
- security CVE-2026-35205 (plugin missing-provenance signature-verification bypass; GHSA-q5jf-9vfq-h4h7) in 2.41.0
- security Bumped github.com/moby/spdystream to v0.5.1 to remediate CVE-2026-35469. in 2.41.0
- security Upgraded the bundled Docker binary from v29.3.0 to v29.4.1 (agent, server-ce, server-ee, compose-unpacker), picking up Go 1.25.8 and 1.25.9 to mitigate the following CVEs: in 2.41.0
- security CVE-2026-25679 in 2.41.0
- security CVE-2026-27142 in 2.41.0
- security CVE-2026-27139 in 2.41.0
- security CVE-2026-32280 in 2.41.0
- security CVE-2026-32281 in 2.41.0
- security CVE-2026-32283 in 2.41.0
- security CVE-2026-32282 in 2.41.0
- security CVE-2026-32289 in 2.41.0
- security CVE-2026-32288 in 2.41.0
- security Upgraded CIRCL library to v1.6.3 to fix GO-2026-4550 incorrect secp384r1 CombinedMult calculation in 2.40.0
- security Upgraded go-git to v5.17.0 to fix GO-2026-4473 improper verification of data integrity for .idx and .pack files in 2.40.0
- security Upgraded OpenTelemetry Go SDK to v1.41.0 to fix GO-2026-4394 arbitrary code execution via PATH hijacking vulnerability in 2.40.0
- security Upgraded OpenTelemetry SDK to v1.42.0 to fix CVE-2026-24051 in 2.40.0
- security Upgraded Docker binary to v29.3.0 to mitigate CVE-2025-68121 in 2.40.0
- security Bumped golang-jwt/jwt/v4 to v4.5.2 to fix CVE-2025-30204 regression in 2.40.0
- security Upgraded gRPC to v1.79.3 to fix CVE-2026-33186 in 2.40.0
- security Fixed missing authorization check on the Custom Template file content API endpoint in 2.40.0
- security Portainer no longer trusts TLS certificates issued by eMudhra (emSign), following the compromise of eight eMudhra intermediate CAs (CVE-2026-111943). Connections to services that present an affected certificate, including OAuth/OIDC and LDAPS providers, registries and Git hosts, will fail after… in 2.39.9
- security Fixed non-administrators being able to mount the Docker socket through the Compose use_api_socket option. The stack validator now rejects it when bind mounts are disabled for regular users in 2.39.9
- security Fixed the Compose stack validator skipping services that use profiles: and not checking include:. Non-administrator stack restrictions now apply to every service whatever its profile and include is rejected when bind mounts are disabled for regular users; in BE, the SSRF policy checks on… in 2.39.9
- security Fixed stack updates authorizing against a caller-chosen environment. PUT /stacks/{id}, POST /stacks/{id}/git and PUT /stacks/{id}/git/redeploy now return 403 when endpointId differs from the stack's own environment, so users can no longer update, re-source or redeploy stacks on environments they… in 2.39.9
- security Restricted joining Docker networks to users with access to them. Non-administrators can no longer attach to a network they cannot access through container create (HostConfig.NetworkMode, NetworkingConfig.EndpointsConfig), service create and update, image build (networkmode), or Compose and Swarm… in 2.39.9
- security Fixed Docker network connect and disconnect checking only the network in the URL. Non-administrators now also need access to the container named in the request body, so they can no longer connect or disconnect containers they cannot access in 2.39.9
- security Fixed Docker network authorization ignoring EndpointSettings.NetworkID. Container create and network connect now also check the network named by NetworkID, so non-administrators can no longer use it to join a network they cannot access in 2.39.9
- security Fixed Docker proxy access checks using the wrong resource ID when the URL has extra path segments. Container, network (including connect and disconnect) and volume requests with a slash in the ID, and config and secret updates, are now authorized against the full ID instead of being skipped or… in 2.39.9
- security Fixed the /websocket/attach and /websocket/exec endpoints bypassing container access control. Non-administrators can now attach to or exec into only the containers they can access, and are refused with a 403 otherwise in 2.39.9
- security Fixed PUT /endpoints/{id}/forceupdateservice skipping the service's resource control. Non-administrators can now force-update only the Swarm services they can access, and get a 404 for both inaccessible and missing services in 2.39.9
- security Fixed stack start and stop acting on a different environment from the one authorized. POST /stacks/{id}/start and POST /stacks/{id}/stop now return 403 when endpointId is not the stack's own environment, except for administrators (in BE, also edge administrators) acting on orphaned stacks, so… in 2.39.9
- security Stopped registry responses returning the stored access token Portainer holds for ECR. Every registry list, inspect, create and update response and the environment registries list now clear it, including for administrators, and non-administrators no longer receive AccessTokenExpiry either in 2.39.9
- security Fixed a bypass of the Hide bind mounts for non-administrators setting. When it is enabled, Compose files deployed by non-administrators can no longer reference host files outside the stack directory, for example in configs, secrets, env_file, build contexts or extends in 2.39.9
- security Rejected Compose and Swarm stacks using volumes_from when non-administrators create, update, start or redeploy them with Hide bind mounts for non-administrators enabled, which let them inherit another container's host bind mounts in 2.39.9
- security Updated the Go toolchain from 1.25.14 to 1.26.10, fixing CVE-2026-56857 and CVE-2026-78663 (both Critical), along with CVE-2026-111943, CVE-2026-97032, CVE-2026-97031, CVE-2026-94440, CVE-2026-94439, CVE-2026-78669, CVE-2026-78667, CVE-2026-78660, CVE-2026-78659, CVE-2026-56866, CVE-2026-94448 and… in 2.39.9
- security Updated golang.org/x/net to 0.62.0, fixing CVE-2026-78663 (Critical), CVE-2026-97032, CVE-2026-78669, CVE-2026-78661, CVE-2026-78660, CVE-2026-78659 and CVE-2026-97045 in 2.39.9
- security Updated golang.org/x/crypto to 0.58.0, fixing CVE-2026-78662 and CVE-2026-56855 in 2.39.9
- security Updated google.golang.org/grpc to 1.83.2, fixing CVE-2026-84304 (High), CVE-2026-84445 (High) and CVE-2026-84303 in 2.39.9
- security Updated github.com/containerd/containerd to 1.7.36 and github.com/containerd/containerd/v2 to 2.2.10, fixing CVE-2026-95837 (High), CVE-2026-53493, CVE-2026-53495 and CVE-2026-95838 in 2.39.9
- security Updated github.com/klauspost/compress to 1.20.3, github.com/moby/sys/user to 0.4.1 and go.opentelemetry.io/otel to 1.45.0, fixing CVE-2026-116591 (High), CVE-2026-61801 and CVE-2026-81870 in 2.39.9
- security Updated the kubectl shell image to Alpine 3.24.4, kubectl v1.37.1 and helm v4.3.1 (CVEs cleared to be confirmed with Docker Scout during the build) in 2.39.9
- security CVE-2026-39821 in 2.39.8
- security CVE-2026-56862 in 2.39.8
- security CVE-2026-56859 in 2.39.8
- security CVE-2026-56853 in 2.39.8
- security CVE-2026-33818 in 2.39.8
- security CVE-2026-56858 in 2.39.8
- security CVE-2026-56860 in 2.39.8
- security CVE-2026-56865 in 2.39.8
- security CVE-2026-56864 in 2.39.8
- security Upgraded kubectl in the kubectl shell image from 1.36.2 to 1.37.0, which is built with Go stdlib 1.26.6 and vendors golang.org/x/net 0.57.0, clearing 2 Critical findings (including CVE-2026-39821), 7 High and 7 Medium in 2.39.8
Deprecations
- deprecated None in 2.40.0
- deprecated None in 2.39.8
Every release in between
securityFixes CVE-2026-44883: Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. From 2.33.0 to befor…
featureSupport for only CentOS 9, Podman 5 rootful
breakingPortainer fails to start with a fatal log entry like failed to build server | error="invalid url for trusted origin... trusted_origin: \"portainer.example.com\"". The new implementation requires each entry in the trusted origins list to be a full URL including scheme (e.g.…
breakingBrowser requests return 403 Forbidden on state-changing actions, with CSRF check failed entries in the server logs. This means the browser's origin is not in the trusted origins list and needs to be added.
featureAdded support for deploying Helm chart edge stacks sourced from Helm repositories and Git repositories.
featureReworked Docker stack creation and deployment to an async flow for consistent behaviour with Compose.
featureKubernetes Manifest GitOps stacks can now be edited after deployment — admins can update the Git repository URL, reference, manifest filename, and credentials from the application detail view instead of tearing down and recreating the stack.
featureAdded TUI (text-based UI) application support to the Web Console and kubectl shell, including proper terminal resize handling.
featureAdded a "Redeploy" button to the Git-backed stack detail view for pulling and redeploying from the repository.
featureAdded visible rendering of special and non-printable characters in the web code editor.
featureAdded Edit YAML and Describe actions to Services, Jobs, CronJobs, Roles, RoleBindings, ClusterRoles, and ClusterRoleBindings datatables in the Kubernetes UI.
featureAdded support for pruning unused Docker images from the Images list, with a confirmation modal.
featureRefreshed the navigation bar and page header styling.
featureAdded a registry-access notice on Kubernetes app create/edit and Helm install/upgrade views to guide users to configure registry access.
featureAdded a GitOps Workflows page — a new top-level sidebar item that lists every GitOps workflow across environments and edge stacks with a status summary bar, sortable list, and cross-jump to each stack's edit view. The backing API is RBAC-aware: admins see everything; Edge admins see Edge-stack…
featureAdded custom namespace support when deploying Helm-based edge stacks.
featureHome UI improvements to highlight environment groups.
securityBumped Go toolchain to 1.26.2 to remediate the following CVEs:
securityCVE-2026-32280 (crypto/x509 excessive chain-building work in Verify, denial of service)
securityCVE-2026-32281 (crypto/x509 inefficient policy validation, denial of service)
securityCVE-2026-32283 (crypto/tls 1.3 key update deadlock, uncontrolled resource consumption)
securityCVE-2026-33810 (crypto/x509 excluded DNS constraints not applied to wildcard domains in different case)
securityBumped helm.sh/helm/v4 to v4.1.4 to remediate the following CVEs:
securityCVE-2026-35204 (plugin version path traversal enables arbitrary file write; GHSA-vmx8-mqv2-9gmg)
securityCVE-2026-35205 (plugin missing-provenance signature-verification bypass; GHSA-q5jf-9vfq-h4h7)
securityBumped github.com/moby/spdystream to v0.5.1 to remediate CVE-2026-35469.
securityUpgraded the bundled Docker binary from v29.3.0 to v29.4.1 (agent, server-ce, server-ee, compose-unpacker), picking up Go 1.25.8 and 1.25.9 to mitigate the following CVEs:
securityCVE-2026-25679
securityCVE-2026-27142
securityCVE-2026-27139
securityCVE-2026-32280
securityCVE-2026-32281
securityCVE-2026-32283
securityCVE-2026-32282
securityCVE-2026-32289
securityCVE-2026-32288
fixFixed keyword search failing to highlight matches in application and container log views.
fixFixed several data races in Kubernetes environment detection by switching to transactional code.
fixFixed a use-after-close data race in the endpoint force-update service.
fixCached the MOTD on the server to eliminate a banner-related layout shift on page load.
+27 more items in the release notesfeatureIt's not possible to add Podman environments via socket, when running a Portainer server on Docker (and vice versa)
featureSupport for only CentOS 9, Podman 5 rootful
featureAdded an information panel showing current and planned GitOps deployment details when a Git URL or config path is changed
featureDocker Compose GitOps stacks can now have their Git URL, config path, and entry point edited after creation
featureCleaned up Git authentication token handling — GitHub tokens can now be entered directly in the Token field rather than the Basic auth field
featureAdded a -remove-orphans / prune option when deploying Docker Compose stacks
featureAdded support for -security-opt when creating Docker containers
featureUpgraded Helm Go SDK to v4
featureUpgraded Kubernetes dependencies to v1.35
securityUpgraded CIRCL library to v1.6.3 to fix GO-2026-4550 incorrect secp384r1 CombinedMult calculation
securityUpgraded go-git to v5.17.0 to fix GO-2026-4473 improper verification of data integrity for .idx and .pack files
securityUpgraded OpenTelemetry Go SDK to v1.41.0 to fix GO-2026-4394 arbitrary code execution via PATH hijacking vulnerability
securityUpgraded OpenTelemetry SDK to v1.42.0 to fix CVE-2026-24051
securityUpgraded Docker binary to v29.3.0 to mitigate CVE-2025-68121
securityBumped golang-jwt/jwt/v4 to v4.5.2 to fix CVE-2025-30204 regression
securityUpgraded gRPC to v1.79.3 to fix CVE-2026-33186
securityFixed missing authorization check on the Custom Template file content API endpoint
fixFixed GitOps Edge Configurations not restarting the correct service when a bind-mounted configuration file changes
fixFixed Git reference (branch/tag/commit) input field not working in GitOps forms
fixFixed container incorrectly shown as running in the UI while Docker reports it as restarting or removing
fixFixed stack update/edit button remaining clickable during form submission
fixFixed Git-based Docker stacks from GitLab failing environment variable validation for non-admin users
fixFixed Helm Edge stacks being incorrectly marked as External Edge stacks
fixFixed Portainer console freezing when pasting more than 2000 characters
fixFixed TLS certificate upload failing when updating environment connection settings
fixFixed deleting a Kubernetes Edge stack causing the environment to appear as offline
fixFixed LDAP DN builder not accepting dashes in field values
fixFixed "Edit This Application" button being disabled for non-admin users on the Kubernetes application details page
fixFixed Docker Swarm Overlay Network issues causing "Unable to find an agent on any manager node" errors
fixFixed environment selector crashing after upgrade when a group referenced in a stack no longer exists
fixFixed not all containers for a Swarm service being shown
fixFixed blank dashboard appearing after upgrade to 2.39.0 caused by a panic in the UAC evaluation for external stacks
fixFixed container view failing with "Unable to retrieve registries: Unauthorized" for non-admin users
fixFixed race condition in stack update function registration that could cause internal state corruption
fixFixed WebSocket data race in logout handling
fixImproved PostInitMigrate() performance from O(N²) to O(N log N)
fixFixed OAuth login failing when the OAuth provider returns a malformed Content-Type header (affects providers such as Cloudflare Access)
fixFixed log lines that are JSON-encoded strings rendering as character-index pairs instead of the actual log text
fixAligned Axios error message display in CE with the EE implementation
deprecatedNone
+2 more items in the release notesotherOn Async Edge environments, an invalid update schedule date can be displayed when browsing a snapshot
otherPodman environments aren't supported by auto-onboarding script
featureIt's not possible to add Podman environments via socket, when running a Portainer server on Docker (and vice versa)
featureSupport for only CentOS 9, Podman 5 rootful
breakingcurl removed from the kubectl shell image. curl and its libraries were removed from the kubectl shell image to cut the OS-package vulnerabilities they brought in. Anyone who runs commands or scripts in the kubectl shell that call curl now gets curl: not found. Use wget instead, which is still…
breakingStacks can only use networks the user has access to. Non-administrators could previously attach containers and stacks to Docker networks they had no access to, which bypassed network access control. Now, a non-administrator's Compose or Swarm stack that uses such a network (as external, through…
securityPortainer no longer trusts TLS certificates issued by eMudhra (emSign), following the compromise of eight eMudhra intermediate CAs (CVE-2026-111943). Connections to services that present an affected certificate, including OAuth/OIDC and LDAPS providers, registries and Git hosts, will fail after…
securityFixed non-administrators being able to mount the Docker socket through the Compose use_api_socket option. The stack validator now rejects it when bind mounts are disabled for regular users
securityFixed the Compose stack validator skipping services that use profiles: and not checking include:. Non-administrator stack restrictions now apply to every service whatever its profile and include is rejected when bind mounts are disabled for regular users; in BE, the SSRF policy checks on…
securityFixed stack updates authorizing against a caller-chosen environment. PUT /stacks/{id}, POST /stacks/{id}/git and PUT /stacks/{id}/git/redeploy now return 403 when endpointId differs from the stack's own environment, so users can no longer update, re-source or redeploy stacks on environments they…
securityRestricted joining Docker networks to users with access to them. Non-administrators can no longer attach to a network they cannot access through container create (HostConfig.NetworkMode, NetworkingConfig.EndpointsConfig), service create and update, image build (networkmode), or Compose and Swarm…
securityFixed Docker network connect and disconnect checking only the network in the URL. Non-administrators now also need access to the container named in the request body, so they can no longer connect or disconnect containers they cannot access
securityFixed Docker network authorization ignoring EndpointSettings.NetworkID. Container create and network connect now also check the network named by NetworkID, so non-administrators can no longer use it to join a network they cannot access
securityFixed Docker proxy access checks using the wrong resource ID when the URL has extra path segments. Container, network (including connect and disconnect) and volume requests with a slash in the ID, and config and secret updates, are now authorized against the full ID instead of being skipped or…
securityFixed the /websocket/attach and /websocket/exec endpoints bypassing container access control. Non-administrators can now attach to or exec into only the containers they can access, and are refused with a 403 otherwise
securityFixed PUT /endpoints/{id}/forceupdateservice skipping the service's resource control. Non-administrators can now force-update only the Swarm services they can access, and get a 404 for both inaccessible and missing services
securityFixed stack start and stop acting on a different environment from the one authorized. POST /stacks/{id}/start and POST /stacks/{id}/stop now return 403 when endpointId is not the stack's own environment, except for administrators (in BE, also edge administrators) acting on orphaned stacks, so…
securityStopped registry responses returning the stored access token Portainer holds for ECR. Every registry list, inspect, create and update response and the environment registries list now clear it, including for administrators, and non-administrators no longer receive AccessTokenExpiry either
securityFixed a bypass of the Hide bind mounts for non-administrators setting. When it is enabled, Compose files deployed by non-administrators can no longer reference host files outside the stack directory, for example in configs, secrets, env_file, build contexts or extends
securityRejected Compose and Swarm stacks using volumes_from when non-administrators create, update, start or redeploy them with Hide bind mounts for non-administrators enabled, which let them inherit another container's host bind mounts
securityUpdated the Go toolchain from 1.25.14 to 1.26.10, fixing CVE-2026-56857 and CVE-2026-78663 (both Critical), along with CVE-2026-111943, CVE-2026-97032, CVE-2026-97031, CVE-2026-94440, CVE-2026-94439, CVE-2026-78669, CVE-2026-78667, CVE-2026-78660, CVE-2026-78659, CVE-2026-56866, CVE-2026-94448 and…
securityUpdated golang.org/x/net to 0.62.0, fixing CVE-2026-78663 (Critical), CVE-2026-97032, CVE-2026-78669, CVE-2026-78661, CVE-2026-78660, CVE-2026-78659 and CVE-2026-97045
securityUpdated golang.org/x/crypto to 0.58.0, fixing CVE-2026-78662 and CVE-2026-56855
securityUpdated google.golang.org/grpc to 1.83.2, fixing CVE-2026-84304 (High), CVE-2026-84445 (High) and CVE-2026-84303
securityUpdated github.com/containerd/containerd to 1.7.36 and github.com/containerd/containerd/v2 to 2.2.10, fixing CVE-2026-95837 (High), CVE-2026-53493, CVE-2026-53495 and CVE-2026-95838
securityUpdated github.com/klauspost/compress to 1.20.3, github.com/moby/sys/user to 0.4.1 and go.opentelemetry.io/otel to 1.45.0, fixing CVE-2026-116591 (High), CVE-2026-61801 and CVE-2026-81870
securityUpdated the kubectl shell image to Alpine 3.24.4, kubectl v1.37.1 and helm v4.3.1 (CVEs cleared to be confirmed with Docker Scout during the build)
otherOn Async Edge environments, an invalid update schedule date can be displayed when browsing a snapshot
otherPodman environments aren't supported by auto-onboarding script
featureIt's not possible to add Podman environments via socket, when running a Portainer server on Docker (and vice versa)
featureSupport for only CentOS 9, Podman 5 rootful
otherUpgraded the Go toolchain from 1.25.12 to 1.25.14 to address the following CVEs:
securityCVE-2026-39821
securityCVE-2026-56862
securityCVE-2026-56859
securityCVE-2026-56853
securityCVE-2026-33818
securityCVE-2026-56858
securityCVE-2026-56860
otherUpgraded golang.org/x/mod to 0.40.0 to address the following CVEs:
securityCVE-2026-56865
securityCVE-2026-56864
otherUpgraded golang.org/x/crypto to 0.55.0 in Portainer CE and compose-unpacker, which had lagged behind the other modules, to address GO-2026-6303
securityUpgraded kubectl in the kubectl shell image from 1.36.2 to 1.37.0, which is built with Go stdlib 1.26.6 and vendors golang.org/x/net 0.57.0, clearing 2 Critical findings (including CVE-2026-39821), 7 High and 7 Medium
otherUpgraded the Alpine packages in the kubectl shell image, moving openssl/libssl3 to 3.5.8-r0 and jq to 1.8.2-r0, clearing a further 9 High, 10 Medium and 1 Low findings
fixFixed the Portainer updater reporting a container as healthy when its health-check command had never actually run, which could cause a failed upgrade to skip its rollback. The updater now waits for the exec session to complete before reading its exit code
deprecatedNone