CVE-2026-7814: Stored XSS in pgAdmin 4 Browser Tree and Explain Visualizer
- Vendor
- Pgadmin
CVE-2026-7814 is a stored cross-site scripting vulnerability in pgAdmin 4 affecting the Browser Tree and Explain Visualizer modules. User-controlled PostgreSQL object names, including names for databases, schemas, tables, and columns, were rendered into DOM elements using innerHTML rather than a safe text-only sink. An attacker able to create or influence such object names could embed HTML or script-bearing markup that would later be stored and rendered by pgAdmin. When another pgAdmin user browsed the affected tree views or executed EXPLAIN against the malicious object, the injected markup could execute attacker-supplied JavaScript in that user's browser session. The issue was fixed by replacing innerHTML with textContent. Affected versions are pgAdmin 4 before 9.15.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows execution of arbitrary JavaScript in the browser context of a pgAdmin user who views the malicious object through the Browser Tree or Explain Visualizer. This can enable session hijacking, unauthorized actions within the victim's authenticated pgAdmin session, access to data visible to that user, UI redressing, and further compromise of administrative workflows performed through the application. Because the payload is stored in PostgreSQL object metadata and rendered to other users, the vulnerability supports persistent cross-user compromise within shared pgAdmin environments.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict who can create or rename PostgreSQL objects that will be displayed in pgAdmin, especially in shared administrative environments. Limit access to pgAdmin to trusted users, reduce exposure of multi-user server-mode deployments, and avoid using pgAdmin to browse or run EXPLAIN on untrusted database objects. Additional defensive measures such as strong browser-side content restrictions may reduce exploit reliability, but they are not a substitute for upgrading to a fixed version.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4 to version 9.15 or later, which fixes the vulnerable rendering logic by replacing unsafe innerHTML assignments with textContent in the affected modules. Validate that all deployed pgAdmin instances, including packaged, containerized, and manually installed environments, are updated to a fixed release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-7814 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-7814 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-7814?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-7814.
- Is there a patch for CVE-2026-7814?
- Upgrade pgAdmin 4 to version 9.15 or later, which fixes the vulnerable rendering logic by replacing unsafe innerHTML assignments with textContent in the affected modules. Validate that all deployed pgAdmin instances, including packaged, containerized, and manually installed environments, are updated to a fixed release.
- What products are affected by CVE-2026-7814?
- Pgadmin 4.
- How severe is CVE-2026-7814?
- CVE-2026-7814 has a CVSS v4 score of 4.8 (Medium) and an EPSS score of 0.16% (5th percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.