---
id: CVE-2026-91924
title: >-
  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
summary: >-
  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 mapp…
severity: high
cvss: 8.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N'
cwe:
  - CWE-862
vendor: sosedoff
product: pgweb
affected:
  - pgweb <= 0.17.0
published: '2026-09-15'
updated: '2026-09-23'
sourceUpdated: '2026-09-23T17:17:44.827'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-91924'
references:
  - url: 'https://github.com/sosedoff/pgweb'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sosedoff/pgweb/blob/6b0b0244d1aefd6971999b03481eeeaa4ec7cf55/pkg/api/api.go
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sosedoff/pgweb/blob/6b0b0244d1aefd6971999b03481eeeaa4ec7cf55/pkg/api/routes.go
    label: disclosure@vulncheck.com
  - url: 'https://github.com/sosedoff/pgweb/issues/869'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/pgweb-through-0.17.0-missing-authorization-on-direct-connect-endpoint
    label: disclosure@vulncheck.com
  - url: 'https://github.com/sosedoff/pgweb/issues/869'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00421
epssPercentile: 0.33822
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-17T14:21:53.682692Z'
ingestedAt: '2026-09-15T11:36:07.420Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
