A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7814

CVE-2026-7814: pgAdmin 4 Stored XSS Vulnerability

CVE-2026-7814 is a stored XSS vulnerability in pgAdmin 4 Browser Tree and Explain Visualizer modules. Attackers can inject malicious JavaScript via PostgreSQL object names. This post covers technical details, affected versions, and fixes.

Published: May 18, 2026

CVE-2026-7814 Overview

CVE-2026-7814 is a stored cross-site scripting (XSS) vulnerability in pgAdmin 4, affecting the Browser Tree and Explain Visualizer modules. The flaw exists in versions of pgAdmin 4 before 9.15. User-controlled PostgreSQL object names — including database, schema, table, and column identifiers — were assigned to DOM elements using innerHTML. An authenticated database user can craft object names containing HTML markup that executes attacker-supplied JavaScript in the browser of any pgAdmin user who navigates to or runs EXPLAIN over the malicious object. The vulnerability is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Attackers with privileges to create or rename PostgreSQL objects can execute arbitrary JavaScript in the session of any pgAdmin user who browses the affected database.

Affected Products

  • pgAdmin 4 versions before 9.15
  • pgAdmin 4 Browser Tree module
  • pgAdmin 4 Explain Visualizer module

Discovery Timeline

  • 2026-05-11 - CVE-2026-7814 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-7814

Vulnerability Analysis

The vulnerability resides in client-side rendering logic within pgAdmin 4's web interface. The Browser Tree displays PostgreSQL objects retrieved from the connected database server. The Explain Visualizer renders the output of EXPLAIN query plans. Both modules assigned object names directly to DOM nodes through the innerHTML property without prior HTML escaping.

Because PostgreSQL permits a wide range of characters inside quoted identifiers, an attacker can create objects whose names contain HTML tags or <script> payloads. When pgAdmin renders the object name, the browser parses the embedded markup and executes any included JavaScript. The payload runs with the privileges of the victim's pgAdmin session, enabling theft of session tokens, manipulation of the pgAdmin UI, and execution of authenticated requests against connected databases.

Root Cause

The root cause is unsafe DOM injection. The affected code paths used element.innerHTML = name instead of element.textContent = name. innerHTML parses its assigned string as HTML, while textContent treats the value as literal text. The upstream fix replaces innerHTML with textContent in the affected components.

Attack Vector

Exploitation requires an attacker to have permission to create or rename PostgreSQL objects on a server managed through pgAdmin. The attacker creates an object — for example, a table or column — whose identifier embeds an HTML payload. User interaction is required: a pgAdmin user must navigate the Browser Tree to the malicious object or run EXPLAIN on a query referencing it. Because the payload is persisted in database metadata, the attack is stored and triggers automatically on later sessions.

No verified public exploit is available. See the GitHub Pull Request for the upstream fix and the GitHub Issue Report for additional context.

Detection Methods for CVE-2026-7814

Indicators of Compromise

  • PostgreSQL object names containing HTML metacharacters such as <, >, ", or strings resembling <script>, <img, or onerror=.
  • Unexpected outbound network requests from pgAdmin user browsers to attacker-controlled domains.
  • pgAdmin session activity originating from IP addresses or user agents inconsistent with the legitimate operator.

Detection Strategies

  • Audit PostgreSQL catalogs (pg_class, pg_namespace, pg_attribute) for identifiers containing angle brackets or script-like tokens.
  • Inspect pgAdmin server logs for object enumeration requests that immediately precede anomalous activity from administrator accounts.
  • Review browser Content Security Policy (CSP) violation reports if CSP is enforced in front of pgAdmin.

Monitoring Recommendations

  • Monitor PostgreSQL DDL events such as CREATE TABLE, CREATE SCHEMA, and ALTER ... RENAME for identifiers with unusual characters.
  • Alert on creation of database objects by accounts that do not normally perform schema changes.
  • Capture HTTP traffic from pgAdmin instances and flag responses containing object names with embedded HTML.

How to Mitigate CVE-2026-7814

Immediate Actions Required

  • Upgrade pgAdmin 4 to version 9.15 or later on every server, desktop, and container deployment.
  • Identify and rename any PostgreSQL objects whose names contain HTML markup before reopening pgAdmin against the affected database.
  • Restrict CREATE and ALTER privileges on shared PostgreSQL instances to trusted roles only.

Patch Information

The fix replaces innerHTML with textContent in the Browser Tree and Explain Visualizer modules, ensuring object names render as literal text. The patch is included in pgAdmin 4 release 9.15. Patch details are available in the pgAdmin 4 Pull Request #9865.

Workarounds

  • Limit pgAdmin access to PostgreSQL servers where only trusted administrators hold object creation privileges.
  • Avoid browsing or running EXPLAIN against untrusted databases using vulnerable pgAdmin versions.
  • Deploy a reverse proxy in front of pgAdmin that enforces a strict Content Security Policy disallowing inline script execution.
bash
# Configuration example: upgrade pgAdmin 4 via pip
pip install --upgrade "pgadmin4>=9.15"

# Or pull the patched container image
docker pull dpage/pgadmin4:9.15

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechPgadmin

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Pull Request

  • GitHub Issue Report
  • Related CVEs
  • CVE-2025-2946: pgAdmin 4 XSS Vulnerability

  • CVE-2026-7815: pgAdmin 4 SQL Injection Vulnerability

  • CVE-2026-7817: pgAdmin 4 LFI and SSRF Vulnerability

  • CVE-2026-7816: pgAdmin 4 RCE Vulnerability Explained
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English