Vulnerabilities in pkg:pypi/pgadmin4

PACKAGE
Advisory Identifier: GHSA-h2x2-q2mc-24gw
Advisory Summary

CVE-2026-7813 is a CRITICAL (CVSS 9.9) pgadmin 4 server mode has vulnerability (CWE-284: Improper Access Control) affecting Pgadmin4 libraries in the PyPI ecosystem. The issue involves pgadmin 4 server mode has an authorization vulnerability affecting server groups, servers, shared servers, background processes, and debugger modules. Remediation is available by upgrading affected packages to version 9.15.

26 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/pgadmin4

26 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/pgadmin4. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-h2x2-q2mc-24gw CVE-2026-7813 CRITICAL pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules
GHSA-4rhg-h8f2-v4jm CVE-2026-7818 HIGH pgAdmin 4 has deserialization of untrusted data in its FileBackedSessionManager
GHSA-hv9p-2pqf-r5w3 CVE-2026-7820 MODERATE pgAdmin 4: Improper restriction of excessive authentication attempts
GHSA-hr4r-fwpv-c95j CVE-2026-7819 HIGH pgAdmin 4 File Manager has symbolic-link path traversal
GHSA-p58c-q354-6c4f CVE-2026-7817 HIGH pgAdmin 4 contains local file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities
GHSA-6p2c-69cv-3fxq CVE-2026-7814 MODERATE pgAdmin 4: Stored cross-site scripting (XSS) vulnerability in Browser Tree and Explain Visualizer modules
GHSA-j74f-g7vx-fh4x CVE-2026-7816 HIGH pgAdmin 4: OS command injection vulnerability in Import/Export query export
GHSA-hp84-p2gq-6fvr CVE-2026-7815 HIGH SQL injection vulnerability in pgAdmin 4 Maintenance Tool
GHSA-3p7x-94q9-jq9x CVE-2026-1707 HIGH pgadmin4 affected by a Restore restriction bypass via key disclosure vulnerability
GHSA-fxmw-jcgr-w44v CVE-2025-13780 CRITICAL pgadmin4 has a Meta-Command Filter Command Execution
GHSA-g4r8-3qmh-pmch CVE-2025-12765 HIGH pgAdmin has vulnerability in LDAP authentication mechanism that allows bypassing TLS certificate verification
GHSA-cvf4-f829-762v CVE-2025-12764 HIGH pgAdmin is affected by an LDAP injection vulnerability
GHSA-rm79-x4g6-hvg5 CVE-2025-12763 MODERATE pgAdmin 4 has command injection vulnerability on Windows systems
GHSA-w2p4-p4rh-qcm3 CVE-2025-12762 CRITICAL pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode
GHSA-2mvc-557g-5638 CVE-2024-4215 MODERATE pgAdmin is affected by a multi-factor authentication bypass vulnerability
GHSA-6859-2qxq-ffv2 CVE-2025-9636 HIGH pgadmin4 is affected by a Cross-Origin Opener Policy (COOP) vulnerability
GHSA-2rrx-pphc-qfv9 CVE-2025-2946 CRITICAL pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering
GHSA-g73c-fw68-pwx3 CVE-2025-2945 CRITICAL pgAdmin 4 Vulnerable to Remote Code Execution
GHSA-3v6v-2x6p-32mc CVE-2022-4223 HIGH pgadmin4 vulnerable to Code Injection
GHSA-9crj-hpxh-f6qg CVE-2023-0241 MODERATE pgAdmin 4 vulnerable to directory traversal
GHSA-ghp8-52vx-77j4 CVE-2023-5002 MODERATE pgAdmin failed to properly control the server code
GHSA-894c-rg7f-3c62 CVE-2023-22298 MODERATE pgAdmin 4 Open Redirect vulnerability
GHSA-27jx-ffw8-xrqv CVE-2024-3116 HIGH pgAdmin Remote Code Execution (RCE) vulnerability
GHSA-7w6r-748w-mh52 CVE-2023-1907 HIGH pgAdmin has Incorrect Default Permissions
GHSA-jm9x-rx9x-wpqj CVE-2024-9014 HIGH OAuth2 client ID and secret exposed through the web browser
GHSA-cr8c-972v-rmp3 CVE-2022-0959 MODERATE pgAdmin 4 Path Traversal vulnerability

CVE-2026-7813 at a Glance

