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

CVE-2026-33503: Ory Kratos has a SQL injection via forged pagination tokens

March 20, 2026

The ListCourierMessages Admin API in Ory Kratos is vulnerable to SQL injection due to flaws in its pagination implementation.

Pagination tokens are encrypted using the secret configured in secrets.pagination. An attacker who knows this secret can craft their own tokens, including malicious tokens that lead to SQL injection. If this configuration value is not set, Kratos falls back to a default pagination encryption secret. Because this default value is publicly known, attackers can generate valid and malicious pagination tokens manually for installations where this secret is not set.

References

  • github.com/advisories/GHSA-hgx2-28f8-6g2r
  • github.com/ory/kratos
  • github.com/ory/kratos/security/advisories/GHSA-hgx2-28f8-6g2r
  • nvd.nist.gov/vuln/detail/CVE-2026-33503

Code Behaviors & Features

Detect and mitigate CVE-2026-33503 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 1.3.1-0.20260320110106-9d7085948039

Fixed versions

  • 1.3.1-0.20260320110106-9d7085948039

Solution

Upgrade to version 1.3.1-0.20260320110106-9d7085948039 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/kratos/CVE-2026-33503.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:21 +0000.