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-12049

MEDIUM 5.3EPSS 24%

pgAdmin 4: Open redirect in multi-factor authentication flow via unvalidated 'next' parameter

Mitigation

  • Upgrade pgAdmin 4 to 9.16 or later.

Who should check

  • Anyone running pgadmin.org pgAdmin 4 >= 6.0, < 9.16

Vulnerability facts

Affected
pgadmin.org pgAdmin 4 >= 6.0, < 9.16
Fixed in
pgadmin.org pgAdmin 4 9.16
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/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: Passive
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.38% chance of exploitation in 30 days (percentile 24, 2026-11-26)
CWE
CWE-601
Published
Modified

Description

Open redirect in pgAdmin 4's multi-factor authentication flow. The MFA validate and register endpoints honoured the user-supplied 'next' query/form parameter without confirming the target pointed back inside pgAdmin, so an authenticated victim who clicked /mfa/validate?next=<external> -- a link typically delivered by phishing -- would be sent to an attacker-controlled host directly out of the trusted auth flow. The defect is a trusted-domain redirect, not a privilege bypass: the attacker gains no read/write access to pgAdmin or the victim's database, but the redirect launders the attacker's destination through pgAdmin's URL, which raises the success rate of credential-phishing follow-on against the victim. Fix introduces a same-origin _is_safe_redirect_url helper and gates every MFA redirect that consumes user-supplied 'next' values through it. The helper allows only relative paths and absolute URLs whose scheme is http(s) and whose host matches the current request host; it rejects external hosts in absolute and protocol-relative form, non-http schemes (javascript:, data:, mailto:), userinfo tricks (http://localhost@attacker/), and backslash variants that some browsers normalize to forward slashes. Unsafe targets fall back to the internal browser index. A dedicated regression test exercises each accept/reject category and the original reporter PoC. This issue affects pgAdmin 4: from 6.0 before 9.16.

Affected and fixed versions

Package / productAffectedFixedSource
pgadmin.org pgAdmin 4>= 6.0, < 9.16—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-12049. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-12049.md
Affected: pgadmin.org pgAdmin 4 >= 6.0, < 9.16
Fixed in: pgadmin.org pgAdmin 4 9.16

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-12049 being exploited?

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

How serious is CVE-2026-12049?

Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-12049?

pgadmin.org pgAdmin 4 >= 6.0, < 9.16.

Is there a fix for CVE-2026-12049?

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

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

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