{"id":"CVE-2026-55735","aliases":["CVE-2026-55735","EEF-CVE-2026-55735","GHSA-7975-hp3r-5qhv"],"related":[],"kind":"vulnerability","state":"published","title":"Guardian.revoke/3 acts on unverified token claims, allowing forged-token session revocation","summary":"Improper Verification of Cryptographic Signature in ueberauth guardian allows an unauthenticated attacker to revoke a victim's session with a forged token.\n\nGuardian.revoke/3 in lib/guardian.ex decodes the supplied token with peek/1, which performs no signature verification (it only base64-decodes the JWT header and payload). The resulting unverified claims are forwarded directly to the configured token module's revoke callback and the implementation's on_revoke callback, a state-mutating sink. The sibling operations refresh/2 and exchange/4 both call decode_and_verify first, so the signature is checked before anything acts on the claims; revoke/3 is the only state-mutating path that acts on claims without verifying the signature.\n\nAn attacker who knows or guesses a victim's identifying claim values (jti, sub) can forge a JWT carrying those claims, sign it with an arbitrary key, and submit it to any endpoint that funnels a caller-supplied token into Guardian.revoke/3 (the standard logout / session-revocation pattern). When the token module mutates state keyed by the claims (whitelist deletion or blacklist insertion, for example a GuardianDb-style store), the victim's legitimate session is evicted. This is an unauthenticated session-revocation denial of service; the attacker never needs the signing secret.\n\nThis issue affects guardian: from 1.0.0-beta.0 before 2.4.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Verification of Cryptographic Signature in ueberauth guardian allows an unauthenticated attacker to revoke a victim's session with a forged token.\n\nGuardian.revoke/3 in lib/guardian.ex decodes the supplied token with peek/1, which performs no signature verification (it only base64-decodes the JWT header and payload). The resulting unverified claims are forwarded directly to the configured token module's revoke callback and the implementation's on_revoke callback, a state-mutating sink. The sibling operations refresh/2 and exchange/4 both call decode_and_verify first, so the signature is checked before anything acts on the claims; revoke/3 is the only state-mutating path that acts on claims without verifying the signature.\n\nAn attacker who knows or guesses a victim's identifying claim values (jti, sub) can forge a JWT carrying those claims, sign it with an arbitrary key, and submit it to any endpoint that funnels a caller-supplied token into Guardian.revoke/3 (the standard logout / session-revocation pattern). When the token module mutates state keyed by the claims (whitelist deletion or blacklist insertion, for example a GuardianDb-style store), the victim's legitimate session is evicted. This is an unauthenticated session-revocation denial of service; the attacker never needs the signing secret.\n\nThis issue affects guardian: from 1.0.0-beta.0 before 2.4.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Verification of Cryptographic Signature in ueberauth guardian allows an unauthenticated attacker to revoke a victim's session with a forged token.\n\n`Guardian.revoke/3` in `lib/guardian.ex` decodes the supplied token with `peek/1`, which performs no signature verification (it only base64-decodes the JWT header and payload). The resulting unverified claims are forwarded directly to the configured token module's `revoke` callback and the implementation's `on_revoke` callback, a state-mutating sink. The sibling operations `refresh/2` and `exchange/4` both call `decode_and_verify` first, so the signature is checked before anything acts on the claims; `revoke/3` is the only state-mutating path that acts on claims without verifying the signature.\n\nAn attacker who knows or guesses a victim's identifying claim values (`jti`, `sub`) can forge a JWT carrying those claims, sign it with an arbitrary key, and submit it to any endpoint that funnels a caller-supplied token into `Guardian.revoke/3` (the standard logout / session-revocation pattern). When the token module mutates state keyed by the claims (whitelist deletion or blacklist insertion, for example a GuardianDb-style store), the victim's legitimate session is evicted. This is an unauthenticated session-revocation denial of service; the attacker never needs the signing secret.\n\nThis issue affects guardian: from 1.0.0-beta.0 before 2.4.1.\n\n## Workarounds\n\nVerify the token before revoking it: call `decode_and_verify` (or a verify-without-expiry variant, so already-expired tokens remain revocable) on the caller-supplied token and pass only tokens whose signature validates into `Guardian.revoke/3`. Reject tokens with an invalid signature at the application boundary.\n\n## Configurations\n\nThe application must route a caller-supplied token into `Guardian.revoke/3` (for example a logout or session-revocation endpoint) and use a token module whose `revoke` / `on_revoke` callback mutates state keyed by the token claims (a whitelist that deletes by `jti` or a blacklist that inserts by `jti`, such as a GuardianDb-style store). With the default no-op `on_revoke` callback, no session state is changed and the issue is not exploitable.","format":"markdown","source":"eef"},{"lang":"es","text":"Verificación Incorrecta de Firma Criptográfica en ueberauth guardian permite a un atacante no autenticado revocar la sesión de una víctima con un token falsificado.\n\nGuardian.revoke/3 en lib/guardian.ex decodifica el token suministrado con peek/1, que no realiza verificación de firma (solo decodifica en base64 el encabezado y la carga útil del JWT). Las reclamaciones no verificadas resultantes se reenvían directamente a la devolución de llamada ’revoke’ del módulo de token configurado y a la devolución de llamada ’on_revoke’ de la implementación, un sumidero que muta el estado. Las operaciones hermanas refresh/2 y exchange/4 ambas llaman primero a decode_and_verify, por lo que la firma se verifica antes de que cualquier cosa actúe sobre las reclamaciones; revoke/3 es la única ruta que muta el estado y que actúa sobre las reclamaciones sin verificar la firma.\n\nUn atacante que conoce o adivina los valores de reclamación identificativos de una víctima (jti, sub) puede falsificar un JWT que contenga esas reclamaciones, firmarlo con una clave arbitraria y enviarlo a cualquier punto final que canalice un token suministrado por el llamador a Guardian.revoke/3 (el patrón estándar de cierre de sesión / revocación de sesión). Cuando el módulo de token muta el estado indexado por las reclamaciones (eliminación de lista blanca o inserción en lista negra, por ejemplo, un almacén estilo GuardianDb), la sesión legítima de la víctima es expulsada. Esto es una denegación de servicio de revocación de sesión no autenticada; el atacante nunca necesita el secreto de firma.\n\nEste problema afecta a guardian: desde 1.0.0 antes de 2.4.1.","source":"nvd"}],"published":"2026-08-01T18:46:05.234Z","modified":"2026-11-25T17:23:14.247Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"type":"semver","introduced":"1.0.0-beta.0","fixed":"2.4.1","status":"affected"}],"vendor":"ueberauth","product":"guardian","package":"guardian","cpe":"cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*","repo":"https://github.com/ueberauth/guardian","source":"cvelist"},{"ranges":[{"type":"git","introduced":"d65227145f72b290106c06cecbe42728fbf05fe2","fixed":"2bd7a8c29770d423d855c0a4965caa6c3e486901","status":"affected"}],"vendor":"ueberauth","product":"guardian","package":"ueberauth/guardian","cpe":"cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*","repo":"https://github.com/ueberauth/guardian","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0-beta.0","status":"affected","fixed":"2.4.1"}],"ecosystem":"Hex","package":"guardian","purl":"pkg:hex/guardian","source":"eef"},{"ranges":[{"type":"git","introduced":"d65227145f72b290106c06cecbe42728fbf05fe2","status":"affected","fixed":"2bd7a8c29770d423d855c0a4965caa6c3e486901"}],"repo":"https://github.com/ueberauth/guardian","source":"eef"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"2.4.1"}],"vendor":"ueberauth","product":"guardian","cpe":"cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ueberauth/guardian/security/advisories/GHSA-7975-hp3r-5qhv","tags":["advisory","exploit","patch","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-55735.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-55735","tags":["related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ueberauth/guardian/commit/d65227145f72b290106c06cecbe42728fbf05fe2","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ueberauth/guardian/commit/2bd7a8c29770d423d855c0a4965caa6c3e486901","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/guardian","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Yordis Prieto"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-03T19:29:43.841Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55735","url":"https://www.cve.org/CVERecord?id=CVE-2026-55735","licence":"CVE Terms of Use","modified":"2026-11-24T04:37:33.854Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-55735","url":"https://osv.dev/vulnerability/EEF-CVE-2026-55735","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:14.247Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55735","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55735","licence":"Public domain","modified":"2026-11-24T05:18:26.920Z"}],"updatedAt":"2026-11-25T22:59:30.802Z","epss":{"score":0.0046,"percentile":0.31904,"date":"2026-11-30T12:00:22.000Z"}}