CVE-2025-2946

Cross-Site Vulnerability(XSS) due to arbitrary HTML/JavaScript gets executed while query result rendering in Query Tool and View/Edit Data Tool of pgAdmin 4

Critical · published April 3, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
24.0
In the wild
Unconfirmed
What it is

🚨 A crafty Cross-Site Scripting (XSS) flaw lurks in pgAdmin versions up to 9.1 that could let attackers run arbitrary HTML/JavaScript in your browser! 🔥 Think of it like a restaurant where someone sneaks in and serves a dangerous dish that looks perfectly fine on the menu. Diners consume it, unaware that it’s been tampered with, leading to all sorts of chaos! If exploited, this vulnerability could allow attackers to execute malicious scripts in the user's browser, potentially stealing sensitive information or performing unauthorized actions on behalf of the user. It's an open invitation for attackers to wreak havoc, and the consequences could be absolutely devastating!

Put simply

Think of it like a restaurant where someone sneaks in and serves a dangerous dish that looks perfectly fine on the menu. Diners consume it, unaware that it’s been tampered with, leading to all sorts of chaos! This XSS vulnerability in pgAdmin arises from improper rendering of query results that fail to sanitize user input, allowing attackers to inject and execute scripts in the browser context.

What to do

If exploited, this vulnerability could allow attackers to execute malicious scripts in the user's browser, potentially stealing sensitive information or performing unauthorized actions on behalf of the user. It's an open invitation for attackers to wreak havoc, and the consequences could be absolutely devastating! Immediate action is required! Upgrade to pgAdmin version 9.2 or higher to patch this vulnerability. Additionally, consider implementing input validation and proper output encoding practices to strengthen your defenses. This issue is fixable! With a quick update and some proactive measures, you can secure your system and keep those attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.00322 · 24.0th percentile
Published
2025-04-03T12:23Z
EPSS history
Timeline
  • 03 APR 12:23Z
    Cross-Site Vulnerability(XSS) due to arbitrary HTML/JavaScript gets executed while query result rendering in Query Tool and View/Edit Data Tool of pgAdmin 4
    cvelistv5