CVE-2026-53431
JSON

9.1critical

Boruta accepts expired JWT client assertions due to missing exp claim validation

Severity
9.1critical CVSS:4.0 by EEF
Exploit likelihood
0.56% (higher than 47% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-53431GHSA-xjv8-vmh5-xhf6

Description

Authentication Bypass by Capture-replay vulnerability in malach-it Boruta allows an attacker who has obtained a previously valid JWT client assertion to authenticate as the issuing OAuth client after the assertion has expired. Boruta accepts JWT-based client authentication (client_secret_jwt and private_key_jwt token endpoint authentication methods) but never enforces that the assertion's exp claim is in the future. The pre-check helper Boruta.Oauth.Request.Base.check_expiration/1 in lib/boruta/oauth/request/base.ex only verifies that an exp claim is present (it pattern-matches on the existence of the key and returns success), and the Joken token configuration used for signature verification, Boruta.Oauth.Authorization.Client.Token.token_config/0 in lib/boruta/oauth/authorization/client.ex, returns an empty map, so Joken's default exp claim validator is not engaged either. Any attacker who obtains a validly-signed client assertion (for example through logs, reverse proxies, browser tooling, or other observability surfaces) can replay it indefinitely to authenticate as the client and obtain access tokens with that client's privileges. This issue affects boruta: from 2.3.0 before 2.3.7 and from 3.0.0-beta.1 onward.

Affected

Product or packageVersionsReported by
borutafrom 2.3.0 before 2.3.7, from 3.0.0-beta.1 before *CVE List
malach-it/boruta_authfrom 5bfbe1c5443bffe71cf1bf954bbdff61327d9a83 before *CVE List
boruta (Hex)from 2.3.0 before 2.3.7, from 3.0.0-beta.1Erlang Ecosystem Foundation
https://github.com/malach-it/boruta_authfrom 5bfbe1c5443bffe71cf1bf954bbdff61327d9a83 before 5204f88f9b2cdd9637a755337ed5f99185be5474, before 69363432aa36760fc5438e4e17115d0f7c1b925aErlang Ecosystem Foundation

All scores

EEF9.1critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-294

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

Authentication Bypass by Capture-replay vulnerability in malach-it Boruta allows an attacker who has obtained a previously valid JWT client assertion to authenticate as the issuing OAuth client after the assertion has expired. Boruta accepts JWT-based client authentication (client_secret_jwt and private_key_jwt token endpoint authentication methods) but never enforces that the assertion's exp claim is in the future. The pre-check helper Boruta.Oauth.Request.Base.check_expiration/1 in lib/boruta/oauth/request/base.ex only verifies that an exp claim is present (it pattern-matches on the existence of the key and returns success), and the Joken token configuration used for signature verification, Boruta.Oauth.Authorization.Client.Token.token_config/0 in lib/boruta/oauth/authorization/client.ex, returns an empty map, so Joken's default exp claim validator is not engaged either. Any attacker who obtains a validly-signed client assertion (for example through logs, reverse proxies, browser tooling, or other observability surfaces) can replay it indefinitely to authenticate as the client and obtain access tokens with that client's privileges. This issue affects boruta: from 2.3.0 before 2.3.7 and from 3.0.0-beta.1 onward.

Erlang Ecosystem Foundation

Summary

Authentication Bypass by Capture-replay vulnerability in malach-it Boruta allows an attacker who has obtained a previously valid JWT client assertion to authenticate as the issuing OAuth client after the assertion has expired.

Boruta accepts JWT-based client authentication (client_secret_jwt and private_key_jwt token endpoint authentication methods) but never enforces that the assertion's exp claim is in the future. The pre-check helper Boruta.Oauth.Request.Base.check_expiration/1 in lib/boruta/oauth/request/base.ex only verifies that an exp claim is present (it pattern-matches on the existence of the key and returns success), and the Joken token configuration used for signature verification, Boruta.Oauth.Authorization.Client.Token.token_config/0 in lib/boruta/oauth/authorization/client.ex, returns an empty map, so Joken's default exp claim validator is not engaged either. Any attacker who obtains a validly-signed client assertion (for example through logs, reverse proxies, browser tooling, or other observability surfaces) can replay it indefinitely to authenticate as the client and obtain access tokens with that client's privileges.

This issue affects boruta: from 2.3.0 before 2.3.7 and from 3.0.0-beta.1 onward.

Workarounds

Restrict the use of JWT-based client authentication (client_secret_jwt and private_key_jwt) to highly trusted clients, and prefer non-JWT client authentication methods (client_secret_basic or client_secret_post) where possible. Where JWT client authentication must remain enabled, issue short-lived client assertions and protect them from exposure in application logs, fronting proxies, browser tooling, and observability systems to reduce the window for replay.

Configurations

The attack requires that the Boruta deployment has provisioned at least one OAuth client configured to authenticate via JWT client assertions (client_secret_jwt or private_key_jwt token endpoint authentication methods). Deployments that authenticate clients only via client_secret_basic or client_secret_post are not exposed.

NVD (es)

Una vulnerabilidad de omisión de autenticación por captura-repetición en malach-it Boruta permite a un atacante que ha obtenido una aserción de cliente JWT previamente válida autenticarse como el cliente OAuth emisor después de que la aserción haya expirado. Boruta acepta la autenticación de cliente basada en JWT (métodos de autenticación de punto final de token client_secret_jwt y private_key_jwt) pero nunca impone que la declaración ’exp’ de la aserción esté en el futuro. La función auxiliar de pre-verificación Boruta.Oauth.Request.Base.check_expiration/1 en lib/boruta/oauth/request/base.ex solo verifica que una declaración ’exp’ esté presente (hace coincidir patrones con la existencia de la clave y devuelve éxito), y la configuración de token de Joken utilizada para la verificación de firma, Boruta.Oauth.Authorization.Client.Token.token_config/0 en lib/boruta/oauth/authorization/client.ex, devuelve un mapa vacío, por lo que el validador de declaración ’exp’ predeterminado de Joken tampoco se activa. Cualquier atacante que obtenga una aserción de cliente válidamente firmada (por ejemplo, a través de registros, proxies inversos, herramientas de navegador u otras superficies de observabilidad) puede reproducirla indefinidamente para autenticarse como el cliente y obtener tokens de acceso con los privilegios de ese cliente. Este problema afecta a boruta: desde 2.3.0 antes de 2.3.7.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-53431 changed 2026-11-20CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-53431 changed 2026-11-26CC-BY-4.0
NVDCVE-2026-53431 changed 2026-11-20Public domain