CVE-2025-2946: Cross-Site Scripting in pgAdmin 4 Query Result Rendering
- Vendor
- Pgadmin
pgAdmin 4 versions through 9.1 contain a cross-site scripting vulnerability in the Query Tool and View/Edit Data components. Insufficient sanitization of database query return values allows attacker-controlled HTML or JavaScript to be interpreted as active browser content when query results are rendered. Successful exploitation executes the injected content in the victim's browser. The vulnerability is fixed in version 9.2.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can execute arbitrary HTML or JavaScript in a victim's browser within the pgAdmin application context. This can compromise the confidentiality and integrity of information accessible to that browser session. The vulnerability does not itself establish server-side code execution.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict access to pgAdmin to trusted administrators only, limit exposure of the application to untrusted networks and users, and avoid rendering untrusted database content in the Query Tool and View/Edit Data interfaces until the update can be applied. Additional defensive measures such as browser-side content restrictions may reduce risk but are not a substitute for upgrading.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4, including installations using the pgadmin4 PyPI package, to version 9.2 or later.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-2946 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2025-2946 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-2946?
- As of Nov 17, 2026, Mallory has found no public exploit for CVE-2025-2946.
- Is there a patch for CVE-2025-2946?
- Upgrade pgAdmin 4, including installations using the pgadmin4 PyPI package, to version 9.2 or later.
- What products are affected by CVE-2025-2946?
- Pgadmin 4.
- How severe is CVE-2025-2946?
- CVE-2025-2946 has a CVSS v3.1 score of 6.1 (Medium) and an EPSS score of 0.33% (27th percentile) as of Nov 17, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.