CVE-2026-91924
nicheAuthorization bypass in pgweb /api/connect allows connections to arbitrary databases
pgweb through 0.17.0 fails to properly guard the POST /api/connect endpoint when the connect-backend authorization mode is configured. An attacker with low-privileged access to a pgweb instance can supply an arbitrary database connection URL along with a custom session identifier, bypassing the configured resource-to-database mapping. This allows the attacker to connect to databases they are not authorized to access and to reach other internal services reachable from the pgweb host, exposing sensitive data from those back-end systems. Deployments affected are self-hosted pgweb instances that enable connect-backend with authorization and are exposed to users or networks the operator does not fully trust. No public proof of concept is known and the flaw is not listed in CISA's KEV catalog.
What to do: Upgrade pgweb to a release newer than 0.17.0 as soon as a fixed version is available. Until then, do not expose pgweb instances using connect-backend mode to untrusted networks or users, and restrict the pgweb host's network egress so it cannot reach internal databases or services it is not intended to front. Review pgweb logs for unexpected POST /api/connect requests with unfamiliar session identifiers or connection URLs, and verify that no unauthorized database or internal service connections occurred.
| sosedoff pgweb | through 0.17.0 (<= 0.17.0), when connect-backend authorization is configured |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
pgweb through 0.17.0 leaves the POST /api/connect endpoint unguarded when connect-backend authorization is configured, allowing attackers to supply arbitrary database connection strings. Attackers can bypass the resource-to-database mapping by providing a custom session identifier and connection URL to access unauthorized databases and internal services.
- Weakness
- CWE-862
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.