CVE-2026-42195 Unvalidated gitlab URL parameter redirects OAuth authorize step to attacker-controlled host

Low 3.4 Published Updated

Attackers can redirect OAuth authorization to malicious hosts via a URL parameter, enabling credential phishing and token theft in draw.io.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-42195?

CVE-2026-42195 is a low-severity vulnerability in jgraph drawio, published on 8 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

draw.io is a configurable diagramming and whiteboarding application. Prior to version 29.7.9, the draw.io client accepts a ?gitlab= URL parameter that overrides the GitLab server URL used during OAuth sign-in. A crafted link causes the user's click on draw.io's "Authorize in GitLab" dialog to open a popup on the attacker-controlled host instead of gitlab.com. This can lead to credential fishing and session state token exfiltration. This issue has been patched in version 29.7.9.

Weakness: CWE-601, CWE-200

Which versions are affected by CVE-2026-42195?

How do I fix CVE-2026-42195?

No fix has been published for CVE-2026-42195 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-42195 being exploited?

There is no known exploitation of CVE-2026-42195 in the wild and no public exploit code.

Sources

Also known as GHSA-8x7j-m8px-7p8x.

Is CVE-2026-42195 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free