CVE-2026-12049
Last modified
CVE-2026-12049 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.38% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pgadmin | Pgadmin 4 | >= 6.0, < 9.16 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-12049?
How severe is CVE-2026-12049?
How do I fix CVE-2026-12049?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-120479The WP Data Access – App Builder for Tables, Forms, Dashboar…6.4
- CVE-2026-12048Stored cross-site scripting in pgAdmin 4's error-rendering a…5.4
- CVE-2026-120484Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2026-120487LaraDashboard before 1.4.5 contains an incorrect authorizati…7.2
- CVE-2026-120488LaraDashboard before 1.4.9 contains a stored cross-site scri…5.4
- CVE-2026-120489Outline before 1.12.0 contains an incorrect authorization vu…4.3
- CVE-2026-120490On Scalable Platforms, an administrator with permissions to …3.8
- CVE-2026-120491Wing FTP Server before 8.2.6 contains a stored cross-site sc…5.4
- CVE-2026-120492Chainlit 2.12.0 contains a server-side request forgery vulne…5.4
- CVE-2026-120495Path traversal in the Synthetic Monitoring "Robotmk" test se…9.4
- CVE-2026-120497Stored cross-site scripting (XSS) in the HTML report generat…5
- CVE-2026-120499h5io before 0.2.6 contains a code injection vulnerability in…7.8
Are you affected by CVE-2026-12049?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
