Stored Cross-Site Scripting Vulnerability in pgAdmin 4 by pgAdmin
CVE-2026-12048

9.3CRITICAL

Key Information:

Status
Vendor
CVE Published:
18 June 2026

What is CVE-2026-12048?

CVE-2026-12048 is a stored cross-site scripting (XSS) vulnerability found in pgAdmin 4, an open-source administration and management tool for PostgreSQL database systems. This vulnerability arises from how pgAdmin handles error messages and rendering plans, allowing potentially malicious input from a PostgreSQL server to be passed unfiltered to the user interface. When a victim connects to a compromised PostgreSQL server or interacts with a crafted Explain plan, an attacker can inject arbitrary HTML, including scripts and iframes, into the pgAdmin DOM. The presence of such unauthorized HTML content can mislead users, making it difficult to distinguish legitimate dialogue from phishing attempts, as traditional anti-clickjacking measures do not apply effectively in this scenario. The repercussion of this vulnerability extends beyond mere exploitation; it undermines the integrity and trust of the pgAdmin interface, potentially leading to unauthorized access and malicious activities.

Potential impact of CVE-2026-12048

  1. User Deception and Data Theft: Attackers could exploit this vulnerability to create phishing pages that render inside the pgAdmin interface, significantly increasing the chance of human error and data theft as users might unknowingly enter sensitive information into these counterfeit forms.

  2. Compromise of System Integrity: As the vulnerability allows for JavaScript execution through injected iframes, attackers can redirect users to malicious sites or exploit browser vulnerabilities, further compromising the integrity of the pgAdmin user environment and, by extension, the underlying databases managed through the software.

  3. Widespread Exploitation Potential: Given the nature of the vulnerability, an attacker controlling a PostgreSQL server could target multiple users who connect to it, leading to widespread unauthorized access across various organizations. This broad attack vector compounds the risk of potential data breaches and operational disruptions for businesses utilizing pgAdmin 4.

Affected Version(s)

pgAdmin 4 6.0 < 9.16

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Fernando Bortotti <fernando.bortotti@bsd.com.br>
Dave Page <dpage@pgadmin.org>
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
.