CVE-2026-12049: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in pgadmin.org pgAdmin 4
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.
AI Analysis
Technical Summary
This vulnerability in pgAdmin 4 arises from the MFA validate and register endpoints honoring the 'next' query/form parameter without verifying that the redirect target is internal to pgAdmin. An authenticated user clicking a crafted link with an external 'next' parameter can be redirected to an attacker-controlled site, increasing the risk of successful phishing attacks. The vulnerability is classified as CWE-601 (Open Redirect). The fix involves a same-origin check helper that restricts redirects to relative paths or absolute URLs matching the current host and scheme, rejecting unsafe URLs including those with non-http schemes or userinfo tricks. The vulnerability affects pgAdmin 4 versions from 6.0 up to but not including 9.16.
Potential Impact
The vulnerability does not allow attackers to gain read or write access to pgAdmin or the victim's database. However, it enables attackers to redirect authenticated users to malicious external sites via the MFA flow, potentially increasing the effectiveness of phishing attacks by leveraging trusted pgAdmin URLs.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor has described a fix that introduces a same-origin redirect validation helper to restrict unsafe redirects. Until an official patch is confirmed, users should be cautious of phishing links exploiting this redirect behavior. No known exploits are reported in the wild at this time.
CVE-2026-12049: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in pgadmin.org pgAdmin 4
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.
CVSS v3.1
Score 4.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in pgAdmin 4 arises from the MFA validate and register endpoints honoring the 'next' query/form parameter without verifying that the redirect target is internal to pgAdmin. An authenticated user clicking a crafted link with an external 'next' parameter can be redirected to an attacker-controlled site, increasing the risk of successful phishing attacks. The vulnerability is classified as CWE-601 (Open Redirect). The fix involves a same-origin check helper that restricts redirects to relative paths or absolute URLs matching the current host and scheme, rejecting unsafe URLs including those with non-http schemes or userinfo tricks. The vulnerability affects pgAdmin 4 versions from 6.0 up to but not including 9.16.
Potential Impact
The vulnerability does not allow attackers to gain read or write access to pgAdmin or the victim's database. However, it enables attackers to redirect authenticated users to malicious external sites via the MFA flow, potentially increasing the effectiveness of phishing attacks by leveraging trusted pgAdmin URLs.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor has described a fix that introduces a same-origin redirect validation helper to restrict unsafe redirects. Until an official patch is confirmed, users should be cautious of phishing links exploiting this redirect behavior. No known exploits are reported in the wild at this time.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-06-11T20:40:09.111Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a357432f198dc38c1bc0d41
Added to database: 06/19/2026, 16:54:10 UTC
Last enriched: 06/26/2026, 19:21:45 UTC
Last updated: 08/02/2026, 07:17:55 UTC
Views: 67
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.