Quick answers
- Is CVE-2026-12048 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-12048 being exploited in the wild.
- How severe is CVE-2026-12048?
- Critical severity, with a CVSS score of 9.3, published 19 June 2026.
- Which products and versions are affected?
- PostgreSQL pgAdmin 4 6.0 to 9.15.
- Is there a fix for CVE-2026-12048?
- A patch was published on 2026-06-10: Fix committed to repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-12048 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-12048?
- Check whether you run PostgreSQL pgAdmin 4 at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A stored cross-site scripting (XSS) vulnerability exists in pgAdmin 4's error-rendering and plan-node-rendering paths. The application passed text returned by a PostgreSQL server (such as ErrorResponse messages or EXPLAIN plan fields) verbatim through the html-react-parser across multiple user-facing sinks, including notification toasts, modal alerts, and the SQL editor. An attacker controlling a malicious server, or a low-privileged user capable of creating objects with crafted names, can inject arbitrary HTML/JavaScript into the pgAdmin DOM. This bypasses standard anti-clickjacking controls like X-Frame-Options because the injection occurs within the legitimate application's context. The issue is resolved in version 9.16 through a combination of DOMPurify sanitization, a new plain-text rendering contract for backend-derived strings, and backend-side HTML escaping.
Affected products
- PostgreSQL pgAdmin 4 6.0 to 9.15
Timeline
- 2026-06-10: patched: Fix committed to repository
- 2026-06-19: advisory: CVE published
References
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/static/js/components/FormComponents.jsx
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/static/js/Notifier.jsx
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/utils/driver/psycopg3/connection.py
- https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/tools/erd/static/js/erd_tool/components/Explain/Analysis.jsx
- https://github.com/pgadmin-org/pgadmin4/commit/9e370d3cb67b83b3945f82969c959fad3f926517
- https://github.com/pgadmin-org/pgadmin4/issues/10068