CVE-2020-15233: OAuth2 Redirect URL validity does not respect query parameters and character casing for loopback addresses in github.com/ory/fosite

github.com/ory/fosite Updated 02 Oct 2025

Summary

24/05/2021
Yes i
Moderate
5.5

CVE-2020-15233: Impact fosite#400 (released as v0.30.2) introduced a new feature for handling redirect URLs pointing to loopback interfaces (rfc8252#section-7.3). Affects github.com/ory/fosite versions >= 0.30.3, < 0.34.1. Fixed in 0.34.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

github.com/ory/fosite is a Go package that provides a secure and flexible OAuth2 server implementation. It allows developers to easily integrate OAuth2 authentication and authorization into their applications. The package is widely used in various Go projects and provides essential functionality for handling OAuth2 flows.

Vulnerability Detail

The vulnerability (CVE-2020-15233) in github.com/ory/fosite affects the handling of redirect URLs pointing to loopback interfaces. The issue arises from a new feature introduced in version 0.30.2, which fails to respect query parameters and character casing for loopback addresses. This means that an attacker who has control over the loopback interface can manipulate the redirect URL and potentially bypass security measures. For example, an attacker could register a client with a redirect URL of 'http://127.0.0.1/callback' and include additional query parameters. When the OAuth2 flow is performed and the redirect URL is requested, the browser is redirected to the manipulated URL without any error, potentially leading to a successful OAuth2 response. This vulnerability only affects scenarios where the attacker has control over the loopback interface where the OAuth2 flow is being executed.

How To Fix

Latest published version: v0.49.0 as of 23 Oct 2026

go get github.com/ory/fosite@v0.49.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.34.1

This is the first release that contains the fix.

go get github.com/ory/fosite@v0.34.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of github.com/ory/fosite as soon as possible.

Conclusion

The vulnerability in github.com/ory/fosite (CVE-2020-15233) allows for the manipulation of redirect URLs pointing to loopback interfaces, potentially bypassing security measures. Developers should upgrade to version 0.34.1 or later to fix this vulnerability. It is important to apply the fix to prevent any potential exploitation. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for github.com/ory/fosite →

Share this vulnerability

FAQ

The vulnerability allows an attacker to manipulate redirect URLs pointing to loopback interfaces, potentially bypassing security measures and obtaining unauthorized access to OAuth2 resources.

No, this vulnerability only affects loopback interfaces such as 'localhost', '127.0.0.1', and '[::1]'. Other loopback interfaces are not affected.

No, this vulnerability requires the attacker to have control over the loopback interface where the OAuth2 flow is being executed. Remote exploitation is not possible.

There are no known instances of this vulnerability being exploited in the wild. However, it is still important to apply the fix to prevent any potential exploitation.

If you suspect that your application is affected by this vulnerability, you can use Vulert's playground (https://vulert.com/scanner) to check if your application is vulnerable. Vulert monitors and alerts in real-time for open-source vulnerabilities, providing valuable insights without requiring access to the code or installation.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/ory/fosite.

How To Fix

Latest published version: v0.49.0 as of 23 Oct 2026

go get github.com/ory/fosite@v0.49.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.34.1

This is the first release that contains the fix.

go get github.com/ory/fosite@v0.34.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback