# CVE-2026-7820: PostgreSQL pgAdmin 4 account lockout bypass in login views

Source: https://junglewise.ai/threats/cve-2026-7820-postgresql-pgadmin-4-account-lockout-bypass-in-login-views  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-11. Updated: 2026-05-18  
License: CC BY 4.0 with a link back

CVE-2026-7820 · Severity: medium · CVSS 6.5 · Published 2026-05-11

pgAdmin 4, a popular management tool for PostgreSQL databases, contains a security flaw that allows attackers to bypass account lockout protections. While the software is designed to lock accounts after too many failed login attempts, a secondary login page remained accessible that did not enforce these limits. This allows an attacker to perform unlimited password-guessing attacks against internal user accounts, potentially leading to unauthorized access to the database management interface.

Technologies: [PostgreSQL pgAdmin 4](https://junglewise.ai/threats/technologies/pgadmin-4), [pgadmin4 (PyPI)](https://junglewise.ai/threats/technologies/pgadmin4). Vendors: [PostgreSQL](https://junglewise.ai/threats/vendors/postgresql), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-7820 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-7820 being exploited in the wild.

**How severe is CVE-2026-7820?** Medium severity, with a CVSS score of 6.5, published 11 May 2026.

**Which products and versions are affected?** PostgreSQL pgAdmin 4 < 9.15, before 9.15; pgadmin4 (PyPI) < 9.15, ECOSYSTEM:introduced=0,fixed=9.15.

**Is there a fix for CVE-2026-7820?** Yes. pgadmin4 (PyPI): upgrade to 9.15 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-7820 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-7820?** Check whether you run PostgreSQL pgAdmin 4 or pgadmin4 (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- pgadmin4 (PyPI): upgrade to 9.15 or later

  ```sh
  pip install "pgadmin4>=9.15"
  ```


## Technical details

A vulnerability exists in pgAdmin 4 where brute-force protection (MAX_LOGIN_ATTEMPTS) was only enforced in the custom /authenticate/login view. The default /login view provided by Flask-Security remained reachable and failed to consult the User.locked field because the User model relied on default Mixin methods that did not account for pgAdmin's specific locking logic. An attacker can bypass an existing lockout or perform unbounded online password-guessing attacks against accounts using the INTERNAL authentication source by targeting the /login endpoint. This issue is resolved in version 9.15 by overriding the User.is_active and User.is_locked() methods to ensure the locked status is checked across all authentication paths.

## Affected products

- PostgreSQL pgAdmin 4 < 9.15

## Identifiers

- CVE-2026-7820
- GHSA-hv9p-2pqf-r5w3
- PYSEC-2026-2869

## Timeline

- 2026-05-04: other: Issue reported to vendor
- 2026-05-11: advisory: Initial disclosure and CVE assignment
- 2026-05-11: patched: Fixed in version 9.15

## References

- [https://github.com/pgadmin-org/pgadmin4/issues/9904](https://github.com/pgadmin-org/pgadmin4/issues/9904)
- [https://github.com/pgadmin-org/pgadmin4/commit/d336c1e78](https://github.com/pgadmin-org/pgadmin4/commit/d336c1e78)

## Related threats

- [PostgreSQL pgAdmin 4 missing authorization in per-tool permissions](https://junglewise.ai/threats/cve-2026-17350-postgresql-pgadmin-4-missing-authorization-in-per-tool)
- [PostgreSQL pgAdmin 4 credential leak in Workspaces adhoc connection](https://junglewise.ai/threats/cve-2026-17349-postgresql-pgadmin-4-credential-leak-in-workspaces-adhoc)
- [PYSEC-2026-2864 - pgadmin4 affected by a Restore restriction bypass via key disclosure vulnerability](https://junglewise.ai/threats/cve-2026-1707-pgadmin-4-restore-restriction-bypass-via-key-disclosure)
- [PYSEC-2026-1769 - pgadmin4 is affected by a Cross-Origin Opener Policy (COOP) vulnerability](https://junglewise.ai/threats/cve-2025-9636-pgadmin4-is-affected-by-a-cross-origin-opener-policy-coop)
- [PYSEC-2026-1770 - pgAdmin has Incorrect Default Permissions](https://junglewise.ai/threats/cve-2023-1907-pgadmin-has-incorrect-default-permissions)
