CVE-2026-7817 pgAdmin 4: Local file inclusion and server-side request forgery in LLM API configuration endpoints

High 7.1 Published Updated

Authenticated users can read arbitrary server files or trigger SSRF via LLM API configuration endpoints in pgAdmin 4.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-7817?

CVE-2026-7817 is a high-severity server-side request forgery vulnerability in pgadmin.org pgAdmin 4, published on 11 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Local file inclusion (LFI) and server-side request forgery (SSRF) vulnerabilities in pgAdmin 4 LLM API configuration endpoints.

User-supplied api_key_file and api_url preferences were passed to the LLM provider clients without validation. An authenticated user could read arbitrary server-side files by pointing api_key_file at any path readable by the pgAdmin process, or coerce pgAdmin into making requests to internal targets (e.g. cloud metadata services such as 169.254.169.254) by setting api_url, exploiting the chat path and model-list endpoints.

Fix restricts api_key_file to the user's private storage (server mode) or home directory (desktop mode), enforces a printable-ASCII key shape and a 1024-byte read cap, and gates api_url against a configurable allow-list (config.ALLOWED_LLM_API_URLS) at every entry point.

This issue affects pgAdmin 4: before 9.15.

Weakness: CWE-552

Which versions are affected by CVE-2026-7817?

3 open source packages ship an affected version, including pgadmin4. It affects 1 product.

PackageAffectedFixed in
pgadmin4 PyPIAll versions9.15
pgadmin4 PyPIAll versions9.15
pgadmin4 PyPIAll versions9.15

Products include Pgadmin Pgadmin 4.

How do I fix CVE-2026-7817?

Upgrade pgadmin4 to 9.15 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-7817 being exploited?

There is no known exploitation of CVE-2026-7817 in the wild and no public exploit code.

Sources

Also known as GHSA-p58c-q354-6c4f, PYSEC-2026-2871.

Is CVE-2026-7817 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free