{"id":80766,"date":"2026-06-19T03:07:43","date_gmt":"2026-06-18T23:37:43","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-12049-pgadmin-4-open-redirect-in-multi-factor-authentication-flow-via-unvalidated-next-parameter\/"},"modified":"2026-06-19T03:07:43","modified_gmt":"2026-06-18T23:37:43","slug":"cve-2026-12049-pgadmin-4-open-redirect-in-multi-factor-authentication-flow-via-unvalidated-next-parameter","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-12049-pgadmin-4-open-redirect-in-multi-factor-authentication-flow-via-unvalidated-next-parameter\/","title":{"rendered":"CVE-2026-12049 &#8211; pgAdmin 4: Open redirect in multi-factor authentication flow via unvalidated &#8216;next&#8217; parameter"},"content":{"rendered":"<p>CVE ID :CVE-2026-12049<\/p>\n<p>  Published : June 18, 2026, 11:37 p.m. | 2\u00a0hours, 5\u00a0minutes ago<\/p>\n<p>  Description :Open redirect in pgAdmin 4&#8217;s multi-factor authentication flow. The MFA validate and register endpoints honoured the user-supplied &#8216;next&#8217; query\/form parameter without confirming the target pointed back inside pgAdmin, so an authenticated victim who clicked \/mfa\/validate?next= &#8212; a link typically delivered by phishing &#8212; would be sent to an attacker-controlled host directly out of the trusted auth flow.<\/p>\n<p>The defect is a trusted-domain redirect, not a privilege bypass: the attacker gains no read\/write access to pgAdmin or the victim&#8217;s database, but the redirect launders the attacker&#8217;s destination through pgAdmin&#8217;s URL, which raises the success rate of credential-phishing follow-on against the victim.<\/p>\n<p>Fix introduces a same-origin _is_safe_redirect_url helper and gates every MFA redirect that consumes user-supplied &#8216;next&#8217; 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.<\/p>\n<p>This issue affects pgAdmin 4: from 6.0 before 9.16.<\/p>\n<p>  Severity: 5.3 | MEDIUM<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-12049 Published : June 18, 2026, 11:37 p.m. | 2\u00a0hours, 5\u00a0minutes ago Description :Open redirect in pgAdmin 4&#8217;s multi-factor authentication flow. The MFA validate and register endpoints honoured the user-supplied &#8216;next&#8217; query\/form parameter without confirming the target pointed back inside pgAdmin, so an authenticated victim who clicked \/mfa\/validate?next= &#8212; a link typically delivered &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-80766","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=80766"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80766\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=80766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=80766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=80766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}