<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc" -->

---
title: pgAdmin 4 v9.18 Released | daily.dev
description: pgAdmin 4 version 9.18 fixes 29 bugs and four security vulnerabilities (CVE-2026-86861 through CVE-2026-86864). The fixes address a header-based identity...
canonical: https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: pgAdmin 4 v9.18 Released | daily.dev
og:description: pgAdmin 4 version 9.18 fixes 29 bugs and four security vulnerabilities (CVE-2026-86861 through CVE-2026-86864). The fixes address a header-based identity...
og:url: https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc
og:image: https://api.daily.dev/og/posts/HmdgHKahC.png
og:image:alt: pgAdmin 4 v9.18 Released
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# pgAdmin 4 v9.18 Released

**[PostgreSQL](https://daily.dev/sources/postgres)** · 3 min read · 5 upvotes · 0 comments

## Summary

pgAdmin 4 version 9.18 fixes 29 bugs and four security vulnerabilities (CVE-2026-86861 through CVE-2026-86864). The fixes address a header-based identity spoofing flaw in get_user(), an argument-injection issue in pg_dump that could redirect connections and leak PGPASSWORD, a symlink-following write vulnerability in the save_file endpoint used by the Query Tool and ERD, and a related --dbname redirection issue. Additional changes tighten the Content-Security-Policy by removing 'unsafe-inline' and 'unsafe-eval' for script-src, add a keyboard shortcut for toggling the object explorer, fix duplicate AJAX requests on wide tables' Columns tab, correct index SQL generation for partitioned tables, and fix Helm deployment template issues. Builds are available for Windows, macOS, Python Wheel, Docker, RPM, DEB, and source tarball.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.postgresql.org/about/news/pgadmin-4-v918-released-3381>

## Questions this post answers

### What security vulnerabilities were fixed in pgAdmin 4 version 9.18?

pgAdmin 4 9.18 fixes four CVEs: CVE-2026-86861 through CVE-2026-86864. These include a symlink-following write flaw in the save_file endpoint used by the Query Tool and ERD, a header-based identity spoofing issue in get_user() that let any client assert an administrator's identity via WEBSERVER_REMOTE_USER, and two pg_dump argument-injection issues that could redirect database connections and leak the PGPASSWORD environment variable to an attacker-controlled host.

_Teams patching pgAdmin deployments can track CVE fixes like these as they roll out on daily.dev._

### How does pgAdmin 4 9.18 fix the pg_dump argument injection vulnerability (CVE-2026-86864)?

The database name is now passed through the PGDATABASE environment variable instead of as a positional pg_dump argument, since libpq never expands PGDATABASE the way it expands a database name containing an equals sign into a full connection string. Previously, a crafted database name could redirect the connection and exported PGPASSWORD to an attacker-chosen host, or inject flags like --file to override the confined output path.

_Developers auditing database tooling for injection risks can follow fixes like this via daily.dev._

### Why was pgAdmin's WEBSERVER_REMOTE_USER header-based authentication insecure before version 9.18?

get_user() fell back to reading the WEBSERVER_REMOTE_USER name directly from inbound request headers when it was missing from the WSGI environment, and since headers are client-controlled, any client reaching pgAdmin could assert any identity, including an administrator's, without a credential. Version 9.18 makes header-asserted identity opt-in, restricted to a configured list of trusted proxies with an optional shared secret, and refuses it for non-webserver auth sources (CVE-2026-86863).

_Admins hardening authentication configs can keep up with fixes like this through daily.dev._

## Similar posts on daily.dev

- [PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 Released\!](https://daily.dev/posts/postgresql-18-2-17-8-16-12-15-16-and-14-21-released--nnaoaiphj) · PostgreSQL · 7 upvotes · 0 comments
- [pgcopydb v0.18](https://daily.dev/posts/pgcopydb-v0-18-p5f6abalo) · Planet PostgreSQL · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#authentication](https://daily.dev/tags/authentication), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"pgAdmin 4 v9.18 Released","url":"https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc"},"datePublished":"2026-09-17T15:14:24.276Z","dateModified":"2026-09-17T17:27:23.553Z","description":"pgAdmin 4 version 9.18 fixes 29 bugs and four security vulnerabilities (CVE-2026-86861 through CVE-2026-86864). The fixes address a header-based identity...","image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","thumbnailUrl":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","isAccessibleForFree":true,"articleSection":"PostgreSQL","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"PostgreSQL","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8dab534748a94108858df41b7ef7fe86","url":"https://daily.dev/sources/postgres"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,authentication,postgresql","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PostgreSQL","item":"https://daily.dev/sources/postgres"},{"@type":"ListItem","position":3,"name":"pgAdmin 4 v9.18 Released"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pgadmin-4-v9-18-released-hmdghkahc#faq","mainEntity":[{"@type":"Question","name":"What security vulnerabilities were fixed in pgAdmin 4 version 9.18?","acceptedAnswer":{"@type":"Answer","text":"pgAdmin 4 9.18 fixes four CVEs: CVE-2026-86861 through CVE-2026-86864. These include a symlink-following write flaw in the save_file endpoint used by the Query Tool and ERD, a header-based identity spoofing issue in get_user() that let any client assert an administrator's identity via WEBSERVER_REMOTE_USER, and two pg_dump argument-injection issues that could redirect database connections and leak the PGPASSWORD environment variable to an attacker-controlled host. Teams patching pgAdmin deployments can track CVE fixes like these as they roll out on daily.dev."}},{"@type":"Question","name":"How does pgAdmin 4 9.18 fix the pg_dump argument injection vulnerability (CVE-2026-86864)?","acceptedAnswer":{"@type":"Answer","text":"The database name is now passed through the PGDATABASE environment variable instead of as a positional pg_dump argument, since libpq never expands PGDATABASE the way it expands a database name containing an equals sign into a full connection string. Previously, a crafted database name could redirect the connection and exported PGPASSWORD to an attacker-chosen host, or inject flags like --file to override the confined output path. Developers auditing database tooling for injection risks can follow fixes like this via daily.dev."}},{"@type":"Question","name":"Why was pgAdmin's WEBSERVER_REMOTE_USER header-based authentication insecure before version 9.18?","acceptedAnswer":{"@type":"Answer","text":"get_user() fell back to reading the WEBSERVER_REMOTE_USER name directly from inbound request headers when it was missing from the WSGI environment, and since headers are client-controlled, any client reaching pgAdmin could assert any identity, including an administrator's, without a credential. Version 9.18 makes header-asserted identity opt-in, restricted to a configured list of trusted proxies with an optional shared secret, and refuses it for non-webserver auth sources (CVE-2026-86863). Admins hardening authentication configs can keep up with fixes like this through daily.dev."}}]}
```

