Skip to main content

pgAdmin 4 EUVDEUVD-2026-37969

| CVE-2026-12049 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-06-18 PostgreSQL GHSA-7r93-vp6c-cw5m
5.3
CVSS 4.0 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft pgAdmin MFA URL with external 'next' parameter
  2. Delivery
    Deliver URL to target admin via phishing email
  3. Exploit
    Victim authenticates and follows crafted MFA link
  4. Execution
    pgAdmin issues 302 redirect to attacker-controlled host
  5. Impact
    Victim presented with credential-harvesting page

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to be a pgAdmin 4 user who is either mid-MFA-flow (between password submission and MFA completion) or otherwise directed to access the /mfa/validate or MFA registration endpoint with a crafted 'next' parameter. pgAdmin must be deployed in SERVER_MODE (multi-user web deployment) for the MFA routes to be registered - the test harness explicitly sets SERVER_MODE=True to exercise the vulnerable endpoints, confirming this is a server-mode-only condition. The attacker requires no pgAdmin credentials or session (CVSS PR:N). Exploitation is limited by the requirement for passive user interaction: the victim must follow the attacker-crafted pgAdmin URL (CVSS UI:P). Non-default MFA enablement is implicitly required, since the vulnerable endpoints only exist when MFA is configured. The attack yields no direct access to pgAdmin or the database - impact is limited to off-site phishing facilitation.

Impact

The CVSS 4.0 base score of 5.3 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N) correctly reflects a medium-severity, phishing-facilitation flaw with no direct data exfiltration or system compromise. The attack vector is network (AV:N) with low complexity (AC:L), but passive user interaction (UI:P) is required, meaning the victim must click or be directed to a crafted pgAdmin MFA URL. Crucially, the vendor's description confirms this is a trusted-domain redirect laundering issue - the attacker gains no pgAdmin session access, no database read/write capability, and no privilege escalation. Real-world risk is therefore bounded by the attacker's ability to deliver convincing phishing targeting pgAdmin users specifically during or after their MFA session. EPSS data was not provided in available intelligence, and the CVE is not listed in CISA KEV, making broad automated exploitation unlikely. The reporter PoC is confirmed by vendor regression tests, elevating confidence in exploitability but not exploitation status. The primary risk is credential-phishing follow-on against high-value database administrators who trust the pgAdmin domain.

Exploit ScenarioDerived

An attacker identifies a pgAdmin administrator and sends a phishing email containing a link to the target's own pgAdmin instance - e.g., https://pgadmin.corp.internal/mfa/validate?next=https://attacker.example/pgadmin-login - framed as a security notification requiring MFA re-validation. When the administrator clicks the link while authenticated, pgAdmin's MFA validate endpoint processes the 'next' parameter and issues a 302 redirect to the attacker's site, which presents a credential-harvesting page styled like pgAdmin or the organization's SSO portal. The reporter-confirmed PoC demonstrates this exact flow, and the upstream regression test suite validates that attacker.example must not appear in the resulting Location header.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

Open redirect in pgAdmin 4's MFA validate and register endpoints allows network-accessible attackers to abuse the authentication flow as a phishing launchpad. Affected versions 6.0 through 9.15 pass the user-supplied 'next' query and form parameter directly to Flask's redirect response without verifying the target is same-origin, meaning a crafted URL such as /mfa/validate?next=https://attacker.example/fake-login silently forwards the victim from a trusted pgAdmin URL to an attacker-controlled site. No public exploit is identified at time of analysis and this CVE is not listed in CISA KEV; however, a reporter-supplied PoC was confirmed by the vendor and is documented in the upstream regression test suite.

RemediationAI

Upgrade pgAdmin 4 to version 9.16 or later, which introduces the _is_safe_redirect_url same-origin validation helper gating all 'next' parameter consumption in the MFA flow. The fix commit is available at https://github.com/pgadmin-org/pgadmin4/commit/fff6a481854b07822c2b54e8181e6a9076d204cd. If immediate upgrade is not possible, a targeted workaround is to deploy a reverse-proxy or WAF rule that strips or rejects any 'next' query parameter on requests to the /mfa/validate and /mfa/register endpoints; this eliminates the attack surface entirely but may break legitimate post-MFA redirects within the application if your deployment relies on that parameter. Disabling MFA enrollment entirely (if operationally feasible) would also eliminate the vulnerable endpoints, though this trades one risk for another. There is no indication that restricting network access to pgAdmin mitigates this issue beyond reducing phishing-link delivery opportunity, since the attacker requires no server-side access.

Affected VersionsENISA

pgAdmin 4 6.0 <9.16

Affected Packages

euvd pgadmin_4 fix: 9.16

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pgAdmin 4 (CPE: cpe:2.3:a:pgadmin.org:pgadmin_4:*:*:*:*:*:*:*:*) is a Python/Flask web application for administering PostgreSQL databases. Its multi-factor authentication flow is implemented in web/pgadmin/authenticate/mfa/views.py, where two endpoints - mfa.validate and the MFA registration handler - previously consumed the 'next' parameter from request.args or form data without origin checking. The root cause is CWE-601 (URL Redirection to Untrusted Site): the application trusted user-controlled input to define redirect destinations. The fix introduces a _is_safe_redirect_url() helper built on Python's urllib.parse.urlparse and urljoin, which enforces that redirect targets must either be relative paths or absolute URLs whose scheme is http/https and whose netloc matches the current request host. Backslash variants (e.g., /\attacker.example) are also explicitly rejected to prevent browser normalization bypasses. The same-origin gate is now applied at every point in the validate and registration views where 'next' is consumed, with fallback to the internal browser index on failure.

Know when Open Redirect gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 5.3 MEDIUM
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
vuln.today AI 4.3 MEDIUM

Attacker needs no privileges (PR:N); victim must click crafted link (UI:R); impact is limited to unauthorized redirect integrity violation with no confidentiality or availability consequence.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Red Hat 3.5 LOW

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 19, 2026 - 00:22 NVD
4.3 (MEDIUM) 5.3 (MEDIUM)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2024-52875 HIGH POC
8.8 Jan 31

GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of

CVE-2016-5385 HIGH POC
8.1 Jul 19

PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect

CVE-2013-2248 MEDIUM POC
5.8 Jul 20

Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2012-6499 MEDIUM POC
5.8 Jan 12

Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows

CVE-2015-2863 MEDIUM POC
4.3 Jul 20

Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b

CVE-2017-3528 MEDIUM POC
5.4 Apr 24

Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li

CVE-2012-0518 MEDIUM
4.7 Oct 16

Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3

CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2015-5354 MEDIUM POC
5.8 Jul 01

Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites

CVE-2015-5461 MEDIUM POC
6.4 Jul 08

Open redirect vulnerability in the Redirect function in stageshow_redirect.php in the StageShow plugin before 5.0.9 for

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Python 3 15 SP7 Not-Affected
SUSE Linux Enterprise Server 15 SP7 Not-Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy