# CVE-2026-137547: Coder from 2.39.0 before 2.39.1 Database Password Exposure via API Errors


- **Severity:** Critical 9.2 (`CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 26 Nov 2026
- **Updated:** 26 Nov 2026
- **Also known as:** GHSA-g8gr-3qjg-qvr3, GHSA-w4m3-qhx8-c649

## What is CVE-2026-137547?

CVE-2026-137547 is a critical vulnerability in coder, published on 26 Nov 2026. 

### Official description

Coder before 2.29.27, 2.30.0 before 2.34.19, 2.35.0 before 2.37.11, 2.38.0 before 2.38.7, and 2.39.0 before 2.39.1 returns database connection errors containing a temporary AWS IAM database password in API key middleware responses. During database connection failures, unauthenticated attackers can send a well-formed but invalid API key to obtain the password and access the PostgreSQL database for 15 minutes.

Weakness: CWE-209 (Generation of Error Message Containing Sensitive Information)

## Which versions are affected by CVE-2026-137547?

6 open source packages ship an affected version, including github.com/coder/coder/v2.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | All versions | 2.29.27 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.30.0 | 2.34.19 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.35.0 | 2.37.0 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.37.0 | 2.37.11 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.38.0 | 2.38.7 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.39.0 | 2.39.1 |

## How do I fix CVE-2026-137547?

Upgrade github.com/coder/coder/v2 to a fixed version for your release line: 2.39.1, 2.38.7, 2.37.11 or 2.37.0.

## Is CVE-2026-137547 being exploited?

There is no known exploitation of CVE-2026-137547 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-137547 and fix it if it is affected.

What it is: CVE-2026-137547 is a critical vulnerability in coder, published on 26 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-137547 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.29.27
- github.com/coder/coder/v2 (Go): affected from 2.30.0; fixed in 2.34.19
- github.com/coder/coder/v2 (Go): affected from 2.35.0; fixed in 2.37.0
- github.com/coder/coder/v2 (Go): affected from 2.37.0; fixed in 2.37.11
- github.com/coder/coder/v2 (Go): affected from 2.38.0; fixed in 2.38.7
- github.com/coder/coder/v2 (Go): affected from 2.39.0; fixed in 2.39.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-137547/ (Markdown: https://insights.sbomify.com/CVE-2026-137547/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-137547
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-137547
- OSV: https://osv.dev/vulnerability/CVE-2026-137547

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-137547/
Summaries are generated and may contain mistakes; the official description above is the record.
