Skip to main content

pgAdmin 4 CVE-2026-7814

| EUVDEUVD-2026-29082 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-11 PostgreSQL GHSA-6p2c-69cv-3fxq
4.8
CVSS 4.0 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as pgAdmin admin
  2. Delivery
    Create PostgreSQL object with XSS payload in name
  3. Exploit
    Victim navigates to Browser Tree or runs EXPLAIN
  4. Execution
    Malicious JavaScript executes in victim's browser
  5. Impact
    Session hijack or unauthorized DB action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Authentication as a pgAdmin administrator (PR:H in CVSS) is required - the attacker cannot be an unauthenticated remote user. The attacker must have CREATE privilege on at least one PostgreSQL database to inject the malicious object name. The victim (another pgAdmin user) must navigate to the Browser Tree or execute an EXPLAIN operation over the poisoned object - this is the UI:R (User Interaction Required) gate. The vulnerability does NOT affect default or standard pgAdmin configurations; it requires the presence of user-supplied PostgreSQL object names with HTML/JavaScript markup, which is non-standard. Scope is changed (S:C) because the XSS executes in another user's session, not just the attacker's own.

Impact

CVSS 4.8 with vector AV:N/AC:L/PR:H/UI:R/S:C indicates network accessibility but HIGH privilege requirement (PR:H = requires admin), low attack complexity, and required user interaction (UI:R). This significantly constrains real-world exploitation: an attacker must first be authenticated as a pgAdmin administrator (rare for external threat actors), then craft malicious PostgreSQL object names within databases they can modify, then socially engineer or coincidentally have another admin view the poisoned object. EPSS data not provided, but the combination of high CVSS-to-impact ratio (4.8 is artificially low due to PR:H requirement) suggests this is lower priority than unauthenticated network XSS. The stored nature and cross-user impact (C:L/I:L for other users' browsers) elevate it above typical self-XSS, but the authentication barrier makes this an insider-threat or supply-chain risk rather than a critical external vulnerability. No evidence of public exploit or active exploitation provided. Confidence: moderate - CVSS vector is clear but real-world exploitability is heavily gated by admin auth.

Exploit ScenarioDerived

An authenticated pgAdmin administrator (Attacker A) with write access to a PostgreSQL database creates a table with a name such as 'test<img src=x onerror=alert(1)>' or a schema containing JavaScript. When a second pgAdmin user (Victim) navigates to the Browser Tree or runs an EXPLAIN query over the malicious object, the crafted JavaScript executes in Victim's browser within pgAdmin's security context, potentially stealing session cookies or performing unauthorized database actions on behalf of Victim. No public exploit code has been identified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

Stored cross-site scripting (XSS) in pgAdmin 4 before version 9.15 allows authenticated administrators to execute arbitrary JavaScript in the browsers of other pgAdmin users by crafting malicious PostgreSQL object names (databases, schemas, tables, columns) that are rendered unsafely via innerHTML in the Browser Tree and Explain Visualizer modules. The vulnerability requires administrator privileges and user interaction (navigation to or EXPLAIN execution over the malicious object), limiting real-world exploitation scope despite the network attack vector.

RemediationAI

Upgrade pgAdmin 4 to version 9.15 or later immediately - this is the primary fix and replaces the unsafe innerHTML calls with textContent to prevent HTML/JavaScript interpretation. Organizations unable to upgrade immediately should restrict pgAdmin administrative access to trusted users only and monitor for suspicious database object creation attempts (names containing script tags, event handlers, or encoded HTML). The fix can be verified by reviewing the GitHub PR to confirm textContent replacement in the Browser Tree and Explain Visualizer modules. No workarounds are available short of disabling the affected modules (Browser Tree and Explain plans), which would severely degrade pgAdmin functionality.

Affected VersionsENISA

pgAdmin 4 6.9 <9.15

Affected Packages

pypi pgadmin4 fix: 9.15
euvd pgadmin_4 fix: 9.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pgAdmin 4 is a web-based PostgreSQL management interface that displays database object hierarchies in a browser tree UI and provides EXPLAIN plan visualization. The vulnerability stems from unsafe DOM manipulation: user-controlled PostgreSQL object names (which are retrieved from the database and trusted by the application) are assigned directly to DOM elements using innerHTML rather than textContent. This causes HTML/JavaScript embedded in object names to be parsed and executed as active code. The CWE classification was not provided, but this is a classic DOM-based stored XSS (CWE-79: Improper Neutralization of Input During Web Page Generation). The affected CPE is cpe:2.3:a:pgadmin.org:pgadmin_4:*:*:*:*:*:*:*:*, covering all versions before 9.15.

Know when Pgadmin 4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
SUSE MEDIUM

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

Stored cross-site scripting (XSS) vulnerability in pgAdmin 4 Browser Tree and Explain Visualizer modules.

User-controlled PostgreSQL object names (database, schema, table, column, etc.) were assigned to DOM elements via innerHTML, allowing crafted object names containing HTML markup to execute attacker-supplied JavaScript in the browser of any pgAdmin user who navigated to or executed EXPLAIN over the malicious object.

Fix replaces innerHTML with textContent.

This issue affects pgAdmin 4: before 9.15.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2024-2044 CRITICAL POC
9.9 Mar 07

pgAdmin <= 8.3 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling

CVE-2024-3116 CRITICAL POC
9.8 Apr 04

pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. Rated cr

CVE-2026-12046 CRITICAL POC
9.5 Jun 18

Remote unauthenticated access to two SQL Editor endpoints in pgAdmin 4 server-mode deployments (versions 6.9 through 9.1

CVE-2022-4223 HIGH POC
8.8 Dec 13

The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external Post

CVE-2024-9014 MEDIUM POC
6.5 Sep 23

pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. Rated medium severity (CVS

CVE-2025-12762 CRITICAL
9.8 Nov 13

Remote code execution in pgAdmin 4 (versions up to and including 9.9) lets an attacker who can get a crafted PLAIN-forma

CVE-2026-12045 CRITICAL
9.4 Jun 18

Remote SQL injection via prompt injection in pgAdmin 4 versions 9.13 through 9.15 allows attackers who can write content

CVE-2026-17351 CRITICAL
9.4 Jul 31

SQL injection sandbox escape in pgAdmin 4's AI Assistant (versions 9.13 through 9.16) lets an attacker break out of the

CVE-2026-17566 CRITICAL POC
9.4 Jul 31

OS command injection in pgAdmin 4 (all versions before 9.18) lets an authenticated user with the commonly-granted tools_

CVE-2026-7813 CRITICAL
9.4 May 11

Authorization bypass and privilege escalation in pgAdmin 4 server mode allows authenticated users to access other users'

CVE-2024-4216 MEDIUM POC
5.4 May 02

pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. Rated medium severity (CVS

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Python 3 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy