Repository navigation
Releases
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...
2.4.1
Security release. Fixes two reported advisories plus two further issues of the same classes found while fixing them.
Upgrading from 2.4.0 is recommended for every deployment. Read the migration note below first — it affects anyone running behind a reverse proxy.
Security fixes
| Issue | Severity | Affected |
|---|---|---|
| Admin-secret brute-force lockout bypass via spoofable client IP (GHSA-93hc-xq3w-xw87) | Critical | >= 2.4.0-rc.16 |
| Token-exchange delegation laundered a machine identity into a user identity (GHSA-vq29-8q3c-3hrm) | High | 2.3.0-rc.10, >= 2.4.0-rc.0 |
required_relations evaluated a machine token as a user |
High | 2.3.0-rc.10, >= 2.4.0-rc.0 |
Client IP is now taken from the connection, not from headers
utils.GetIP returned X-Real-Ip / X-Forwarded-For verbatim while the router was hardened with SetTrustedProxies. The admin-secret lockout buckets on that value, so rotating a header per request turned 10 failures per 15 minutes into unlimited online guessing of the super-admin secret.
Two further bypasses of the same counter are closed alongside it: RemoteAddr was returned as IP:port, so the ephemeral port gave every new TCP connection a fresh bucket with no header forgery at all; and the gRPC/REST surface resolved the address from caller-settable metadata, including the Grpc-Metadata-X-Forwarded-For spelling that grpc-gateway forwards with the prefix stripped.
Machine identities are no longer laundered into user identities
A delegated token minted from a service-account subject dropped its login_method claim, and the authorization resolver treats a missing claim as a human user — so an autonomous machine was evaluated as user:<sub>, flipping OpenFGA decisions from deny to allow. This was not limited to the reported self-delegation shape; the multi-hop agent chain laundered identically.
Separately, enforceRequiredRelations discarded the classified subject and hardcoded user:<id>, so validate_jwt_token with required_relations answered a plain client_credentials token against a user subject while check_permissions denied the identical token. No delegation was required to reach that one. Subject classification is now shared by all three authorization decision surfaces.
⚠️ Migration note — --trusted-proxies
--trusted-proxies now governs client-IP resolution everywhere, not only the rate limiter.
If you run behind a reverse proxy, CDN or load balancer and have not set it, every client will now resolve to the proxy's address — audit-log IPs change, and one attacker's failed admin guesses fill the single shared lockout bucket. The flag was already load-bearing for rate limiting, so this makes resolution consistent rather than newly dependent, but it must now be set.
--trusted-proxies=10.0.0.0/8,203.0.113.7/32
List every hop. With a CDN in front of a load balancer, both must appear, or the client IP resolves to the outermost unlisted proxy. Railway deployments want --trusted-proxies=100.64.0.0/10. The server logs a warning at startup when the flag is empty.
Behaviour changes
- A machine-subject delegated token now resolves to
service_account:<client_id>rather thanuser:<service-account-row-id>. Tuples written against the latter for a service account stop matching — that is the vulnerability closing. User-subject delegation is unchanged. - A chained machine-subject token exchange now succeeds past the first hop, where it previously failed with
invalid_grant. Liveness is still re-checked per hop, scope still attenuates monotonically, and the depth cap is unchanged.
Full changelog: https://github.com/authorizerdev/authorizer/blob/main/CHANGELOG.md
Compare: 2.4.0...2.4.1
2.4.0
Enterprise SSO (SAML IdP, verified domains, home realm discovery), WebAuthn/passkey login, SCIM 2.0, machine and agent identity (client_credentials, RFC 7523 workload identity, RFC 8693 delegation), a remote MCP server, gRPC and REST alongside GraphQL, and an OpenFGA-backed authorization engine.
Breaking: --url is now required, the at-rest encryption key is split out as --encryption-key, MFA is on by default and opt-out, and /userinfo filters claims by scope. Read CHANGELOG.md before upgrading — every breaking entry states what to change.
New: --redirect-uris holds this deployment's own client to an exact redirect_uri match, the rule OIDC Core §3.1.2.1 states and the one clients registered through RFC 7591 or a metadata document already got. Unset keeps the --allowed-origins fallback, which compares origins and so accepts any path under an allowed host.
Verified for this release: make test-all-db across all seven backends, make lint, make smoke, the Playwright e2e suite (105 tests), the SDK-driven Go e2e suite, and a Trivy scan with no HIGH/CRITICAL findings.
OpenID Foundation conformance: the Config profile passes clean. On the Basic profile 17 modules pass and 9 raise warnings. The two modules that require an unregistered redirect_uri to be refused — oidcc-ensure-registered-redirect-uri and oidcc-ensure-request-object-with-redirect-uri — now run to the suite's manual review step with no failed assertions when --redirect-uris is set.
2.4.0-rc.23
Release candidate for 2.4.0.
Since 2.4.0-rc.22
Security
- A logged-out subject can no longer seed new delegations (#776) — token exchange verified a
subject_token's signature, issuer and type and nothing else. The resulting delegated token is bound to a third-partyresourceand validated by that server, which has no view of this session store, so after a logout the user's agent kept minting fresh, externally valid credentials until the subject token expired. Exchange now checks the subject session's liveness when the token carries asid. Service-account subjects stay exempt — aclient_credentialstoken has no browser session. Same opaqueinvalid_grantas the invalid-subject path, so the endpoint is not a sign-in oracle. Ships with audit + metrics on all fourteen previously-silent exchange refusal paths (token.exchange_failed,authorizer_auth_events_total{event=token_exchange},token_exchange_rejected), plus meters for the agent scope ceiling and delegated-token validation refusals. - Revocation is now visible at
/oauth/introspectand/oauth/revoke(#774) — the session entry is this codebase's only revocation record, and neither token endpoint consulted it. Introspection answeredactive:truefor tokensValidateAccessTokenalready rejected, disclosingsub,scopeandaudwith it (RFC 7662 §2.2); any resource server trusting the endpoint accepted a logged-out token for the rest of its TTL./oauth/revokeadvertisedtoken_type_hint=access_tokenbut only ever looked up refresh tokens, returning the mandated 200 having revoked nothing — the hint now orders the lookup rather than restricting it (RFC 7009 §2.1).id_tokenis carved out by type; it is never registered in the store. - Two reachable IANA special-purpose ranges added to the SSRF block list (#781) —
198.18.0.0/15and192.88.99.0/24. The former is the one with real exposure: not being globally routable is exactly why organisations use it internally, so an SSRF there reaches a live internal service through an address that reads as public to every "is this private?" check, including this one. Found while testing the JWKS-fetch path: a container on a198.18.0.0/24docker network was fetched successfully through the unmodified guard. - Spec-defined outbound fetches refuse redirects (#775) — backchannel logout and client-metadata retrieval must reach the resource AT the URL named. Webhook delivery and the admin test-endpoint probe deliberately still follow redirects; those URLs are the operator's own. Also fixes
cacheTTLparsing, wherefmt.Sscanfacceptedmax-age=600junkas 600 (the clamp made every outcome safe, so no live defect).
Added
/mcpaccepts RFC 8693 delegated tokens (#773) — an agent could not ask Authorizer about its own delegated authority:check_permissionswas unreachable with the very token that proves the delegation, so agent delegation over MCP stayed a stdio-only story. The fallback is gated on theactclaim and goes through a separate entry point, so audience matching stays exact in both directions: a token bound to the bare server URL is still refused at/mcp, and an MCP-bound one is still refused everywhere else.
Fixed
- Workload identity: issuer enums are allow-listed, SPIFFE labelled preview (#777).
- Correct false comments, remove dead code, wire missing telemetry (#779).
Tests
- Kubernetes workload identity pinned against a real cluster (#778) and e2e coverage of workload identity against a real JWKS fetch (#782).
Upgrading from 2.3.x
--url is required — the server refuses to start without it. It is not --allowed-origins: --url is this server's own address, --allowed-origins is the apps it may redirect to. See Trusted base URL.
--encryption-key is required for RS*/ES* deployments.
Full detail in CHANGELOG.md.
2.4.0-rc.22
Release candidate for 2.4.0.
Since 2.4.0-rc.21
- Go 1.26.6 (#772) —
go.modis the single source of truth; every workflow resolves the toolchain from it and the image tracksgolang:1.26-alpine3.23. --urladded to every runnable command in the repo (#771) — the README (including the Docker quick start and the volume-persistence example),MIGRATION.md, the perf harness and.env.sampleall documented commands that exited at boot, because--urlbecame mandatory in #764 and these were never swept.- e2e mock host ports are overridable (#770) — the suite published five fixed host ports and died at startup if any was taken locally, with no way to change it. Each is now
${SERVICE_HOST_PORT:-<default>}; defaults unchanged.
Upgrading from 2.3.x
--url is required — the server refuses to start without it. It is not --allowed-origins: --url is this server's own address, --allowed-origins is the apps it may redirect to. See Trusted base URL.
--encryption-key is required for RS*/ES* deployments.
Full detail in CHANGELOG.md.