CVE-2026-7814
JSON

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 packageVersionsReported by
pgadmin.org pgAdmin 4from 6.9 before 9.15CVE List
pgadmin4 (PyPI)before 9.15GitHub Advisory Database, PyPA Advisory Database
pgadmin pgadmin_4from 6.9 before 9.15NVD

All scores

PostgreSQL4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
PostgreSQL4.8medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
GitHub4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS: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 Database4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2026-7814 changed 2026-05-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-6p2c-69cv-3fxq changed 2026-09-10CC-BY-4.0
NVDCVE-2026-7814 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-2866 changed 2026-07-13CC-BY-4.0