Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 88%

CVE-2026-12049: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in pgadmin.org pgAdmin 4

0
Medium
VulnerabilityCVE-2026-12049cvecve-2026-12049cwe-601
Published: 06/18/2026 (06/18/2026, 23:37:43 UTC)
Source: CVE Database V5
Vendor/Project: pgadmin.org
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected software

GitHub Actionsmore threats →cve
pgAdmin 4
pkg:github/pgAdmin 4
Affected versions
>=6.0 <9.16

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 19:21:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses