{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-12049","published":"2026-06-19T00:16:47.367000Z","last_modified":"2026-10-26T11:10:00.157000Z","status":"Analyzed","cvss":{"version":"4.0","score":5.3,"severity":"MEDIUM","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","primary":false},"auth":false,"cwes":["CWE-601"],"cpes":[{"criteria":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*","part":"a","vendor":"pgadmin","product":"pgadmin_4","version_start_including":"6.0","version_end_excluding":"9.16"}],"cpes_truncated":false,"vendors":["pgadmin"],"products":["pgadmin/pgadmin_4"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-12049/","html_en":"/en/cve/CVE-2026-12049/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-12049","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-12049"},"untrusted":{"vendor_name":"Pgadmin","product_name":"Pgadmin 4","desc_en":"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.\n\nThe 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.\n\nFix 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.\n\nThis issue affects pgAdmin 4: from 6.0 before 9.16.","affected":[{"untrusted_vendor":"pgadmin.org","untrusted_product":"pgAdmin 4","versions":[]}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/commit/fff6a481854b07822c2b54e8181e6a9076d204cd","tags":["Patch"]},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/10028","tags":["Issue Tracking","Patch"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:11508-1","url":"https://www.suse.com/support/update/","published":"2026-08-13T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"pgadmin4-9.17-1.1 on GA media"}}]}