Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ory/hydra
  4. ›
  5. CVE-2026-33504

CVE-2026-33504: Ory Hydra has a SQL injection via forged pagination tokens

March 20, 2026

Following Admin APIs in Ory Hydra are vulnerable to SQL injection due to flaws in its pagination implementation:

  • listOAuth2Clients
  • listOAuth2ConsentSessions
  • listTrustedOAuth2JwtGrantIssuers

Pagination tokens are encrypted using the secret configured in secrets.pagination. If this value is not set, Hydra falls back to using secrets.system. An attacker who knows this secret can craft their own tokens, including malicious tokens that lead to SQL injection.

References

  • github.com/advisories/GHSA-r9w3-57w2-gch2
  • github.com/ory/hydra
  • github.com/ory/hydra/security/advisories/GHSA-r9w3-57w2-gch2
  • nvd.nist.gov/vuln/detail/CVE-2026-33504

Code Behaviors & Features

Detect and mitigate CVE-2026-33504 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.1-0.20260320110106-0b84568fffcc

Fixed versions

  • 2.3.1-0.20260320110106-0b84568fffcc

Solution

Upgrade to version 2.3.1-0.20260320110106-0b84568fffcc or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

go/github.com/ory/hydra/CVE-2026-33504.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:45 +0000.