TL;DR: ORY v26.2.0 (March 2026) is a critical security release fixing 7 CVEs including SQL injection in pagination tokens (Kratos/Hydra/Keto, High), path traversal bypass in Oathkeeper (Critical), and auth bypass via cache confusion. Beyond security, it brings auto account linking for Google/Apple, CAPTCHA on recovery flows, Go 1.26 compilation, keysetpagination improvements, and heavy internal refactoring. Upgrade is strongly recommended — take a database backup first, run migrations, and review your Oathkeeper forwarding configuration.
The ORY open-source stack (Hydra OAuth2, Kratos identity, Keto permissions, Oathkeeper proxy) jumped from v25.4.0 to v26.2.0 in a single coordinated release on March 20, 2026. This is a substantial jump that bundles months of accumulated fixes, security patches, and infrastructure modernization. Here is a per-component breakdown.
Kratos — Identity & Authentication
Security: SQL Injection in Admin API (CVE-2026-33503)
The ListCourierMessages Admin API was vulnerable to SQL injection through forged pagination tokens. An attacker who knows the pagination secret (or exploits the default fallback) can execute arbitrary SQL queries. Fixed via keysetpagination sanitization.
New Features
- Auto account linking for Google and Apple — new
account_linking_modeon OIDC provider config supportsconfirm_with_existing_credential(default) andautomatic(silent link on matching verified email). Google Workspace accounts are excluded due to domain re-registration risk. - CAPTCHA on recovery and verification flows —
Add captcha strategy for recovery flowandfor verification flownow supported. - Native API support for passkeys —
Add native api flow support for passkeys. - SCIM MySQL support — SCIM provisioning now works with MySQL databases.
- OIDC login+registration speed improvements —
Speed up OIDC login+registration handling. - Multi-region query improvements —
Better multi-region queriesandInfer regional-by-row region using foreign key constraints. - Event generation for SSO/SCIM revisions —
Generate events for SSO and SCIM provider revisions. - Session in all settings hooks —
Add session to all settings hooks payloads. - Improved error reporting —
Surface external ID conflicts in batch identity import. - Auto-send code — when it is the only available method.
- Login with UAE Pass —
Login with uae pass. - Improved tracing — external latency data collection.
Bug Fixes
50+ fixes including: OTP fast-path 2FA body error, recovery code expiry regression, missing indices on identity_id, deadlock when using -parallel 1, null response in OAuth2 flow with existing session, courier not retrying dispatches in one go, duplicate credential error case mismatch, CSRF errors, base64-encoded schemaURL resolution, and correct Apple OIDC client authentication method.
Hydra — OAuth2 & OpenID Connect
Security: SQL Injection via Pagination (CVE-2026-33504)
The listOAuth2Clients, listOAuth2ConsentSessions, and listTrustedOAuth2JwtGrantIssuers Admin APIs were vulnerable to SQL injection through forged pagination tokens. An attacker who knows the pagination or system secret can execute arbitrary SQL queries.
New Features
- Optionally do not store skipped consents — new config option
cf77ed6. - Hydra benchmarking tool —
Add hydra benchmarking tool. - Do not cache pairwise subject algorithm — fix
a341867. - Properly validate policy URI on client creation — fix
44347e7. - Fosite transaction fix — transactions managed by fosite were not working (
3ad64db).
Hydra had no significant feature additions beyond shared infrastructure changes (keysetpagination, Go 1.26, tracing, etc.).
Keto — Permissions (Zanzibar)
Security: SQL Injection via Pagination (CVE-2026-33505)
The GetRelationships API was vulnerable to SQL injection through forged pagination tokens. Fixed identically to the other stack components.
New Features
- Backoffice OPL validation —
Backoffice should validate opl value during new revision update. - Use keysetpagination planner for keto read queries.
- Keto-cli improvements — CLI tool enhancements.
- New documentation — list-api example using subject sets, keto-cat-videos-examples updated to OPL.
Oathkeeper — Identity & Access Proxy
Security: Critical Path Traversal (CVE-2026-33494)
Oathkeeper evaluated access rules against the raw, un-normalized request path. An attacker can use path traversal sequences (/public/../admin/secrets) to bypass authentication rules. Oathkeeper now normalizes request paths before rule matching.
Security: Auth Bypass via Cache Confusion (CVE-2026-33496, High)
The oauth2_introspection authenticator cache did not include the introspection server URL in the cache key. An attacker with a valid token for one introspection server can use the cached result to bypass authentication on rules using a different introspection server. Fixed by scoping cache config key to introspection URL.
Security: Untrusted X-Forwarded-Proto (CVE-2026-33495, Moderate)
Oathkeeper always considered X-Forwarded-Proto during rule matching, even when serve.proxy.trust_forwarded_headers was false. Fixed by only using it when trusted.
Other Changes
- All
X-Forwarded-*headers dropped when untrusted — Previously onlyX-Forwarded,X-Forwarded-Host,X-Forwarded-Protowere removed. - OTEL trace propagation restored — in remote and remote_json authorizers.
- 429 passthrough instead of 401 —
Make 429 passthrough instead return 401. - Clean path matching to prevent traversal.
SCIM Provisioning Overhaul
SCIM (System for Cross-domain Identity Management) received significant investment across the entire v26 cycle. While SCIM itself is an Enterprise License feature, the infrastructure changes touched all four open-source components.
MySQL Support
Before v26.2.0, SCIM provisioning only worked with PostgreSQL and CockroachDB. A new OnConflictDoNothing dialect helper was added to oryx/sqlxx/sqlxx.go that translates PostgreSQL’s ON CONFLICT DO NOTHING to MySQL’s ON DUPLICATE KEY UPDATE syntax. This commit landed identically in Kratos (a34e951), Hydra (10ec9bf), Keto (ccc5141), and Oathkeeper (d717289) — enabling SCIM on MySQL 8+ across the stack.
Splitting SCIM from Multi-Region
SCIM was previously coupled to multi-region CRDB deployments. It was refactored into a standalone module that works with SQLite (for development/testing), single-region CRDB, and standard PostgreSQL. This makes SCIM development, testing, and deployment significantly more accessible (“Split SCIM from multi-region & make it work with SQLite”).
Seamless Existing User Migration
A major quality-of-life improvement: when SCIM provisions a user whose email already exists in the same organization (created through self-service signup, not SCIM), the system no longer returns a conflict error. Instead, the existing identity is automatically linked to the SCIM user and profile information is updated (76d35cf). This was released in v25.4.3 and carried forward into v26.2.0.
SCIM Events & Telemetry
SCIM provider revisions now generate audit events (Generate events for SSO and SCIM provider revisions, da8ec11). Later v26.2.x patches added:
group.created,group.updated,group.deletedevents carryexternalIdanddisplayNameattributes.SCIMGroupUpdatedevents includeSCIMGroupAddedIdentityIDsandSCIMGroupRemovedIdentityIDs.- Group updates no longer rewrite unchanged members, avoiding spurious
IdentityUpdatedevents.
Microsoft Entra Compatibility (v26.2.11)
Microsoft Entra sends a non-standard SCIM payload when removing a single group member — bare op: remove with path: members and a value array — instead of the RFC 7644 value-path filter (members[value eq "..."]). Previously this cleared the entire group. Now the server correctly interprets this as a selective single-member removal.
API Documentation
A comprehensive SCIM API reference was added to the Ory docs (PR #2625), covering base URL format, authentication (single Bearer prefix), service-discovery endpoints, full Users/Groups CRUD with request/response shapes, offset and cursor pagination (RFC 9865), filtering, error models, and a supported-features matrix.
Cross-Cutting Changes (All Components)
These changes apply uniformly across Hydra, Kratos, Keto, and Oathkeeper:
Go 1.26 Compilation
All services were bumped to Go 1.26, triggering a massive cleanup in ory/x. This is a breaking change for anyone building from source — you need Go 1.26 toolchain.
CRDB v25.4
CockroachDB dependency bumped to v25.4.
Keysetpagination Overhaul
- Support for NULL and more column types (
Add support for NULL and more column types to keysetpagination) - Keysetpagination planner for keto read queries
- Keysetpagination improvements across all services
Rename project revision columns
Database Layer
Automatic transaction retries for postgresConsider Go migrations DirHash when restoring full schema from backups- Fixes for
older down migrations,incorrect usage of database/sql,correctly scan SQL NULL into go JSON types Use pgx pool in Kratos OELFix for critical CVE GHSA-p77j-4mvh-x3m3
Observability
Collect external latency data and write to logsImproved tracingintegrationAdd ratelimit buckets to swagger definitions
Internal Refactoring
- Provider pattern implementation (
chore: fully implement provider pattern) - SCIM split from multi-region (
Split SCIM from multi-region & make it work with SQLite) - Deprecated organization APIs
- Internal address types removed
- Unused modules removed (
watcherx/websocket,CRDB changefeed watcherx) simplify consent store(Hydra)ory.shtoory.comdomain migrationfosite and hydra interface enhancements
Dependency & CI Updates
actions/checkoutto v6,upload-artifactto v6/v7- golangci-lint v2.10.1 → v2.11.1
- npm dependency security updates (axios, minimatch, glob, etc.)
- Docker setup-buildx-action v4
- MySQL docker tag v9.6
- Jackson dependency major version update
Upgrade Considerations
1. Database Backups & Migrations
Take a full backup before upgrading. The v26.2.0 release ships several migration fixes (Broken older down migrations, Down migrations in newer MySQL versions). The migrate sql command will run migrations automatically. If you skip versions, ensure you run migrations sequentially.
2. Go Toolchain (if building from source)
Go 1.26 is required. If you use pre-built Docker images, no action needed.
3. Oathkeeper Config Review
Review your serve.proxy.trust_forwarded_headers setting. If you rely on X-Forwarded-* headers downstream but have this disabled, your downstream service will stop receiving them. Enable the config option if needed. Also verify you are not affected by the cache key scoping change — it may invalidate existing introspection caches.
4. Pagination Token Secret
Set a strong pagination_secret in your config. The default fallback was a security risk exploited by the CVEs. Ensure it is explicitly configured.
5. Hydra Consent Store
The Optionally do not store skipped consents feature is opt-in. If you want to reduce database size by not storing skipped consents, enable the relevant config.
6. Kratos Account Linking
If you use Google or Apple sign-in, review the new account_linking_mode setting. The default preserves current behavior; automatic enables silent linking which is convenient but has security implications (trusts the provider’s email verification).
7. Internal API Changes
The organization APIs have been deprecated. If you use the Ory Identities organization management API, plan migration. Internal address types and some watcher modules were removed — if you use the Go SDK directly, check for compilation errors.
8. Docker Images
Updated Docker images are available at:
oryd/hydra:v26.2.0oryd/kratos:v26.2.0oryd/keto:v26.2.0oryd/oathkeeper:v26.2.0
References
- Hydra v26.2.0 Release — GitHub (March 20, 2026) — https://github.com/ory/hydra/releases/tag/v26.2.0
- Kratos v26.2.0 Release — GitHub (March 20, 2026) — https://github.com/ory/kratos/releases/tag/v26.2.0
- Keto v26.2.0 Release — GitHub (March 20, 2026) — https://github.com/ory/keto/releases/tag/v26.2.0
- Oathkeeper v26.2.0 Release — GitHub (March 20, 2026) — https://github.com/ory/oathkeeper/releases/tag/v26.2.0
- Security Advisory: v26.2.0 — Ory Changelog (March 20, 2026) — https://changelog.ory.com/announcements/security-advisory-ory-kratos-hydra-keto-oathkeeper-polis-v26-2-0
- Ory Network v26.2.0 Announcement — Ory Changelog (March 20, 2026) — https://changelog.ory.com/announcements/ory-network-ory-kratos-ory-oathkeeper-ory-elements-v26-2-0-released
- GHSA-hgx2-28f8-6g2r — Kratos SQL injection advisory — https://github.com/ory/kratos/security/advisories/GHSA-hgx2-28f8-6g2r
- GHSA-r9w3-57w2-gch2 — Hydra SQL injection advisory — https://github.com/ory/hydra/security/advisories/GHSA-r9w3-57w2-gch2
- GHSA-c38g-mx2c-9wf2 — Keto SQL injection advisory — https://github.com/ory/keto/security/advisories/GHSA-c38g-mx2c-9wf2
- GHSA-p224-6x5r-fjpm — Oathkeeper path traversal advisory — https://github.com/ory/oathkeeper/security/advisories/GHSA-p224-6x5r-fjpm
- SCIM Provisioning in Ory — Ory Docs (June 18, 2026) — https://www.ory.com/docs/kratos/manage-identities/scim
- SCIM 2.0 API Reference — Ory Docs (PR #2625) — https://github.com/ory/docs/pull/2625
- SCIM: Make SCIM work with MySQL — Commit a34e951 (November 14, 2025) — https://github.com/ory/kratos/commit/a34e9515ad9742cb6dd5f981c248bbed8050a404
- SCIM: Seamlessly migrate existing users — Commit 76d35cf (January 20, 2026) — https://github.com/ory/kratos/commit/76d35cfe1c79346628bcbc4adfe540b6099d2a62
- SCIM: Split from multi-region, SQLite support — Commit 7d6e01d — https://github.com/ory/kratos/commit/7d6e01d60ca515d7abbc2de21be6619c17e32e24
- SCIM: Generate events for revisions — Commit da8ec11 — https://github.com/ory/kratos/commit/da8ec11af3506af8220280727c074cedcdf34f43
- Microsoft Entra SCIM compatibility — Ory Changelog v26.2.11 (May 15, 2026) — https://changelog.ory.com/announcements/ory-network-ory-kratos-v26-2-11-released
- Kratos Identity Credentials — Commit 76d35cf (SCIM migration refactor) — https://github.com/ory/kratos/commit/76d35cfe1c79346628bcbc4adfe540b6099d2a62
This article was written by Opencode (DeepSeek V4 Flash | DeepSeek).


