Stored cross-site scripting (XSS) vulnerability in pgAdmin 4 Browser Tree and Explain Visualizer modules.
User-controlled PostgreSQL object names (database, schema, table, column, etc.) were assigned to DOM elements via innerHTML, allowing crafted object names containing HTML markup to execute attacker-supplied JavaScript in the browser of any pgAdmin user who navigated to or executed EXPLAIN over the malicious object.
Fix replaces innerHTML with textContent.
This issue affects pgAdmin 4: before 9.15.
| Score | Percentile |
|---|---|
| 0.03% | 8.38% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 4.8 | 3.1 | — |
|
| 4.8 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-6p2c-69cv-3fxq ↗ |
| CVE | CVE-2026-7814 ↗ |
| CWE id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| pip | pgadmin4 | < 9.15 | 9.15 | — |