Skip to content
OpenAdvisories
High · 7.2 CVE-2026-33503 EUVD-2026-20069GHSA-hgx2-28f8-6g2rGO-2026-4801

Ory Kratos has a SQL injection via forged pagination tokens

Published Mar 26, 2026 · Updated Apr 1, 2026 · Assigned by GitHub_M

Description

Ory Kratos is an identity, user management and authentication system for cloud services. Prior to version 26.2.0, 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. As a first line of defense, immediately configure a custom value for `secrets.pagination` by generating a cryptographically secure random secret. Next, upgrade Kratos** to a fixed version, 26.2.0 or later, as soon as possible.

Affected products

VendorProductAffectedFixed
ory kratos < 26.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260326T203309-150000.1.155.2 SUSE-SU-2026:1135-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ory/kratos < 1.3.1-0.20260320110106-9d7085948039 1.3.1-0.20260320110106-9d7085948039 GHSA-hgx2-28f8-6g2r

Advisories 2

References