Schwachstellen / GHSA-xgh2-jgvm-8g78

kritisch

GHSA-xgh2-jgvm-8g78

Unsigned ID tokens (alg none) accepted, allowing authentication bypass in the id_token flow

In der Trivy Database seit 26. Okt. 2026, 19:14 UTC

Einstufung nach Quelle

Keine Quelle nennt einen CVSS-Wert.

Trivys eigenes Label ist CRITICAL. Kritisch laut Ruby Advisory DB.

Beschreibung

### Impact omniauth_oidc 1.0.0 and 1.0.1 verified an ID token with whichever signing algorithm the token's own header named, unless `client_signing_alg` was configured. Because the header is controlled by whoever produces the token, an unsigned token with `"alg": "none"` passed signature verification. Applications that use `response_type: "id_token"` (the implicit flow) are affected. In that flow the ID token arrives in the callback request parameters, so an attacker can start a login in their own browser to obtain a valid `state` and `nonce`, then send the callback an unsigned ID token carrying the victim's `sub`. The callback completes with the victim's identity, which allows full account takeover in the host application. Applications that use the default authorization code flow (`response_type: "code"`) are not exploitable this way, because the ID token is obtained directly from the provider's token endpoint. Versions before 1.0.0 used a different JWT library that rejects `alg: none` when a key is supplied, and are not affected. ### Patches Fixed in 1.1.0. The accepted algorithms now come only from configuration, and `none` is always rejected. ### Workarounds Set `client_signing_alg` to the algorithm your provider signs ID tokens with (for example `client_signing_alg: "RS256"`), or use the default `response_type: "code"` flow.

Betroffene Pakete und behobene Versionen

QuellePaketBehoben in
rubygems::Ruby Advisory Databaseomniauth_oidc>= 1.1.0

Referenzen

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.