Skip to main content
Mallory
MediumVulnerability

CVE-2025-2946: Cross-Site Scripting in pgAdmin 4 Query Result Rendering

Published Apr 3, 2025 · Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.1Medium · v3.1
EPSS0.33%27th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Pgadmin
IdentifiersCVE-2025-2946CWE-79 · Improper Neutralization of Input…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
PgadminPgadmin 4application
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.