{"schema_version":"1.9.2","id":"EEF-CVE-2026-55735","published":"2026-08-01T18:46:05.234Z","modified":"2026-11-25T17:23:14.247216469Z","aliases":["CVE-2026-55735","GHSA-7975-hp3r-5qhv"],"summary":"Guardian.revoke/3 acts on unverified token claims, allowing forged-token session revocation","details":"## 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.","affected":[{"package":{"name":"guardian","ecosystem":"Hex","purl":"pkg:hex/guardian"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0-beta.0"},{"fixed":"2.4.1"}]}],"versions":["1.0.0","1.0.0-beta.0","1.0.0-beta.1","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","2.0.0","2.1.1","2.1.2","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.3.0","2.3.1","2.3.2","2.4.0"],"ecosystem_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Guardian'"],"program_files":["lib/guardian.ex"],"program_routines":["'Elixir.Guardian':revoke/3"]},"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Guardian'"],"program_files":["lib/guardian.ex"],"program_routines":["'Elixir.Guardian':revoke/3"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-55735.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/ueberauth/guardian","events":[{"introduced":"d65227145f72b290106c06cecbe42728fbf05fe2"},{"fixed":"2bd7a8c29770d423d855c0a4965caa6c3e486901"}]}],"versions":["v2.4.0","v2.3.2","v2.3.1","v2.3.0","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.1.2","v2.1.1","2.1.0","v2.0.0","v1.2.1","v1.2.0","v1.1.1","v1.1.0","v1.0.1","v1.0.0","v1.0.0-beta.1"],"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Guardian'"],"program_files":["lib/guardian.ex"],"program_routines":["'Elixir.Guardian':revoke/3"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-55735.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/ueberauth/guardian/security/advisories/GHSA-7975-hp3r-5qhv"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-55735.html"},{"type":"WEB","url":"https://github.com/ueberauth/guardian/commit/d65227145f72b290106c06cecbe42728fbf05fe2"},{"type":"FIX","url":"https://github.com/ueberauth/guardian/commit/2bd7a8c29770d423d855c0a4965caa6c3e486901"},{"type":"PACKAGE","url":"https://hex.pm/packages/guardian"}],"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-475"],"cpe_ids":["cpe:2.3:a:ueberauth:guardian:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-347"]},"severity":[{"type":"CVSS_V4","score":"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","source":"CNA"}],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"ANALYST"},{"name":"Yordis Prieto","type":"REMEDIATION_DEVELOPER"}]}