4.8medium
pgAdmin 4: Stored XSS via crafted PostgreSQL object names in Browser Tree and Explain Visualizer
- Severity
- 4.8medium CVSS:4.0 by PostgreSQL
- Exploit likelihood
- 0.25% (higher than 10% of CVEs)
- Published
- Last changed
- Assigned by
- PostgreSQL
- Also known as
- GHSA-6p2c-69cv-3fxqPYSEC-2026-2866
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pgadmin.org pgAdmin 4 | from 6.9 before 9.15 | CVE List |
| pgadmin4 (PyPI) | before 9.15 | GitHub Advisory Database, PyPA Advisory Database |
| pgadmin pgadmin_4 | from 6.9 before 9.15 | NVD |
All scores
| PostgreSQL | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| PostgreSQL | 4.8medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| PyPA Advisory Database | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Vulnerabilidad de cross-site scripting (XSS) almacenado en los módulos Browser Tree y Explain Visualizer de pgAdmin 4. Nombres de objetos PostgreSQL controlados por el usuario (base de datos, esquema, tabla, columna, etc.) fueron asignados a elementos DOM a través de innerHTML, permitiendo que nombres de objetos manipulados que contienen marcado HTML ejecuten JavaScript suministrado por el atacante en el navegador de cualquier usuario de pgAdmin que navegó o ejecutó EXPLAIN sobre el objeto malicioso. La solución reemplaza innerHTML con textContent. Este problema afecta a pgAdmin 4: antes de la versión 9.15.
References
| https://github.com/pgadmin-org/pgadmin4/pull/9865 | exploit, issue-tracking, patch, vendor-advisory, web | |
| https://github.com/pgadmin-org/pgadmin4/issues/9865 | exploit, issue-tracking, patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-7814 | advisory | |
| https://github.com/pgadmin-org/pgadmin4 | package | |
| https://pypi.org/project/pgadmin4 | package | |
| https://github.com/advisories/GHSA-6p2c-69cv-3fxq | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-7814 changed 2026-05-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6p2c-69cv-3fxq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-7814 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2866 changed 2026-07-13 | CC-BY-4.0 |