Vulnerabilities in pkg:pypi/pgAdmin4

PACKAGE
Advisory Identifier: GHSA-xv64-8p4r-94gq
Advisory Summary

CVE-2024-4216 is a HIGH (CVSS 7.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting PgAdmin4 libraries in the PyPI ecosystem. The issue involves pgadmin cross-site scripting vulnerability in /settings/store api response json payload. Remediation is available by upgrading affected packages to version 8.6.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/pgAdmin4

2 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-xv64-8p4r-94gq CVE-2024-4216 HIGH pgAdmin Cross-site Scripting vulnerability in /settings/store API response json payload
GHSA-rj98-crf4-g69w CVE-2024-2044 CRITICAL pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user

CVE-2024-4216 at a Glance

CVE Identifier CVE-2024-4216
GHSA Identifier GHSA-xv64-8p4r-94gq
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product PgAdmin4
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.4

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:L/I:L/A:L).

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 Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-4216

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: 8.6
pip install pgAdmin4>=8.6
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-2024-4216, 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 8.6), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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

pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. This vulnerability allows attackers to execute malicious script at the client end.

CVE-2024-4216 Affected PgAdmin4 Versions

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

References

Frequently Asked Questions

What is CVE-2024-4216?
CVE-2024-4216 is a security vulnerability in PgAdmin4 involving pgAdmin Cross-site Scripting vulnerability in /settings/store API response json payload under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which PgAdmin4 versions are affected?
Affected versions include releases prior to 8.6 across affected packages: pgAdmin4.
What version fixes CVE-2024-4216?
Upgrading to 8.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pgAdmin4 affected?
Yes, pgAdmin4 is affected in releases prior to 8.6. Upgrade your dependency to 8.6 or later.
What is the CVSS score of CVE-2024-4216?
CVE-2024-4216 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2024-4216?
CVE-2024-4216 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2024-4216?
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-xv64-8p4r-94gq",
  "modified" : "2025-09-19T16:21:42Z",
  "published" : "2024-05-02T18:30:55Z",
  "aliases" : [ "CVE-2024-4216" ],
  "summary" : "pgAdmin Cross-site Scripting vulnerability in /settings/store API response json payload",
  "details" : "pgAdmin <= 8.5 is affected by XSS vulnerability in /settings/store API response json payload. This vulnerability allows attackers to execute malicious script at the client end.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pgAdmin4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.5"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-4216"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pgadmin-org/pgadmin4/issues/7282"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pgadmin-org/pgadmin4/commit/e384c9665ae2e72376be7cefa8e652efcee93767"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pgadmin-org/pgadmin4"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T2YFVCB4HCXU3FQBZ5XTWJZWSZUDNCXE"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-03T20:20:33Z",
    "nvd_published_at" : "2024-05-02T18:15:07Z"
  }
}