CVE-2020-15223: Improper Handling of Exceptional Conditions in Ory Fosite

github.com/ory/fosite Updated 02 Oct 2025

Summary

24/05/2021
Yes i
High
8.0

CVE-2020-15223: Ory fosite contains Improper Handling of Exceptional Conditions. Affects github.com/ory/fosite versions < 0.34.0. Fixed in 0.34.0. 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

Ory Fosite is a Go package that provides a security framework for building OAuth2 and OpenID Connect servers. It offers various features and functionalities to handle authentication and authorization processes. The package is widely used in Go applications to implement secure authentication mechanisms.

Vulnerability Detail

The TokenRevocationHandler in Ory Fosite has a vulnerability that leads to improper handling of exceptional conditions. Specifically, the handler ignores errors coming from the storage, which can result in unexpected 200 status codes indicating successful token revocation while the token is still valid. This vulnerability can be exploited by an attacker if they can trigger errors in the storage. According to RFC 7009, a 503 HTTP code should be returned when the server encounters a problem, but this is not properly implemented in 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.0

This is the first release that contains the fix.

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

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

Workaround

There is no specific workaround provided for this vulnerability. It is recommended to update to the latest version of Ory Fosite to mitigate the issue.

Conclusion

The vulnerability in Ory Fosite's TokenRevocationHandler can result in improper handling of exceptional conditions, leading to unexpected successful token revocation. It is crucial to update to the latest version of Ory Fosite (0.34.0 or higher) to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

Ory Fosite is a Go package used for building OAuth2 and OpenID Connect servers. It provides a security framework for handling authentication and authorization processes.

The vulnerability in Ory Fosite can lead to unexpected 200 status codes indicating successful token revocation while the token is still valid. This can be exploited by an attacker depending on their ability to trigger errors in the storage.

To fix this vulnerability, update your Ory Fosite package to version 0.34.0 or higher.

No specific workaround is provided for this vulnerability. Updating to the latest version is the recommended solution.

You can find more information about this vulnerability in the CVE-2020-15223 advisory and the Ory Fosite documentation.

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.0

This is the first release that contains the fix.

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

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