CVE-2025-2946
pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering
Reported by postgresql · Published April 3, 2025
pgadmin4 is fixed in 9.2 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pgadmin4 | PyPI | 9.2 |
| pgadmin_4 | pgadmin | 9.1 |
| pgAdmin 4 | pgadmin.org | 9.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pgadmin.org | pgAdmin 4 | 0 |
| PyPI | pgadmin4 | 0 |
| pgadmin.org | pgAdmin 4 | 0 |
Timeline
- Apr 3, 2025 CVE Published
- Apr 3, 2025 PoC Published (10 in total, the first dated here)
- Apr 4, 2025 EPSS Score (30 in total, the first dated here)
- Jun 9, 2025 Coalition ESS Score (15 in total, the first dated here)
- Dec 18, 2025 CVE Updated
- Mar 10, 2026 Security Advisory (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-2946
vulnetix vdb fixes CVE-2025-2946
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-2946/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart