MediumGHSA-6vgr-cp5c-ffx3BIT-openbao-2026-39946CVE-2026-39946GO-2026-5192

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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
Update to the fixed version for your release line, for example:go get github.com/openbao/openbao@v0.0.0-20260420155735-b596b0882620

Details

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
All 62 advisories for github.com/openbao/openbao

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.