CVE-2025-2946:
pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.10085%
CWE
Published
4/3/2025
Updated
4/4/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pgadmin4 | pip | < 9.2 | 9.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability is a DOM-based XSS in the query result rendering functionality. The patch shows a critical change in the measureText
function in utils.js
where the code was modified from using innerHTML
(which is XSS-prone) to textContent
(which is safe). This function appears to be part of the text measurement system used when rendering query results. The change directly addresses the XSS vulnerability by preventing HTML/JavaScript injection through the text parameter. The function would appear in a runtime profiler when malicious query results are being processed for display, making it a key indicator for detection.