Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-86863

CRITICAL 9.3EPSS 42%

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

Mitigation

  • Upgrade pgAdmin 4 to 9.18 or later.

Who should check

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

Vulnerability facts

Affected
pgadmin.org pgAdmin 4 >= 6.2, < 9.18
Fixed in
pgadmin.org pgAdmin 4 9.18
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.58% chance of exploitation in 30 days (percentile 42, 2026-11-26)
CWE
CWE-290, CWE-807
Published
Modified

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

Package / productAffectedFixedSource
pgadmin.org pgAdmin 4>= 6.2, < 9.18—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors