CVE-2026-12046
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.92% · 58.0th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| pgAdmin | pgAdmin 4 prior to version 9.16 |
Timeline
- Jun 18, 2026 CVE Published
- Jun 19, 2026 Coalition ESS Score
- Jun 23, 2026 CVE Updated
- Aug 1, 2026 Security Advisory
- Aug 7, 2026 EPSS Score
- Aug 15, 2026 Security Advisory
- Aug 24, 2026 EPSS Score
- Aug 27, 2026 EPSS Score
- Aug 28, 2026 EPSS Score
- Aug 30, 2026 EPSS Score
- Sep 3, 2026 EPSS Score
- Sep 5, 2026 EPSS Score
References
- https://ccb.belgium.be/advisories/warning-remote-code-execution-and-cross-site-scripting-pgadmin-4-can-be-exploited advisory
- https://www.pgadmin.org/docs/pgadmin4/9.16/release_notes_9_16.html vendor
- https://nvd.nist.gov/vuln/detail/CVE-2026-12048 technical
- https://nvd.nist.gov/vuln/detail/CVE-2026-12045 technical
- https://nvd.nist.gov/vuln/detail/CVE-2026-12046 technical