Skip to content
Heist/ feed
Back to feed
High

Ory Kratos has a SQL injection via forged pagination tokens

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-33503
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 19:26 UTC · Revision 1

Source evidence

Ory Kratos has a SQL injection via forged pagination tokens

core-osv · Original source

Published 26 Mar 2026, 17:32 UTC

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.

osv:CVE-2026-33503
Complete source record
{
  "id": "a5a467b9f269c0489f4239694457f63a277c293987ada428684a377d41a54211",
  "url": "https://osv.dev/vulnerability/CVE-2026-33503",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Ory Kratos has a SQL injection via forged pagination tokens",
    "summary": "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.",
    "evidence": "osv:CVE-2026-33503",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-33503",
      "aliases": [
        "CVE-2026-33503",
        "GHSA-hgx2-28f8-6g2r",
        "GO-2026-4801"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ory/kratos",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9d7085948039ffb8960160d4979f71527b5cf4d5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "26.2.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:ory:kratos:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "26.2.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v25.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.0",
            "v0.13.0",
            "v0.11.1",
            "v0.11.0",
            "v0.11.0-alpha.0.pre.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.0-alpha.3",
            "v0.9.0-alpha.2",
            "v0.9.0-alpha.1",
            "v0.8.3-alpha.1.pre.0",
            "v0.8.2-alpha.1",
            "v0.8.1-alpha.1",
            "v0.8.0-alpha.4.pre.0",
            "v0.8.0-alpha.3",
            "v0.8.0-alpha.2",
            "v0.8.0-alpha.1",
            "v0.7.6-alpha.1",
            "v0.7.5-alpha.1",
            "v0.7.4-alpha.1",
            "v0.7.3-alpha.1",
            "v0.7.1-alpha.1",
            "v0.7.0-alpha.1",
            "v0.6.3-alpha.1",
            "v0.6.2-alpha.1",
            "v0.6.1-alpha.1",
            "v0.6.0-alpha.2",
            "v0.6.0-alpha.1",
            "v0.5.5-alpha.1",
            "v0.5.4-alpha.1",
            "v0.5.3-alpha.1",
            "v0.5.2-alpha.1",
            "v0.5.1-alpha.1",
            "v0.5.0-alpha.1",
            "v0.4.6-alpha.1",
            "v0.4.5-alpha.1",
            "v0.4.4-alpha.1",
            "v0.4.3-alpha.1",
            "v0.4.2-alpha.1",
            "v0.4.0-alpha.1",
            "v0.3.0-alpha.1",
            "v0.2.1-alpha.1",
            "v0.2.0-alpha.2",
            "v0.1.1-alpha.1",
            "v0.1.0-alpha.6",
            "v0.1.0-alpha.5",
            "v0.1.0-alpha.4",
            "v0.1.0-alpha.3",
            "v0.1.0-alpha.2",
            "v0.1.0-alpha.1",
            "v0.0.3-alpha.15",
            "v0.0.3-alpha.14",
            "v0.0.3-alpha.13",
            "v0.0.3-alpha.12",
            "v0.0.3-alpha.11",
            "v0.0.3-alpha.10",
            "v0.0.3-alpha.9",
            "v0.0.3-alpha.8+oryOS.15",
            "v0.0.3-alpha.7",
            "v0.0.3-alpha.5",
            "v0.0.3-alpha.4",
            "v0.0.3-alpha.3",
            "v0.0.3-alpha.2",
            "v0.0.3-alpha.1",
            "v0.0.1-alpha.9",
            "v0.0.1-alpha.11",
            "v0.0.1-alpha.10+oryOS.15",
            "v0.0.2-alpha.1",
            "v0.0.1-alpha.8",
            "v0.0.1-alpha.7",
            "v0.0.1-alpha.6",
            "v0.0.1-alpha.5",
            "v0.0.1-alpha.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33503.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.677207197Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33503.json",
        "https://github.com/ory/kratos/security/advisories/GHSA-hgx2-28f8-6g2r",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-33503"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33503.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-33503",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489119,
  "published_at": "2026-03-26T17:32:16.304+00:00"
}