---
id: "CVE-2025-2946"
page: "https://infrastack.ai/live/CVE-2025-2946"
kind: "vulnerability"
aliases: ["CVE-2025-2946", "GHSA-2rrx-pphc-qfv9"]
title: "pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering"
severity: "critical"
cvss: 9.1
epss: 0.00329
exploited: false
status: "open"
category: "package"
products: [{"name": "pgadmin4", "fixed": ["9.2"], "affected": "< 9.2", "ecosystem": "pypi"}, {"name": "pgadmin 4", "fixed": [], "affected": "<= 9.1", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-79", "package", "pgadmin4", "postgresql", "python", "web-ui"]
not_affected_if: ["version-9.2-or-later"]
published_at: "2025-04-03T13:15:43+00:00"
first_seen_at: "2026-11-16T15:53:11+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-2rrx-pphc-qfv9", "first_seen_at": "2026-11-16T15:53:11+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2946", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00329, "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-2946"}]
---

# pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering

Link for people: https://infrastack.ai/live/CVE-2025-2946 (this .md is for agents)

pgAdmin 4 versions 9.1 and earlier do not sanitize query result output, so attacker-supplied HTML and JavaScript runs in the browser of a user who views those results. The result is cross-site scripting that can act with the logged-in user's session in pgAdmin.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pgadmin4 affected < 9.2 fixed 9.2
- vendor:pgadmin 4 affected <= 9.1 fixed no fixed version listed

## How to check

- Check the installed pgAdmin version with `pip show pgadmin4` for the PyPI install, or the version shown in the pgAdmin About dialog.
- Confirm whether the installed version is below `9.2`.

## Fix

- pgAdmin 4 (pypi `pgadmin4`): move to `9.2`.

## Timeline

- 2026-11-16T15:53:11+00:00 ghsa https://github.com/advisories/GHSA-2rrx-pphc-qfv9
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-2946

## Documents

- [fix] Patch: github.com https://github.com/pgadmin-org/pgadmin4/commit/1305d9910beefd0d6b4c7eb4f111f86edb1d356b

## From the sources

pgAdmin <= 9.1 is affected by a security vulnerability with Cross-Site Scripting(XSS). If attackers execute any arbitrary HTML/JavaScript in a user's browser through query result rendering, then HTML/JavaScript runs on the browser.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
