CVE-2025-66411: Coder logs sensitive objects unsanitized
Summary Workspace Agent manifests containing sensitive values were logged in plaintext unsanitized Details By default Workspace Agent logs are redirected to stderr https://github.com/coder/coder/blob/a8862be546f347c59201e2219d917e28121c0edb/cli/agent.go#L432-L439 Workspace Agent Manifests containing sensitive environment variables were logged insecurely…
Published Dec 3, 2025 · Updated Dec 4, 2025
Affected packages
github.com/coder/coder/v2
- Ecosystem
- Go
- Affected
- < 2.26.5
- Fixed in
- 2.26.5
- Check
go list -m github.com/coder/coder/v2
github.com/coder/coder/v2
- Ecosystem
- Go
- Affected
- >= 2.27.0, < 2.27.7
- Fixed in
- 2.27.7
- Check
go list -m github.com/coder/coder/v2
github.com/coder/coder/v2
- Ecosystem
- Go
- Affected
- >= 2.28.0, < 2.28.4
- Fixed in
- 2.28.4
- Check
go list -m github.com/coder/coder/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Workspace Agent manifests containing sensitive values were logged in plaintext unsanitized
Details
By default Workspace Agent logs are redirected to stderr https://github.com/coder/coder/blob/a8862be546f347c59201e2219d917e28121c0edb/cli/agent.go#L432-L439
Workspace Agent Manifests containing sensitive environment variables were logged insecurely https://github.com/coder/coder/blob/7beb95fd56d2f790502e236b64906f8eefb969bd/agent/agent.go#L1090
An attacker with limited local access to the Coder Workspace (VM, K8s Pod etc.) or a third-party system (SIEM, logging stack) could access those logs
This behavior opened room for unauthorized access and privilege escalation
Impact
Impact varies depending on the environment variables set in a given workspace
Patches
Fix was released & backported:
- https://github.com/coder/coder/releases/tag/v2.28.4
- https://github.com/coder/coder/releases/tag/v2.27.7
- https://github.com/coder/coder/releases/tag/v2.26.5
Workarounds
One potential workaround is to disable Workspace Agent Logs by setting following configuration option CODER_AGENT_LOGGING_HUMAN=/dev/null > platform operators are advised to upgrade their deployments
References
- https://github.com/coder/coder/security/advisories/GHSA-jf75-p25m-pw74
- https://github.com/coder/coder/pull/20968
- https://github.com/coder/coder/commit/06c6abbe0935f9213c1588add60a396da5762e1c
- https://github.com/coder/coder/commit/a75205a559211c8aa494b1a16750d114b263f24a
- https://github.com/coder/coder/commit/e2a46393fce40bc630df3293c1ee66a596277289
- https://github.com/coder/coder/releases/tag/v2.26.5
- https://github.com/coder/coder/releases/tag/v2.27.7
- https://github.com/coder/coder/releases/tag/v2.28.4
- https://nvd.nist.gov/vuln/detail/CVE-2025-66411
- https://github.com/advisories/GHSA-jf75-p25m-pw74
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-8fxq-53rx-ph5f
Coder: Login endpoint user enumeration via timing-defense placeholder in password comparison
low3.7Aug 20, 2026GHSA-h58c-xccx-75m3
Coder: Stored HTML injection via unescaped ApplicationName and LogoURL appearance settings
low3.4Aug 20, 2026CVE-2026-55075
Coder vulnerable to OIDC account takeover via email-based user matching and email_verified bypass
high7.4Jul 6, 2026CVE-2026-55076
Coder's OIDC email_verified type coercion bypass enables account takeover via unverified email linking
high7.4Jul 6, 2026CVE-2026-55077
Coder: User-admin role can reset owner account password
high7.2Jul 6, 2026CVE-2026-55078
Coder: Zip upload decompression lacks aggregate size limit, enabling denial of service
medium6.5Jul 6, 2026
