# CVE-2026-7814: pgAdmin 4: Stored XSS via crafted PostgreSQL object names in Browser Tree and Explain Visualizer

- Severity: Medium 4.8 (CVSS:4.0, scored by PostgreSQL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 10% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-05-11T14:35:49.411Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-6p2c-69cv-3fxq, PYSEC-2026-2866
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- pgadmin.org pgAdmin 4: from 6.9 before 9.15
- pgadmin4 (PyPI): before 9.15
- pgadmin pgadmin_4: from 6.9 before 9.15

## Every score

- PostgreSQL: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- PostgreSQL: CVSS:4.0 4.8 Medium `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: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: 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`

## 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

- CVE List: [CVE-2026-7814](https://www.cve.org/CVERecord?id=CVE-2026-7814), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-6p2c-69cv-3fxq](https://github.com/advisories/GHSA-6p2c-69cv-3fxq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-7814](https://nvd.nist.gov/vuln/detail/CVE-2026-7814), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2866](https://osv.dev/vulnerability/PYSEC-2026-2866), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-7814 · Whole record: https://cve.day/CVE-2026-7814.json · Rebuilt by cve.day 2026-11-25T22:59:21.205Z
