Authorization Bypass in pgweb API Connect Endpoint
An authorization bypass vulnerability in pgweb versions up to 0.17.0 allows unauthenticated attackers to supply arbitrary connection strings via the /api/connect endpoint.
CVE search metadata
CVE search record: CVE-2026-91924. Severity: high. CVSS: 8.5. KEV: no. Product: pgweb (<= 0.17.0). Brief: Authorization Bypass in pgweb API Connect Endpoint. Brief link: https://feed.craftedsignal.io/briefs/2026-09-pgweb-auth-bypass/
pgweb versions up to and including 0.17.0 contain a critical vulnerability in the POST /api/connect endpoint. When the connect-backend authorization configuration is enabled, the application fails to enforce appropriate access controls. This flaw allows an unauthenticated attacker to supply a custom session identifier and an arbitrary database connection URL. By manipulating these parameters, an attacker can bypass the intended resource-to-database mapping logic and gain unauthorized access to internal database services or other sensitive endpoints that the pgweb instance is capable of reaching. This vulnerability represents a significant risk for environments deploying pgweb as a database management interface, as it effectively allows server-side request forgery (SSRF) and unauthorized data access.
Impact
Successful exploitation allows an attacker to interact with arbitrary databases, potentially leading to unauthorized data exfiltration, modification, or exposure of sensitive internal infrastructure that would otherwise be shielded by the application's authorization layer. Given the nature of the application, this access often provides a foothold for further lateral movement within internal network segments where database servers are hosted.
Recommendation
- Upgrade all instances of pgweb to a version beyond 0.17.0 immediately.
- Implement network-level access control lists (ACLs) to restrict access to the pgweb /api/connect endpoint to authorized management workstations only.
- Deploy the provided Sigma rule to monitor for suspicious POST requests to the /api/connect endpoint that deviate from established baselines.
Immediate actions
Inventory all pgweb instances and identify those running version 0.17.0 or earlier.
Mitigations
Upgrade pgweb to a version released after 0.17.0.
CVE-2026-91924
Detection coverage 1
Detect Potential Exploitation of CVE-2026-91924
highDetects unauthorized attempts to POST to the /api/connect endpoint, which may indicate exploitation of the authorization bypass vulnerability.
Detection queries are available on the platform. Get full rules →