CVE Identifier CVE-2026-7813
GHSA Identifier GHSA-h2x2-q2mc-24gw
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-284: Improper Access Control
Affected Product Pgadmin4
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-7813

To remediate this vulnerability, upgrade all affected Pgadmin4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pgadmin4 fixed: 9.15
pip install pgadmin4>=9.15
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pgadmin4

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-7813, inspect your installed packages using pip:

pip show pgadmin4

Analyze the terminal output to locate any version of Pgadmin4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.15), your application is affected.

Note: The pip show pgadmin4 command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Pgadmin4, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Authorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules. Multiple endpoints fetched user-owned objects without filtering by the requesting user's identity. An authenticated user could access another user's private servers, server groups, background processes, and debugger function arguments by guessing object IDs. Additionally, the Shared Servers feature contained multiple issues including credential leakage (passexec_cmd, passfile, SSL keys), privilege escalation via writable passexec_cmd (a shell command executed when establishing the connection) allowing arbitrary command execution in the owner's process context, and owner-data corruption via SQLAlchemy session mutations. Several owner-only fields (passexec_cmd, passexec_expiration, db_res, db_res_type) were writable by non-owners through the API, and additional fields (kerberos_conn, tags, post_connection_sql) lacked per-user persistence so non-owner edits mutated the owner's record. Fix centralises access control via a new server_access module, scopes all user-owned models with a UserScopedMixin, returns HTTP 410 from connection_manager when access is denied in server mode, suppresses owner-only fields for non-owners across the merge / API response / ServerManager paths, and adds an explicit owner-only write guard. The remediation landed in two pull requests; both are referenced. This issue affects pgAdmin 4: before 9.15.

CVE-2026-7813 Affected Pgadmin4 Versions

1 component(s)
Fixed Versions:
9.15
Product / Package Ecosystem Affected Versions Fixed Version
pgadmin4
PyPI
< 9.15
9.15

References

Frequently Asked Questions

What is CVE-2026-7813?
CVE-2026-7813 is a security vulnerability in Pgadmin4 involving pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules under CWE-284: Improper Access Control.
Which Pgadmin4 versions are affected?
Affected versions include releases prior to 9.15 across affected packages: pgadmin4.
What version fixes CVE-2026-7813?
Upgrading to 9.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pgadmin4 affected?
Yes, pgadmin4 is affected in releases prior to 9.15. Upgrade your dependency to 9.15 or later.
What is the CVSS score of CVE-2026-7813?
CVE-2026-7813 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-7813?
CVE-2026-7813 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2026-7813?
Run the dependency tree command: 'pip show pgadmin4'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h2x2-q2mc-24gw",
  "modified" : "2026-05-18T15:23:21Z",
  "published" : "2026-05-11T18:31:44Z",
  "aliases" : [ "CVE-2026-7813" ],
  "summary" : "pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules",
  "details" : "Authorization vulnerability in pgAdmin 4 server mode affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules.\n\nMultiple endpoints fetched user-owned objects without filtering by the requesting user's identity. An authenticated user could access another user's private servers, server groups, background processes, and debugger function arguments by guessing object IDs.\n\nAdditionally, the Shared Servers feature contained multiple issues including credential leakage (passexec_cmd, passfile, SSL keys), privilege escalation via writable passexec_cmd (a shell command executed when establishing the connection) allowing arbitrary command execution in the owner's process context, and owner-data corruption via SQLAlchemy session mutations. Several owner-only fields (passexec_cmd, passexec_expiration, db_res, db_res_type) were writable by non-owners through the API, and additional fields (kerberos_conn, tags, post_connection_sql) lacked per-user persistence so non-owner edits mutated the owner's record.\n\nFix centralises access control via a new server_access module, scopes all user-owned models with a UserScopedMixin, returns HTTP 410 from connection_manager when access is denied in server mode, suppresses owner-only fields for non-owners across the merge / API response / ServerManager paths, and adds an explicit owner-only write guard. The remediation landed in two pull requests; both are referenced.\n\nThis issue affects pgAdmin 4: before 9.15.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pgadmin4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-7813"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pgadmin-org/pgadmin4/pull/9830"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pgadmin-org/pgadmin4/pull/9835"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pgadmin-org/pgadmin4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T15:23:21Z",
    "nvd_published_at" : "2026-05-11T16:17:37Z"
  }
}