Repository navigation
Releases
2.5.0
Adds human approval for agent actions: an AI agent can ask a user to approve
one specific action (OpenID CIBA, poll mode, beta, off by default) and gets
a short-lived token bound to exactly that action. Also makes single-use checks
atomic on DynamoDB and Cassandra/ScyllaDB, fixes a logout CSRF, and removes the
deprecated stdio authorizer mcp subcommand. Read the Upgrade notes if you run
authorizer mcp.
Security
- Single-use checks were not atomic on DynamoDB and Cassandra/ScyllaDB without Redis (#957). On those databases the database memory store's "claim once" was an upsert, so concurrent requests could all succeed. This weakened replay protection for SAML assertion IDs, RFC 7523 client-assertion
jtiand TOTP codes. Claims now use a conditional write (attribute_not_existson DynamoDB,INSERT … IF NOT EXISTSon Cassandra/ScyllaDB). Other databases were already atomic, and Redis deployments are unaffected. - Logout CSRF (#956, low).
GET /logoutskipped the confirmation page for any validly signedid_token_hint, so a page embedding/logout?id_token_hint=<the attacker's own ID token>signed out every visitor. The hint'ssubmust now match the signed-in user; otherwise the confirmation page is shown.
Added
- Human approval for agent actions: OpenID CIBA, poll mode (beta) (#953, #954, #955, #958). Guide: Human Approval for Agent Actions.
- Endpoints:
POST /oauth/bc-authorizestarts a request, naming the user (login_hintorid_token_hint), abinding_message, the API (resource, RFC 8707) and optionalauthorization_details(RFC 9396). The agent polls/oauth/tokenwithgrant_type=urn:openid:params:grant-type:ciba. The user decides onGET/POST /oauth/bc-approve. - Opt-in:
--enable-cibaon the server, plusbackchannel_token_delivery_mode: "poll"on each client (GraphQL, REST and gRPC admin APIs, and the dashboard's Human approval (CIBA) toggle). Only service accounts whose allowed scopes includeopenidqualify. - Reaching the user: an email (new CIBA approval request template) and the
user.approval_requestedwebhook, which carries the approval link. - Approving: only on Authorizer's own page, in the user's own browser session. The sign-in must be recent (
--ciba-step-up-max-age, default 300 s) and not a magic link. A user with no session signs in through the login page and comes back. - What the agent gets: a delegated access token (
act.sub= the agent) bound to that one API, carrying the approvedauthorization_detailsand acibaclaim. It is valid for 5 minutes and can be redeemed once. There is no refresh token, and the token can neither be used at Authorizer itself nor exchanged for an unbound one. - Limits and abuse resistance:
- Per-agent and per-user caps (
--ciba-max-requests-per-user,--ciba-max-requests-per-user-total) and a per-client rate limit. - Deny blocks the agent for an hour; deny and block, for 24 hours.
- Organization-scoped agents can reach only members of their organization.
- Unknown, revoked, blocked or capped users get an identical, never-approvable response, so the endpoint doesn't reveal which users exist.
- Per-agent and per-user caps (
- Other flags:
--ciba-request-ttl(1–600 s, default 300),--ciba-poll-interval(2–60 s, default 5) and--ciba-authorization-details-types. The server needs anhttps--url(http is allowed on a loopback host). Redis is not required on any database. - Observability:
- Audit events
ciba.requested,ciba.approved,ciba.denied,ciba.blocked,ciba.expiredandciba.token_issued; the dashboard's audit filters include them. - Metrics
authorizer_ciba_outcomes_total{client_id,outcome}(alert on the per-agent deny rate) andauthorizer_ciba_time_to_decision_seconds. - Discovery metadata
backchannel_authentication_endpoint,backchannel_token_delivery_modes_supportedand the CIBA grant type.
- Audit events
- Endpoints:
- Release coverage: a CIBA smoke test, and an e2e-playground test of the full approval journey through the real login page, served over TLS.
Changed
- Token exchange (RFC 8693) refuses a subject token that is bound to an approved action (
cibaorauthorization_detailsclaim). - The MCP bridge forwards only the calling request's own
Authorizationheader. The process-wide fallback credential is gone with the stdio subcommand. - Dependency updates: AWS SDK (DynamoDB), go-redis 9.24, modernc SQLite, web app and dashboard packages, CodeQL action (#947–#951).
Removed
- The stdio
authorizer mcpsubcommand, and its flags--mcp-bearerand--mcp-authorizer-url(#959). It was deprecated in 2.4.0. It ran a second copy of every provider and served one user per process, so it could not be deployed. MCP is served atPOST <url>/mcpwith--mcp-enabled. Theauthorizerbinary now has no subcommands.
Upgrade notes
- If you run
authorizer mcp: start the server with--mcp-enabledinstead and point your MCP host at<url>/mcp(see MCP). GET /logoutwith anid_token_hintfor a different user than the one signed in now shows the confirmation page instead of logging out. Relying parties that send their own user's hint are unaffected.- CIBA is off by default. To try it, enable
--enable-ciba, configure SMTP or auser.approval_requestedwebhook, and opt in a service account. - SDKs:
- CIBA helpers ship in authorizer-js 4.2.0 (
requireApproval,checkApprovedAction) and authorizer-py 0.5.0 (require_approval,check_approved_action). Go v2.4.0 and both of those releases addbackchannel_token_delivery_modeto the admin client methods. - Over GraphQL, those client methods need this server. Older SDKs keep working against it.
- CIBA helpers ship in authorizer-js 4.2.0 (
2.4.10
Adds time-limited fine-grained authorization grants: OpenFGA conditions now
work end to end, with the server's own clock deciding when a grant expires.
Also stops an AI agent from granting itself access through contextual tuples,
and patches OS-package CVEs in the Docker image. Read the Upgrade notes: a
delegated (agent) token can no longer send contextual tuples.
Security
- An agent could grant itself access with a contextual tuple (#945). A delegated (RFC 8693) token could attach a contextual tuple naming itself on the relation being checked, and
check_permissions(including the MCPcheck_permissionstool) answeredallowed: true. An agent using that answer as a "check before acting" guardrail could be talked past it. Contextual tuples from a delegated token are now rejected with a permission error on GraphQL, REST, gRPC and MCP. Users, service accounts and super-admins keep them. - Docker image OS-package CVEs (#944): libssl3/libcrypto3 3.5.9-r1 (CVE-2026-95691, CVE-2026-95692, CVE-2026-107496, CVE-2026-88822, CVE-2026-88823) and musl 1.2.6-r6 (CVE-2026-107891).
Added
- Conditional (time-limited) FGA grants (#945). Models could declare OpenFGA
conditions before, but tuples could not carry one, so a conditional grant errored on every check._fga_write_tuples/AuthorizerAdminService.FgaWriteTuples/POST /v1/admin/fga/tuplesaccept acondition { name, context }on each tuple;_fga_read_tuplesreturns it (nullfor a plain tuple). Delete byuser,relationandobject.- The server supplies
current_time(its own clock, UTC) on every check, list and lookup, includinglist_permissions,required_relationsand the SAML and org-role lookups. Callers cannot set it, and it cannot be stored on a tuple. check_permissionsaccepts an optionalcontext, from a super-admin only (never through a delegated token, and nevercurrent_time). Stored tuple parameters take precedence over it.- Dashboard: the Tuples page shows each grant's condition ("Expires …" / "Expired …") and can add a grant that expires after 10 minutes to 30 days. The model page adds an AI agents (time-limited & task-scoped) example.
- MCP: the
check_permissionstool schema describescontextas a plain JSON object.
- Release smoke coverage for conditional grants on GraphQL, REST, gRPC and MCP with a real delegated token, and for the 2.4.7–2.4.9 fixes (#945, #943, #942). CI now boots
docker-compose.yamland checks persistence on every Dockerfile or compose change (#939).
Changed
- README Docker quick start (#941): one verified
docker runcommand. The image runs as UID 1000 and owns/authorizer/data, so a named volume needs no-u root; the stale UID 65532 advice and the removed--target final-rootbuild are gone. - The README's ZopDay button pulls the one-click image from Docker Hub (#940).
ROADMAP_V2.mdmarks the shipped MCP, agent, SAML, SCIM, passkey and M2M work (#937).
Upgrade notes
- Delegated tokens can no longer send contextual tuples to
check_permissions(PermissionDenied). Pass request-time facts from your trusted backend with its own credentials instead. - Every condition parameter except
current_timemust be stored on the tuple. A write that leaves one out is rejected, because most evaluation paths can only supplycurrent_time. - A model whose condition declares
current_timewith a type other thantimestampis rejected when written. - SDKs: reading tuple conditions over GraphQL needs this server. SDK releases with condition support follow this release; older SDKs keep working against it.
2.4.9
Fixes an authentication bypass that let anyone sign in as an account whose
email or phone was not yet verified, without its password. Also fixes several
role, MFA and magic-link bugs, stops raw database and infrastructure errors
from reaching API clients, and makes the Docker Compose file work with v2.
Upgrading is strongly recommended for every 2.4.x deployment. Read the
Upgrade notes at the end of this section first: a few behaviours change on
purpose.
Security
- Authentication bypass: a wrong password could sign in to an unverified account (GHSA-rpv7-grw6-r2jv, high). When MFA was enabled (the default) and the account's email or phone was still unverified,
loginarmed an MFA session before checking the password. That session was accepted byskip_mfa_setup, which then issued full tokens; with the same session a caller could also lock the victim's MFA withlock_mfa, enroll TOTP (getting the secret), add email/SMS OTP authenticators, or start passkey registration. These pre-password sessions are now only redeemable byverify_otpwith the code that was just sent. The same fix covers phone signup with--enable-phone-verification, whereskip_mfa_setupcould issue tokens before the phone was verified. Affected 2.4.0-rc.1 through 2.4.8.
Added
- Sort and filter the admin users list (#927, #112).
_users/AuthorizerAdminService.Users/POST /v1/admin/usersacceptemail_verified(filter) andcreated_at_order(ASC/DESC, defaultDESC);pagination.totalcounts the filtered set. The dashboard Users page has matching controls. Additive: existing clients are unaffected. - The admin dashboard uses
--organization-name/--organization-logoon its login page and sidebar, like the/applogin UI (#931, #444). - One-click deploy image for v2,
ghcr.io/authorizerdev/authorizer-oneclick: maps environment variables to v2's CLI flags so image-only deploy buttons (ZopDay) can start a v2 server. The README's ZopDay button now uses it (#935; thanks@muskanbandta23for #929).
Fixed
- Roles removed from
--roleswere still granted (#922, #425). Roles are now filtered against--roles∪--protected-roles∪--default-roleswherever they grant access: token issuance, login, session,validate_session,validate_jwt_tokenand the refresh grant. Stored user records are left as they are, so adding a role back restores it. Role flags are also trimmed, so--default-roles "user, member"no longer dropsmember. - Roles requested at login were lost when MFA interrupted the login (#925, #301). They are now carried server-side across
verify_otp,skip_mfa_setup, MFA enrolment and the passkey second factor, and checked against the user again when the MFA step completes. - Raw database and infrastructure errors reached API clients (#924, #932, #356). Errors from storage, the memory store (Redis/in-memory/DB), OpenFGA's datastore, token signing, email/SMS providers and the JWKS endpoint are now returned as
internal server error (error_id: …)on GraphQL, gRPC, REST, MCP and the HTTP handlers, and logged server-side under the sameerror_id. Deliberate user-facing messages are unchanged. Losing a creation race (invite, organization, membership) now returns409 AlreadyExistsinstead of a500; revoking an already-revoked session returns "token not found" instead of a masked500. - Distributed rate limiting never used Redis (#932). A type check that could never match meant every replica enforced its own in-memory limit even with
--redis-urlset. The rate limiter now shares the memory store's Redis client. - Asking for a password reset (or magic link, or invite) twice failed on MongoDB and ArangoDB (#928, #273) with a raw duplicate-key error, and Cassandra, DynamoDB and Couchbase kept both pending requests. A new request now replaces the previous one on every backend.
- Duplicate emails were possible on ArangoDB, DynamoDB, Cassandra and Couchbase when the user also had a phone number (#933);
AddUsernow checks email and phone independently on every backend. - Magic links (#934, surfaced by #406): the
codethat/verify_emailreturns for an/authorize+ PKCE flow can now be exchanged at/oauth/token. It is issued only when the link is opened in the browser that started/authorizeand the redirect matches the one/authorizerecorded. Magic links also work with--redirect-urisnow: links are URL-encoded and carryroles/state/scopeas their own parameters instead of insideredirect_uri. Links emailed by older versions still work. - The password-reset flow dropped the user's
/authorizerequest (#923, #344), leaving them on/appinstead of returning them to the application. Hash-routed reset URLs keep the token inside the route. - The signed-in page flashed before the redirect back to the application after logging in through
/authorize(#921, #269). docker-compose.yamlcould not start a v2 server (#930, #325): it relied on a.envfile that v2 ignores. It now passes CLI flags (placeholder secrets, SQLite on a named volume). The image pre-creates/authorizer/dataowned by its non-root user, so a named volume mounted there is writable without-u root.
Changed
- Comment typo fixes (#926, thanks
@kayaal34).
Upgrade notes
- Roles removed from
--rolesstop working immediately, including in tokens issued before the upgrade. If you changed--rolesin the past and users still rely on an old role, add it back (or to--protected-roles) before upgrading. - An MFA login that requests no
rolesnow gets--default-rolesinstead of every role on the user, the same as a non-MFA login. Integrations that relied on the full set after MFA must passrolesexplicitly. - Error text changed: clients that matched raw database messages (e.g.
record not found, NoSQLuser with given email already exists) now seeinternal server error (error_id: …). Match on the error code instead. - Redis deployments: rate limits are now shared across replicas, so with several replicas a client reaches
--rate-limit-rpssooner than before. - A newer password-reset, magic-link or invite email invalidates the previous link on MongoDB, ArangoDB, Cassandra, DynamoDB and Couchbase (SQL already behaved this way).
- DynamoDB: the server adds an
emailindex to the existing verification-requests table on first boot. Grantdynamodb:UpdateTable(or add the index yourself); without it lookups fall back to a scan. /authorizesets a short-livedauthorizer-authorize-bindingcookie (HttpOnly, SameSite=Lax, 15 minutes) when it sends the browser to the login UI.
2.4.8
Fixes a cross-organization account takeover through SCIM, adds
SurrealDB as a storage backend, and adds a kid
header to signed JWTs so JWKS consumers that select keys by kid can verify
them. Upgrading is recommended for every deployment where a user can belong
to more than one organization and SCIM provisioning is enabled. Nothing to do
on upgrade for existing deployments.
Security
- One organization's SCIM token could redirect a shared user's password reset and take over the account in another organization (GHSA-p7g3-2258-8wmp, high; same class as GHSA-93q4-j2hq-5qgg, whose fix covered only the
activeflag). SCIM tokens are issued per organization, butPATCH /scim/v2/Users/{id}wroteuserName/emails/phoneNumbersto the global user row and kept the existing email-verified marker. For a user who is also a member of organization B, organization A could set the email to an address it controls, request a password reset to it, and sign in as that user in B. A PATCH that changes the email or phone of a user with any membership outside the calling organization (deprovisioned ones included) is now refused with400andscimType: "mutability", and nothing in that PatchOp is written. Single-organization users keep full directory sync, and a shared user's unchanged or case-only email still syncs. Affected 2.4.0-rc.5 through 2.4.7. Found by Liam Giannini (@Liam-G).
Added
- SurrealDB storage backend (#906).
--database-type=surrealdbfor SurrealDB 4.0 or later, overhttp(s)orws(s), with--surrealdb-namespace(defaultauthorizer). The schema is created and upgraded by versioned migrations; cascade deletes run as one transaction and are retried as a whole on SurrealDB's write conflicts. The connection signs in again when its token expires, so a long-running server does not start refusing queries after an hour. See Databases. client_idclaim in access tokens (RFC 9068) andazpin ID tokens (OIDC Core) (#913). Access tokens from theauthorization_code,refresh_tokenandclient_credentialsgrants now name the client they were issued to, so a resource server can tell clients apart even when an RFC 8707resourcereplacesaud. ID tokens carryazp, always equal toaud. Additive: no existing claim changes.
Fixed
- JWTs had no
kidheader, so JWKS consumers that pick the key bykidrejected them (#904). For example, SurrealDB'sDEFINE ACCESS ... WITH JWT URLfailed withMissing token header 'kid'. RS/ES-signed tokens now carry akidequal to the key's RFC 7638 thumbprint, which/.well-known/jwks.jsonpublishes under the same value. The kid follows the key, so tokens signed before a primary-to-secondary rotation still name a published key. HMAC-signed tokens get nokid, since their key is never published. Thekidvalues in the JWKS change from the client-ID-based labels to thumbprints; a client that hard-coded the oldkidmust refetch the JWKS. The client-assertion verifier now refetches a trusted issuer's JWKS once (rate-limited to one per issuer per minute) when it meets an unknownkid.
Changed
- Bumped
github.com/openfga/openfgafrom 1.22.1 to 1.23.0 (#915).
2.4.7
Adds SereneDB as a storage backend, fixes two
upserts that failed on SQL Server, and makes list_permissions report
truncation correctly. Nothing to do on upgrade for existing deployments.
Added
-
SereneDB storage backend (#792).
--database-type=serenedbwith a PostgreSQL-style--database-url(SereneDB listens on7890by default). Requires SereneDB 26.11 or later; tested against 26.11.2. Queries run through the existing SQL provider unchanged; two things differ underneath:- Schema. SereneDB reports
varchar(n)astext, so GORM's automatic migration issued anALTER COLUMN ... TYPEon every restart, which SereneDB refuses on an indexed column. The schema is instead created and upgraded by hand-written, versioned migrations, recorded in a newauthorizer_schema_migrationstable. Each version runs in one transaction with its record, so a failed migration leaves nothing behind. Instances that boot at the same time can't conflict. - Write conflicts. SereneDB aborts contended writes with SQLSTATE 40001 instead of making them wait. Single statements are retried, and the four cascade deletes (user, client, organization, webhook) are re-run as a whole. No other backend changes behaviour: the retry is enabled only for SereneDB.
SereneDB is not an OpenFGA datastore, so FGA needs an explicit
--fga-store. See Databases. - Schema. SereneDB reports
Fixed
- SQL Server: re-requesting a verification email, or enrolling an MFA method a second time, failed with a duplicate-key error (#792).
gorm.io/driver/sqlserverbuilds every upsert'sMERGEfrom the primary key and ignores the conflict columns, soAddVerificationRequest(keyed on email + identifier) andAddAuthenticator(keyed on user + method) never matched the existing row and failed on the unique index (mssql ... (2601)). Every other SQL backend replaced the row. SQL Server now builds theMERGEon the conflict columns, withWITH (HOLDLOCK)so two concurrent upserts of the same key cannot both insert. These were the two SQL Server tests known to fail; SQL Server is now part ofmake test-all-db. list_permissionsreturnedtruncated: falsewhile dropping results (#903). The embedded OpenFGA engine capped each list call at 1000 results, the same as the service's own cap. A relation with more matches came back as exactly 1000 with no signal that more existed. The engine cap is now one above the service cap, sotruncatedis set. For an RFC 8693 delegated caller, the agent's and the user's results are capped separately before they are intersected, so the response is now also marked truncated when either side hit the cap.
Changed
- Documentation: CockroachDB must be configured as
--database-type=cockroachdb. The docs previously showedpostgres, which skips CockroachDB's migration fixes. No code change.
2.4.6
Social login now works for clients whose callback is on another origin, and it
goes through the consent screen like every other login method. Upgrading is
recommended for every deployment that offers social login to OAuth/OIDC
clients, and in particular for anyone who added client origins to
--allowed-origins to make social login work. That workaround can now be
removed. See the upgrade notes at the end.
Fixed
-
Social login failed with
invalid redirect urifor a client whose callback is on another origin (#855, #899, #901)./authorizeand/appcheckredirect_uriagainst the client's registered redirect URIs, but/oauth_loginand/oauth_callbackchecked it only against the global--allowed-originsand then sent the authorization code straight to the client. A client registered withhttps://app.example.org/callbacktherefore passed/authorize, reached the login page, and failed at "Continue with GitHub". The only workaround was adding the client's origin to--allowed-origins, which also loosens CORS, the CSRF origin check and the email-link redirects, for every client. Social login now ends the way password login already does: it returns to this server's own/app, which replays the request to/authorize./authorizethen checks the client's registered callback, shows consent if the client needs it, binds PKCE and issues the code. This is also how Auth0 and other providers treat social connections./oauth_loginand/oauth_callbackaccept this server's own/app,/app/or/app/signup(same scheme and host:port as--url, exact path, no fragment); on that hop the callback sets the session only, issues no code and appends nothing, so the client'snoncereaches the ID token. Thanks to @kurnias for the report. -
Social login skipped the consent screen for self-registered and CIMD clients (same change). The consent gate lives in
/authorize, and the old social path delivered the code without going through it. It was reachable only for a client whose callback origin was in--allowed-origins; that is the same restriction that caused the bug above, so fixing one could not be done by loosening it without opening the other. -
The hosted login page sends its own URL to
/oauth_login.@authorizerdev/authorizer-react2.2.1 makesAuthorizerSocialLogin, on Authorizer's own login page during an/authorizerequest, send the page's/app/URL (with the/authorizeparameters moved into the query string) instead of the client's callback (authorizer-react#75). Everywhere else, including a login page on your own site, it sends the sameredirect_urias before. -
A rejected SAML assertion logged only "Authentication failed" (#901).
crewjam/samlputs the real reason inInvalidResponseError.PrivateErrand returns a fixed public message. The ACS handler now logs that reason ascauseat debug level (--log-level=debug), so an operator can tell a clock skew, a bad signature and a missingAuthnStatementapart. Nothing changes in the response.
Changed
- MCP:
/mcpreturns noMcp-Session-Id, andDELETE /mcpreturns 405 (since 2.4.5) (#900). The MCP server has always run stateless, so replicas need no session affinity. 2.4.5's move tomodelcontextprotocol/go-sdkv1.8.0 made a stateless server also stop issuing session IDs, per the spec's sessionless direction (SEP-2567). Session IDs are optional for MCP servers, so spec-conformant clients need no change; a 405 onDELETEis the spec's "server does not allow clients to terminate sessions"; and a session ID still held from an earlier server is ignored rather than rejected. This went unnoticed in 2.4.5 because only the browser suite checked the header;internal/mcpnow pins it in CI. - SAML SP: an assertion without an
<AuthnStatement>is rejected (since 2.4.5).crewjam/samlv0.6.2, which 2.4.5 moved to for its<NameID>-spoofing fix (#828), enforces saml-profiles §4.1.4.2: a login assertion "MUST contain at least one<AuthnStatement>". Every mainstream IdP (Okta, Entra ID, ADFS, Google Workspace) sends one for browser SSO, so conformant IdPs are unaffected. A non-conformant IdP now fails at/oauth/saml/<org>/acswithsaml_assertion_invalid; the debug log names the reason (below). The e2e mock IdP was itself non-conformant here and is fixed (#901). - Dependencies (#901). Alpine 3.24.4. Dashboard:
@urql/core6 withurql5,tailwind-merge3 (the dashboard is on Tailwind CSS v4),vitest5,jsdom31, plus minor/patch groups for both web apps.
Deprecated
- Completing an
/authorizerequest by sending the client's callback straight to/oauth_login. It still works when the callback's origin is in--allowed-origins, but it skips consent, and the server now logssocial login completed an /authorize request without resuming through /authorizeeach time. A future release will refuse it. The hosted login page no longer does this; a customised login page should send its own/appURL instead — see Social login inside an authorization request.
Upgrade notes
- Hosted login page: nothing to do. The page is built into the same image as the server.
- Remove the workaround. If you added client origins to
--allowed-originsonly so social login would work, remove them after upgrading. Keep any origin your own front end needs for CORS. - Customised login page (your own build served by Authorizer at
/app): sendredirect_uri= the page's own/appURL with the/authorizeparameters in the query string, then replay to/authorizeonce the session exists. If it is built on@authorizerdev/authorizer-react, upgrade to 2.2.1. Until you do, it keeps working as before, with the warning above. - Social login started on
/appwith no client now returns to/appwithoutstateandnonceappended, and is accepted under any--allowed-originslist (it used to need a bare*). Nothing on/appreads either parameter. /oauth_loginand/oauth_callbackcalled directly (mobile apps, a "Sign in with GitHub" link on your own site): unchanged.
2.4.5
Security release. Closes two high-severity advisories reported through
SECURITY.md and moves the build to Go 1.27.4 for a reachable net/http crash.
Upgrading from 2.4.4 is recommended for every deployment, and is urgent for
anyone running a mixed --allowed-origins list or SCIM across more than one
organization. See the upgrade notes at the end: SCIM deprovisioning semantics
change, and org_memberships gains one nullable column.
Security
- OAuth access tokens could still be redirected to an attacker through a dotless IPv4
redirect_uri(GHSA-f9fw-76m6-wc75, high; incomplete fix of GHSA-h29v-hj44-q8cv / CVE-2026-54072) (#853).IsValidRedirectURIspecial-cased*only when it was the entire allowlist. In a mixed list such as*,https://app.example.comthe bare*fell through to the origin matcher, which re-opened it as the regex[^.]*— matching every host without a dot and no dotted one. A browser readshttp://3405803783/as203.0.113.7, so a crafted/authorizelink delivered the signed-in user's access token to any IPv4 address; the same check guards the logout, password-reset and magic-link redirects. A bare*now means "this server's own origin" wherever it appears in the list, every spelling that normalises to*(https://*,*:443,*/) is caught by one shared predicate, and a wildcard entry with no literal dot (**,*:3000) is refused outright. Affected 2.1.0 through 2.4.4, only when--allowed-originsmixes a bare*with explicit origins and the client has no registered redirect URIs. - One organization's SCIM token could deactivate a shared user in every organization (GHSA-93q4-j2hq-5qgg, high) (#854). SCIM tokens are issued per organization, but
DELETE /scim/v2/Users/{id}andPATCH active:falsewroteis_active=falseandrevoked_timestampto the global user row and deleted every session and session token, so organization A could lock a user out of organization B — andPATCH active:truecould lift B's lock in the other direction. Deprovisioning is now recorded on A's membership only; the global account is deactivated only when no other active membership remains. A deprovisioned membership also loses A's FGA grants and A's SSO sign-in, and membership existence alone no longer confers org-admin authority. Affected 2.3.0-rc.10 through 2.4.4. - Client-chosen forwarding headers no longer reach gRPC metadata (#870). The REST gateway refused 4 of the ~29 standard client-IP and host headers.
X-Forwarded-For/X-Real-Ipdecide the client IP used for rate limiting, the admin-secret lockout and audit logs, andX-Authorizer-Urldecides the host of emailed reset and magic-link URLs; all known spellings are now dropped before metadata is built. SCIMmeta.locationfor groups now comes from--urlrather than the requestHost. - Go toolchain 1.27.4 for GO-2026-6859 (HTTP/1 server crash via a
MaxBytesReaderheader race innet/http), via 1.27.3 for the advisories it patches. The release image builder is now pinned togolang:1.27.4-alpine3.24instead of the floatinggolang:1.27-alpine3.23(#871, #890). - crewjam/saml bumped from v0.5.1 to v0.6.3. v0.5.1 let a signed assertion carry a
<NameID>in a foreign namespace, which is the value SAML JIT provisioning keys on (#828, #890). govulncheck still reports GO-2026-6909 against every version because its OSV record has nofixedevent; that entry is a documented false positive in.govulncheck-allow.
Changed
- govulncheck gates CI on a written allowlist (
.govulncheck-allow,make vulncheck): any reachable finding not listed with a reason fails the build (#872). - Dependencies. Go modules upgraded across the board (AWS SDK, pgx, goose, gRPC, storage drivers). The login app and dashboard move to React 19, Vite 8 and TypeScript 7, with
baseUrldropped from both tsconfigs (#889). Alpine runtime image 3.24.3.
Upgrade notes
- SCIM deprovisioning is now per organization. An IdP that deprovisions a user who also belongs to another organization will see that user stay globally active and keep their other sessions; the user loses access to the deprovisioning organization only. A user whose last active membership is deprovisioned is deactivated globally, as before. SCIM
GETandfilter=active eq ...report the membership's state, not the global account's. - One new nullable column.
org_memberships.deprovisioned_at(unix seconds) is added by AutoMigrate on SQL backends and byALTER TABLEon Cassandra/ScyllaDB; the document stores need nothing. Absent means active, so existing members are unaffected. - Mixed
--allowed-originslists. If you rely on*beside explicit origins, the*now admits only this server's own origin as a redirect target. Add any other legitimate redirect origins explicitly. CORS behaviour for a bare*is unchanged.
2.4.4
Four of the SQL backends in the supported list could not create their own schema,
and PostgreSQL was rewriting four tables on every restart. Upgrading is
recommended for every SQL deployment. The first boot after this release emits a
small, one-time set of ALTER COLUMN statements and nothing on every boot after;
see the upgrade notes at the end.
Fixed
char(36)columns were retyped on every single boot, and that was fatal on CockroachDB (#826). GORM's postgres driver reads these columns back frominformation_schemaasbpchar, which never prefix-matches the declaredchar(36), so AutoMigrate re-emitted the same no-op type change at every startup:ALTER TABLE "authorizer_sessions" ALTER COLUMN "user_id" TYPE char(36) USING "user_id"::char(36). On PostgreSQL that is a silent table rewrite underACCESS EXCLUSIVEon four tables at every restart. On CockroachDB it is fatal —ALTER COLUMN TYPEsits behind an experimental flag (SQLSTATE XCEXF) — so the server started once and never started again. Five non-PK columns now declarevarchar(36), which is what the catalog reports; values are 36-character uuids either way. Measured on PostgreSQL 18 withlog_statement=all: 5 alters on the upgrade boot, 0 on every boot after.- CockroachDB aborted at startup dropping a constraint it never had (#826). CockroachDB lists unique indexes in
information_schema.table_constraints, and MySQL reportsCOLUMN_KEY='UNI'for them, so GORM saw everygorm:"uniqueIndex"field as a constraint the model no longer wants and issuedDROP CONSTRAINT "uni_<table>_<column>"— a name it only ever creates from auniquetag. Startup died onconstraint "uni_authorizer_oauth_states_state_key" ... does not exist (SQLSTATE 42704), and on MySQL onError 1091: Can't DROP. Those indexes are declared by the models and are meant to be there, so the drop is skipped; the create direction is delegated untouched. - The pre-2.3.0 uniqueness cleanup silently did nothing on CockroachDB (#826).
ALTER TABLE ... DROP CONSTRAINTon a UNIQUE is rejected outright there (unimplemented: ... use DROP INDEX CASCADE instead, SQLSTATE 0A000), and the failure was logged at debug level and swallowed. Releases before 2.3.0 declaredauthorizer_users.emailandauthorizer_otps.phone_numberas UNIQUE; v2 keeps plain indexes and enforces uniqueness in the application layer, writing the empty string intophone_numberfor every email OTP — so on an upgraded CockroachDB database the second email OTP was rejected and email OTP login was broken. The drop now goes throughDROP INDEX ... CASCADE. - MySQL and MariaDB had never worked at all, on three separate aborts (#826). Nothing had ever run the storage suite against them. (1) GORM's mysql driver widens an unsized string to
varchar(191)when the field carriesindexorunique, but it checks only those two tags — a field taggeduniqueIndex, named or composite, is missed and becomeslongtext, which MySQL refuses to index:Error 1170: BLOB/TEXT column 'client_id' used in key specification without a key length, so the schema could not be created. (2) Then the phantomDROP CONSTRAINTabove, asError 1091. (3) ThenDeleteSessionTokensByUserIDused a backslash as itsLIKEescape character, which MySQL rejects asError 1064; the escape character is now!and the escaping is portable across engines, pinned by a new metacharacter test case. - SQL Server could not create its schema since 2.3.0-rc.10 (#826).
gorm.io/driver/sqlserverhas the identical two-tag gap as the mysql driver, so ten unsizeduniqueIndexstrings becamenvarchar(MAX):mssql: Column 'client_id' in table 'authorizer_clients' is of a type that is invalid for use as a key column in an index.Fixed at the driver's own indexed-string width. Two upsert tests remain red on an unrelated driver bug —MergeCreatebuilds itsMERGEpredicate from the primary key and ignoresclause.OnConflict.Columns, so an upsert keyed on a composite unique index inserts a second row instead of replacing one.make test-sqlservertherefore exists but is deliberately outsidemake test-all-db. TestDeleteUserCascadesAllUserOwnedRowscould not be run twice against a persistent database (#826). Fixed fixture ids and no cleanup, so a second run collided on rows the first left behind. Pre-existing — it failed identically on PostgreSQL — and it masked real failures behind a false one on every re-run.
Changed
make test-all-dbnow covers 12 databases, with newmake test-cockroachdb,test-mysql,test-mariadbandtest-sqlservertargets (#826). CI runs SQLite only, so a backend with no target had most likely never been executed — which is how four of them shipped unable to boot. Readiness is gated by a newscripts/wait-for-sql.sh, becausenc -zconnects to Docker Desktop's published-port proxy the instantdocker run -preturns, and MySQL binds its port, runs its init scripts and then restarts —mysqladmin pinganswers during that window, so the probe now runs a real query against the test database instead.
Upgrade notes
- One-time DDL on the first boot. Five columns move from
char(36)tovarchar(36):audit_logs.actor_id,audit_logs.resource_id,authenticators.user_id,sessions.user_idandwebhook_logs.webhook_id. Stored values are unchanged — a 36-character uuid is identical in both types — and nothing is narrowed. On PostgreSQL this is five rewrites on the upgrade boot and zero thereafter; take the usual care ifauthorizer_audit_logsis large. - MySQL/MariaDB and SQL Server column widths. An unsized string column under a
uniqueIndexis now created asvarchar(191)/nvarchar(256)instead oflongtext/nvarchar(MAX). Every affected column lives in a table introduced in 2.3.0-rc.10 (clients,organizations,org_memberships,federated_identities,scim_endpoints,trusted_issuers,webauthn_credentials), so no existing data is narrowed. - A SQL Server database left behind by a failed boot must be dropped. The unsized
uniqueIndexcolumns and the composite index overauthenticators.user_idboth arrived in 2.3.0-rc.10, so the two never coexist in a database that completed AutoMigrate. A database touched by a 2.3.0-rc.10 or later SQL Server boot hasuser_idaschar(36)inside that index, and SQL Server will not retype an indexed column. No boot there ever finished, so such a database holds no data. Databases from 2.0.0 through 2.3.0 did boot, carry no index over any widened column, and upgrade in one boot with rows intact. - PlanetScale and Yugabyte were not executed. PlanetScale is hosted MySQL-wire and shares the MySQL code path verbatim; Yugabyte keeps the unchanged
postgres.Openpath and the samebpcharcatalog, so thevarchar(36)change covers it.
2.4.3
Patch release. Corrects the CassandraDB provider, which did not work on Apache Cassandra at all on three queries, and closes the timestamp-domain exposure #818 left behind. No schema or data migration, no breaking change. One operational note: sanity-check NTP on application hosts before upgrading.
Fixed
- The CassandraDB provider did not work on Apache Cassandra at all, on three queries (#824). One provider backs both
cassandradbandscylladb, butcassandradbwas missing from the storage suite's backend list, so it had only ever been exercised through ScyllaDB. Apache Cassandra accepts CQLLIKEonly against a SASI index and rejects it against the plain secondary index this provider creates, soGetWebhookByEventName(webhook dispatch by event name never fired),DeleteAllSessionTokensByUserID(session revocation failed) andDeleteSessionTokensByNamespaceerrored outright on every Apache Cassandra deployment. ScyllaDB accepts the same statements, which is why it went unnoticed. All three already carriedALLOW FILTERING, so the index was doing no work; the comparison moves into Go.cassandradbis now in the suite on its own port, withmake test-cassandradb. DeleteAllSessionTokensByUserIDmatched an unanchored substring on five backends (#824). A revocation for user42also deleted tokens stored for142orprovider:427. The SQL provider was anchored long ago; CassandraDB, MongoDB, ArangoDB, DynamoDB and Couchbase kept the defect because the assertion covering it lived inside a SQL-only subtest. The match is now the exact value or a:<userId>suffix — strictly tighter, never looser — on every backend, asserted by a test that runs on all eight. MongoDB additionally interpolated the id straight into$regex, so an id containing regex metacharacters was evaluated as a pattern; it is now escaped and anchored with\zrather than$, which also matches before a trailing newline. Harmless in practice, since every user id is a UUIDv4, but it was a live over-delete primitive.- Single-use session tokens and OAuth states could be consumed twice on Cassandra/ScyllaDB (#824). Completing #818:
DeleteSessionTokenByUserIDAndKeytreats aDELETE ... IF EXISTSapplied flag as the exactly-once arbiter behind refresh-token rotation, and that lightweight transaction is stamped from the Paxos ballot — the server clock — whileAddSessionToken's plain insert carried the driver's client timestamp. With the client clock ahead the tombstone lands below the insert: the row survives, yet Paxos saw a live row and returnedapplied=true, so the next claim of the same token also returnedapplied=true. Measured onscylladb/scyllawith the client clock 10 ms ahead: 20 of 20 tokens claimed twice, 0 of 20 after the fix.session_tokens,oauth_statesandauthenticatorsnow take the coordinator's clock on every write, including the one insideDeleteUser's cascade. Applied per query, never cluster-wide, so the ~20 tables that never touch a lightweight transaction stay on one client clock rather than several node clocks. No Paxos round-trip is added to the login path. Sanity-check NTP on application hosts before upgrading — a host minutes off NTP was already losing lightweight-transaction deletes on the old binary, which is the bug being fixed. - Cassandra/ScyllaDB: a delete could be silently discarded after a lightweight-transaction insert (#818). A lightweight transaction takes its mutation timestamp from the Paxos ballot, i.e. the server clock, while a plain
DELETEwrites a tombstone carrying the driver's client-side timestamp. A tombstone only shadows a row whose timestamp it exceeds, so with the server clock running ahead the delete was dropped with no error and the row survived. Measured onscylladb/scyllaat 46 of 50 tight insert-delete pairs.AddUserloses itsIF NOT EXISTS— it only ever constrained a freshly generated UUID partition key, enforced no uniqueness, and its applied flag was never read — and the twoorg_domaindeletes gainIF EXISTS, because there the lightweight transaction is load-bearing: the domain is the partition key and first-writer-wins is the atomicity guarantee. A dropped delete there left a verified domain claimed permanently. Apache Cassandra was not observed to drop the write in the runs behind this entry, and the reason given here originally — that its ballot timestamp is truncated to whole milliseconds, flooring the row marker behind the later client timestamp — was measured false while preparing #824: with the client stamp forced back 10 ms, Apache Cassandra 4.1.12 drops 50 of 50, and an ambient run with the engine clock 15 ms ahead still dropped 0 of 50, which truncation cannot explain either. The exposure is not engine-specific. Whether it fires without forcing depends only on which way the client and coordinator clocks happen to sit, which is what made it look flaky. No schema or data migration.
2.4.2
Security release. Closes six advisories reported through SECURITY.md, plus three
dependency advisories reachable from this codebase. Upgrading from 2.4.1 is
recommended for every deployment. See the upgrade notes at the end — audit-log
result counts change on two backends, and one behaviour changes on the gRPC and
REST transports.
Security
- Trusted-URL pin was bypassed on the gRPC and REST transports (GHSA-m46m-j9p5-5j99, high).
--urlis authoritative for this server's own base URL on the gin path, insideparsers.GetHostFromRequest. The gRPC transport built the same value straight from caller-supplied metadata and never consulted--url, so the pin reached neither gRPC nor the grpc-gateway REST mux in front of it. That value becomes the host of the emailed password-reset and magic-link URL and theissclaim of the tokens minted from it, so a caller able to choose it could have a victim emailed a genuine reset link pointing at a host the caller controls. Fixed with two independent locks, matching the treatmentx-forwarded-foralready carries: the transport now prefers the configured--url, and the gateway refuses theX-Authorizer-Urlheader (closing theGrpc-Metadata-spelling thatDefaultHeaderMatcherforwards prefix-stripped). Affected>= 2.3.0-rc.3(#814). - Public gRPC methods skipped the delegated-scope gate (GHSA-25j3-4jg3-w352, high). The auth interceptor returned for every
publicmethod before resolving any credential, soenforceDelegatedScope— which sat below that return — never ran on the public path. Six public RPCs are dual-mode and hand a bearer token to a resolver that accepts a delegated token, so an agent holding anopenid-scoped delegated token could callTotpMfaSetup, collect a Verified MFA-session cookie, and trade it atSkipMfaSetupfor an unattenuated first-party user token with noactclaim. No MFA RPC is on the delegated allow-list, so the policy already said deny; it was never consulted. Credential resolution on the public path stays opportunistic — a caller with no credential reaches the handler exactly as before — and the gate no-ops on first-party tokens. Machine identities are now also rejected at the two dual-mode resolvers. Affected>= 2.4.0-rc.13(#799). /verify_emaildelivered session tokens in the redirect query string (GHSA-44vr-f829-xfch, high). The handler appendedaccess_token,id_tokenandrefresh_tokento the query string of a redirect target validated only at origin granularity, so any path under an allowed origin received a full session. An unauthenticated attacker could start the flow throughmagic_link_loginwith aredirect_uriunder the app's own origin and read the victim's tokens from the target page, the access log, the browser history or theRefererheader — and because this endpoint is reached from an emailed link, that URL is unusually long-lived. The tokens are gone; redirect validation additionally goes throughcheckClientRedirectURI, the exact-match validator/authorizealready uses. Affected all releases through 2.4.1 (#798).- A password-only profile change did not revoke existing sessions (GHSA-qx8r-9p3g-vcp4, medium).
DeleteAllUserSessionslived only insideUpdateProfile's email-change branch, so a user who changed only their password kept every pre-existing session and refresh token alive — a stolen refresh token continued minting access tokens after the victim believed they had locked the attacker out. The siblingreset_passwordpath already revoked correctly. Affected all releases through 2.4.1 (#796). validate_jwt_tokendid not bind the token to its signedtoken_type(GHSA-cqr5-83v5-mx8f, medium). The requested type was checked against a list of legal names but never compared with the token's own signed claim, so all six cross-type combinations validated: a refresh token or anid_tokenpassed as an access token. The session-store lookup did not catch it because one nonce is stamped on all three tokens of a login, so an entry existed whatever token was presented, and the fetched value was discarded rather than compared. Both checks are restored, matchingValidateAccessTokenandValidateRefreshToken. The rejection is indistinguishable from any other invalid token, since a distinct error on a public RPC would disclose an unknown token's type. Reachable on GraphQL, gRPC and REST, which share one implementation. Affected all releases through 2.4.1 (#796)./authorize/consentaccepted a delegated token with no scope check (GHSA-hhhh-p743-q3cp, low). The handler authorized an approval on caller identity alone, and the dual-mode resolver returns the delegating user'ssubfor an RFC 8693 delegated token, so the check passed for an agent acting on a user's behalf — on a plain gin route behind neither of the two gates that enforceinternal/delegatedscope. Anopenid-scoped delegated token could therefore record a consent approval for an arbitrary third-party client. The caller cannot redeem it (/authorizeresolves its session from the cookie only, and the login-handoff code it can observe is not bound to an authenticated user and fails exchange), so the exposure is that consent can be pre-approved for one exact pending request and a later visit from the user's own browser then skips the consent screen. Delegated callers are now refused outright: approving a grant confers whatever scope the third-party client requested, unbounded by the agent's own ceiling, so the operation is deliberately absent from the delegated allow-list rather than gated by a scope. Browser flows are unchanged — the session cookie is resolved before any bearer token. Affected all releases through 2.4.1 (#815).- gRPC bumped to v1.83.2 for GO-2026-6443 (server panic via missing
authority/Hostheaders, reached bygrpcsrv.Run→grpc.Server.Serve→http2Server.HandleStreams) and GO-2026-6348 (reached through the generated admin gRPC client). Both reachable from called code, not merely present. Note the target: the advisory names v1.82.2 as the fix for the 1.82.x line, but on 1.83.x it landed in v1.83.2, so v1.83.1 is still affected (#797). - OpenTelemetry bumped to v1.45.0 for GO-2026-6505: the OTLP trace exporter can log exporter configuration — including endpoint URLs, which may carry credentials or internal hostnames — at info level.
govulncheckclasses it reachable here through the embedded OpenFGA engine's init, the gocql driver and the metrics package. Indirect dependency only; no source change (#807). - golang.org/x/net bumped to v0.60.0 for five called vulnerabilities — GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6610 (HTTP/2 framing and header handling) and GO-2026-6603 (HTTP/2 server memory exhaustion via Trailer headers). All reachable: the traces run through the gRPC listener, which reads and writes h2 frames directly, the outbound webhook test client, and WebAuthn registration verification (#811).
- Release image builds with Go 1.27 so the shipped binary picks up the current toolchain and its standard-library security fixes.
go.moddeliberately stays at 1.26.6 — Go builds an older module with a newer toolchain unchanged, so this is a toolchain bump, not a language version bump (#800).
Fixed
- Audit-log filters were silently ignored on CassandraDB/ScyllaDB and Couchbase.
_audit_logsadvertises six filters; those two backends built theirWHEREclause fromactor_idandactiononly and discardedresource_type,resource_id,from_timestampandto_timestamp— returning unfiltered rows with no error, so a narrowed audit query read as authoritative when it was not. The dashboard's Audit Logs page was already sending three of the dropped filters, so the UI offered filtering that did nothing. A second bug surfaced while fixing it: on ScyllaDB two indexed equalities withoutALLOW FILTERINGare rejected outright, which is the query the old builder emitted — so_audit_logs(action:, actor_id:), the one combination Cassandra was believed to support, had never worked there. All six filters now apply on every backend (#802). - A failed audit-log scan returned a truncated page with a nil error on CassandraDB/ScyllaDB.
ListAuditLogsnever checkedscanner.Err(), so a read timeout or coordinator failure part-way through ended iteration normally: the caller got fewer rows and no indication, whilepagination.totalreported the real count. Newly reachable because the filters ab...