Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-7817: pgAdmin 4 LLM API configuration local file inclusion and SSRF

Identifier
CVE-2026-7817
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

CVE-2026-7817 affects pgAdmin 4 before 9.15 and concerns the LLM API configuration endpoints. User-supplied api_key_file and api_url preferences reached the LLM provider clients without validation, letting an authenticated user read arbitrary server-side files readable by the pgAdmin process or make pgAdmin request internal targets such as cloud metadata services at 169.254.169.254, via the chat path and model-list endpoints.

Mitigation

Fixed in pgAdmin 4 9.15. The 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 the allow-list config.ALLOWED_LLM_API_URLS at every entry point.