VDB
Sign up
MEDIUM6.5

PYSEC-2026-729

pgAdmin 4 Path Traversal vulnerability

Quick fix

PYSEC-2026-729 — pgadmin4: upgrade to the fixed version with the command below.

pip install --upgrade 'pgadmin4>=6.7'

Details

When run in server mode, pgAdmin 4 allows users to store files on the server under individual storage directories. Files such as SQL scripts may be uploaded through the user interface. The URI to which upload requests are made fails to validate the upload path to prevent path traversal techniques being used to store files outside of the storage directory. A malicious, but authorised and authenticated user can construct an HTTP request using their existing CSRF token and session cookie to manually upload files to any location that the operating system user account under which pgAdmin is running has permission to write.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pgadmin4
Introduced in: 0Fixed in: 6.7
Fixpip install --upgrade 'pgadmin4>=6.7'

References