# CVE-2026-86863: pgAdmin 4: Authentication bypass via a client-controlled identity header in Webserver authentication mode

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.3
- **CVSS:** 9.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.58% (percentile 42, 2026-11-26)
- **CWE:** CWE-290, CWE-807
- **Published:** 2026-09-17T15:30:58.077Z
- **Modified:** 2026-09-21T17:27:28.303Z

## Who should check

- Anyone running pgadmin.org pgAdmin 4 \>= 6.2, \< 9.18

## Description

pgAdmin 4's Webserver authentication source is intended to accept an identity asserted by the web server or reverse proxy in front of pgAdmin, delivered through the WSGI/CGI environment. WebserverAuthentication.get\_user() read config.WEBSERVER\_REMOTE\_USER from request.environ and, when that returned nothing, fell back to reading the same name directly from the inbound HTTP request headers via request.headers.get(). An inbound HTTP header is written by whoever sends the request, so any client able to reach pgAdmin could supply that header itself and be authenticated as any username it named, including an existing Administrator, without presenting a password or any other credential. The environment lookup could also be satisfied by a client-supplied header whenever WEBSERVER\_REMOTE\_USER was configured to an HTTP\_-prefixed or hyphenated name such as HTTP\_X\_FORWARDED\_USER or X-Forwarded-User, since WSGI servers place inbound headers into the environment under exactly those names. Deployments are affected only when 'webserver' is enabled in AUTHENTICATION\_SOURCES.

The fix distinguishes a genuine CGI/WSGI variable from a header-derived one and implicitly trusts only the former. A header-asserted identity is now accepted only when the operator explicitly opts in via WEBSERVER\_REMOTE\_USER\_FROM\_HEADER, the request arrives from a peer listed in WEBSERVER\_TRUSTED\_PROXIES, and, when configured, a shared secret supplied in WEBSERVER\_SHARED\_SECRET\_HEADER matches WEBSERVER\_SHARED\_SECRET under a constant-time comparison. The trusted-peer check deliberately reads the real socket peer address rather than request.remote\_addr, because ProxyFix rewrites the latter from the client-controlled X-Forwarded-For header and would otherwise allow an attacker to claim to be the trusted proxy. As defence in depth, login() now refuses any account whose auth\_source is not 'webserver', so a misconfigured trust gate cannot be used to assume an internal or LDAP account.

This issue affects pgAdmin 4: from 6.2 before 9.18.

## Affected and fixed versions

- pgadmin.org pgAdmin 4: \>= 6.2, \< 9.18 (cvelist)

## Mitigation

- Upgrade pgAdmin 4 to 9.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-86863. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-86863.md
Affected: pgadmin.org pgAdmin 4 >= 6.2, < 9.18
Fixed in: pgadmin.org pgAdmin 4 9.18

Steps:
1. Search this machine and project for pgadmin.org pgAdmin 4: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-86863 being exploited?

There is no confirmed exploitation: CVE-2026-86863 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.58% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-86863?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-86863?

pgadmin.org pgAdmin 4 \>= 6.2, \< 9.18.

### Is there a fix for CVE-2026-86863?

Yes. Fixed in pgadmin.org pgAdmin 4 9.18. Upgrade pgAdmin 4 to 9.18 or later.

### How do I check if I'm affected by CVE-2026-86863?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/pgadmin-org/pgadmin4/issues/10383>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-86863>

HTML: <https://flawdb.com/CVE-2026-86863> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-86863>
