All vulnerabilities

Servers and applications

CVE-2026-82402

Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`

Severity
Medium 5.3
Published
22 Sept 2026
Last changed
20 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
0.15.0+dev
Exploit chance
0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Open redirect (CWE-601)
Attack
Over the network · No login needed · Needs someone to view a page or file
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Also known as
GHSA-3g28-2vwg-gxq6
Sources
CVE Program, Project advisories (GitHub)

Description

The /redirect endpoint can be abused to redirect users to an arbitrary external domain without any authentication. >

IsSameSite in internal/urlx/urlx.go normalizes backslashes to forward slashes internally when validating the URL, but returns only a boolean — the caller in getRedirect then uses the original>

Input %5Cevil.com decodes to \evil.com. The normalizer converts it to /evil.com (passes both checks), but \evil.com is what lands in the Location header. All major browsers (Chrome, Firefox)

Step 2 — Confirm browser normalization (WHATWG URL Standard):

An attacker with no account can distribute links that appear to originate from a trusted Gogs instance but redirect to an attacker-controlled page. The most realistic attack scenario is credential >

From gogs/gogs's security advisory.

Affected software

SoftwareAffected versions
GogsServers and applications · cna:gogs|gogs
  • Every version before 0.15.0+dev
GogsServers and applications · github:gogs/gogs
  • Version 0.15.0+dev

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References