CVE-2026-7820: Account lockout bypass in pgAdmin 4 /login
- Vendor
- Pgadmin
CVE-2026-7820 is an improper restriction of excessive authentication attempts vulnerability in pgAdmin 4 affecting versions before 9.15. pgAdmin implemented account lockout enforcement in its custom /authenticate/login handler, but Flask-Security's default /login route remained automatically exposed and did not honor the application's locked-account state. The issue stemmed from the pgAdmin User model relying on Flask-Security's UserMixin.is_locked(), which effectively returned the account as not locked, and Flask-Login's is_active behavior, which checked only whether the account was active and not whether it was locked. As a result, after an INTERNAL account was locked through repeated failures on /authenticate/login, an attacker could still authenticate successfully by submitting valid credentials to /login. The same alternate authentication path also bypassed the intended login-attempt throttling, allowing unrestricted online password guessing against INTERNAL accounts.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation defeats pgAdmin's brute-force protection and account lockout controls for INTERNAL authentication accounts. An attacker can continue attempting passwords without the configured MAX_LOGIN_ATTEMPTS restriction on the default /login route and, if valid credentials are known or guessed, can obtain an authenticated session even after the target account has been locked through the intended login workflow. This enables unauthorized access to pgAdmin under the compromised account and undermines administrative controls intended to slow or stop online credential attacks.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, reduce exposure of pgAdmin to untrusted networks, place the service behind compensating access controls such as VPN or IP allowlisting, and prefer external authentication mechanisms not affected by this issue where operationally feasible. Monitor for repeated authentication attempts and suspicious use of alternate login paths. Because the vulnerable behavior is tied to the default /login route being reachable, restricting or filtering access to that route may reduce risk, but the definitive mitigation is to deploy the fixed version.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4 to version 9.15 or later. The fix overrides User.is_active and User.is_locked() so that the locked column is enforced consistently across all authentication paths, including Flask-Security's default /login endpoint.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-7820 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-7820 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-7820?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-7820.
- Is there a patch for CVE-2026-7820?
- Upgrade pgAdmin 4 to version 9.15 or later. The fix overrides User.is_active and User.is_locked() so that the locked column is enforced consistently across all authentication paths, including Flask-Security's default /login endpoint.
- What products are affected by CVE-2026-7820?
- Pgadmin 4.
- How severe is CVE-2026-7820?
- CVE-2026-7820 has a CVSS v4 score of 6.9 (Medium) and an EPSS score of 0.21% (11th percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.