MEDIUM4.8
PYSEC-2026-2866
pgAdmin 4: Stored cross-site scripting (XSS) vulnerability in Browser Tree and Explain Visualizer modules
Quick fix
PYSEC-2026-2866 — pgadmin4: upgrade to the fixed version with the command below.
pip install --upgrade 'pgadmin4>=9.15'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-7814[ADVISORY]
- https://github.com/pgadmin-org/pgadmin4/issues/9865[WEB]
- https://github.com/pgadmin-org/pgadmin4/pull/9865[WEB]
- https://github.com/pgadmin-org/pgadmin4[PACKAGE]
- https://pypi.org/project/pgadmin4[PACKAGE]
- https://github.com/advisories/GHSA-6p2c-69cv-3fxq[ADVISORY]