VDB

CVE-2026-12048

CVE-2026-12048 PUBLISHED CVSS 9.300000190734863 CRITICAL

CVE-2026-12048 is a stored cross-site scripting vulnerability where PostgreSQL server error text and Explain plan-node content were passed unsanitized through html-react-parser across multiple UI components, including notifier toasts, form errors, modal alerts, and the Explain visualiser. Because pgAdmin's default Content-Security-Policy allows inline scripts, injected JavaScript runs same-origin to the victim's authenticated session and can read every saved server connection credential and issue arbitrary SQL against every server the victim is connected to. CVE-2026-12046 affects two SQL Editor endpoints (close and update_connection) that were missing the authentication decorator (@pga_login_required) in server mode. This made the endpoints reachable by unauthenticated attackers and exposed a pickle deserialization sink, enabling remote code execution without prior authentication. CVE-2026-12045 affects the AI Assistant feature. A read-only transaction bypass allowed prompt-injected multi-statement payloads to commit write operations outside the READ ONLY transaction wrapper. On superuser database connections, this flaw chains to remote code execution via the “COPY ... TO PROGRAM” PostgreSQL command.

EPSS 0.27% · 18.7th percentile

Risk Scores

CVSS 3.1
9.300000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
EPSS Score
0.27%
18.7th percentile

Affected Products

VendorProductVersions
pgAdminpgAdmin 4 prior to version 9.16

Timeline

  • Jun 18, 2026 CVE Published
  • Jun 19, 2026 Coalition ESS Score
  • Jun 23, 2026 EPSS Score
  • Aug 7, 2026 EPSS Score
  • Aug 15, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score
  • Aug 28, 2026 EPSS Score
  • Sep 5, 2026 EPSS Score
Open in Interactive Console →
$ Console Community · 100/wk Open console ›