OpenBao's SQL Injection in PostgreSQL database secrets engine
Published 21 Apr 2026 · Updated 10 Sept 2026
Is your project on an affected github.com/openbao/openbao?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.0.0-20260420155735-b596b0882620
- Fixed in
- 0.0.0-20260420155735-b596b0882620
go get github.com/openbao/openbao@v0.0.0-20260420155735-b596b0882620Details
Impact
When OpenBao revoked privileges on a role in the PostgreSQL database secrets engine, OpenBao failed to use proper database quoting on schema names provided by PostgreSQL. This could lead to role revocation failures, or more rarely, SQL injection as the management user.
This vulnerability was originally from HashiCorp Vault.
Patches
This was addressed in v2.5.3.
Workarounds
Audit table schemas and ensure database users cannot create new schemas and grant privileges on them.
Is GHSA-6vgr-cp5c-ffx3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/openbao/openbao, and gives you the command that fixes it.
More advisories for github.com/openbao/openbao
- LowCVE-2026-63132OpenBao's Recovery Mode Vulnerable To Token Leakage via Timing Attack in github.com/openbao/openbao · 1 Oct 2026
- LowCVE-2026-77285OpenBao Agent Writes Secrets to Stdout in github.com/openbao/openbao · 1 Oct 2026
- LowCVE-2026-71543OpenBao's Templated Policies Allow Privilege Escalation via Wildcard Characters in github.com/openbao/openbao · 1 Oct 2026
- LowCVE-2026-63131OpenBao Skips Stricter Deny Policy for LIST operations in github.com/openbao/openbao · 1 Oct 2026
- MediumCVE-2026-63131OpenBao Skips Stricter Deny Policy for LIST operations · 22 Sept 2026
- CriticalCVE-2026-63132OpenBao's Recovery Mode Vulnerable To Token Leakage via Timing Attack · 22 Sept 2026
References
- Linkgithub.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-39946
- Linkgithub.com/openbao/openbao/pull/2931
- Linkgithub.com/openbao/openbao/commit/80693a46ebb4fc2455f1c51ed1dd853b28c2fd77
- Packagegithub.com/openbao/openbao
- Linkgithub.com/openbao/openbao/releases/tag/v2.5.3
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.