CVE-2019-8400: ORY Hydra Reflected XSS via error_hint Parameter

github.com/ory/hydra Updated 26 Mar 2026

Summary

14/05/2022
Yes i
Moderate
6.1

CVE-2019-8400: Hydra has Reflected XSS via error_hint parameter. Affects github.com/ory/hydra versions < 1.4.8. Fixed in 1.4.8. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ORY Hydra is an open-source OAuth2 and OpenID Connect server designed to manage user authentication and authorization. It provides a secure way to handle user identities and access tokens, making it a crucial component for applications that require user login and data protection. However, prior to version 1.0.0-rc.3+oryOS.9, Hydra was susceptible to a reflected cross-site scripting (XSS) vulnerability, which could be exploited through the error_hint parameter in specific error responses.

Vulnerability Detail

The vulnerability, identified as CVE-2019-8400, arises from the improper handling of the error_hint parameter in the oauth2/fallbacks/error endpoint. Attackers can exploit this flaw by crafting a malicious URL that includes a payload in the error_hint parameter. When a user clicks on this URL, the payload is reflected back in the response, leading to potential execution of arbitrary JavaScript code in the user's browser. This could result in session hijacking, data theft, or other malicious actions, posing a significant risk to users and their data.

How To Fix

Latest published version: v1.11.10 as of 23 Oct 2026

go get github.com/ory/hydra@v1.11.10

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

If you need the minimum change

1.4.8

This is the first release that contains the fix.

go get github.com/ory/hydra@v1.4.8

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

Workaround

If immediate upgrading is not feasible, consider implementing input validation and sanitization on the error_hint parameter to prevent malicious scripts from being executed. Additionally, you can configure your application to handle error messages in a way that does not expose sensitive information.

Conclusion

CVE-2019-8400 is a significant reflected XSS vulnerability in ORY Hydra that can compromise user security. It is crucial to update to version 1.4.8 or later to protect against potential exploits. For those unable to upgrade immediately, implementing workarounds can help mitigate risks.

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

Share this vulnerability

FAQ

CVE-2019-8400 is a vulnerability in ORY Hydra that allows for reflected cross-site scripting (XSS) through the error_hint parameter.

Exploitation of this vulnerability can lead to session hijacking, data theft, and other malicious actions against users of your application.

Versions of ORY Hydra prior to 1.4.8 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. By checking your Gopkg.lock file, you can determine if your application is affected by CVE-2019-8400.

Implement input validation and sanitization for the error_hint parameter, and consider alternative error handling methods to minimize exposure.

Related vulnerabilities

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

How To Fix

Latest published version: v1.11.10 as of 23 Oct 2026

go get github.com/ory/hydra@v1.11.10

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

If you need the minimum change

1.4.8

This is the first release that contains the fix.

go get github.com/ory/hydra@v1.4.8

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