5.7medium
Roadiz OpenID Connect nonce generated but never validated — ID token replay attack
- Severity
- 5.7medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3gx8-q682-38mx
Description
Roadiz is a polymorphic content management system based on a node system. Prior to versions 2.3.43, 2.5.45, 2.6.31, and 2.7.18, the roadiz/openid package generates an OIDC nonce in OAuth2LinkGenerator::generate() and includes it in the authorization request sent to the identity provider, but never stores it and never validates it on the callback. The OpenIdJwtConfigurationFactory validation chain does not include a nonce constraint, and OpenIdAuthenticator::authenticate() never checks the nonce claim in the returned ID token against a stored value. This issue has been patched in versions 2.3.43, 2.5.45, 2.6.31, and 2.7.18.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| roadiz core-bundle-dev-app | < 2.3.43, >= 2.5.0, < 2.5.45, >= 2.6.0, < 2.6.31, >= 2.7.0, < 2.7.18 | CVE List |
| roadiz/openid (Packagist) | from 2.7.0 before 2.7.18, from 2.6.0 before 2.6.31, from 2.5.0 before 2.5.45, before 2.3.43 | GitHub Advisory Database |
All scores
| GitHub_M | 5.7medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Roadiz is a polymorphic content management system based on a node system. Prior to versions 2.3.43, 2.5.45, 2.6.31, and 2.7.18, the roadiz/openid package generates an OIDC nonce in OAuth2LinkGenerator::generate() and includes it in the authorization request sent to the identity provider, but never stores it and never validates it on the callback. The OpenIdJwtConfigurationFactory validation chain does not include a nonce constraint, and OpenIdAuthenticator::authenticate() never checks the nonce claim in the returned ID token against a stored value. This issue has been patched in versions 2.3.43, 2.5.45, 2.6.31, and 2.7.18.
GitHub Advisory Database
Summary
The roadiz/openid package generates an OIDC nonce in OAuth2LinkGenerator::generate() and includes it in the authorization request sent to the identity provider, but never stores it and never validates it on the callback. The OpenIdJwtConfigurationFactory validation chain does not include a nonce constraint, and OpenIdAuthenticator::authenticate() never checks the nonce claim in the returned ID token against a stored value.
Details
In src/OAuth2LinkGenerator.php, a nonce is created and sent to the IdP:
'nonce' => $this->tokenGenerator->generateToken(),
However, this value is neither stored in session, cache, nor any other persistent store.
In src/OpenIdJwtConfigurationFactory.php, the JWT validation constraints are:
LooseValidAt(expiry)PermittedFor(audience)IssuedBy(issuer)HostedDomain(optional)UserInfoEndpoint(optional)
No nonce constraint is present.
In src/Authentication/OpenIdAuthenticator.php, the authenticate() method validates the state CSRF token correctly (fixed in v2.7.10), but never retrieves a stored nonce or compares it against the nonce claim in the ID token.
PoC
- Obtain a valid ID token from a legitimate OIDC flow for a target user (e.g. via network interception, browser history leak, or referrer header exposure on a non-HTTPS redirect).
- Replay the ID token: Since the nonce in the token is never cross-checked against a client-stored value, the token passes all validation constraints as long as it has not expired.
- Result: An attacker can authenticate as the victim within the ID token's validity window.
Additionally, in an authorization code flow with multiple concurrent sessions, a malicious IdP or a compromised token endpoint could inject a token with a mismatched nonce, and the application would accept it silently.
Impact
- ID token replay attacks: Valid but intercepted tokens can be reused for authentication within their validity period.
- Token injection attacks: A malicious or compromised identity provider can inject tokens across sessions without detection.
- Affects any Roadiz application using the
roadiz/openidpackage with OpenID Connect SSO.
The OIDC Core 1.0 specification (Section 3.1.3.7) explicitly requires clients to verify the nonce claim if it was present in the authorization request.
NVD (es)
Roadiz es un sistema de gestión de contenido polimórfico basado en un sistema de nodos. Antes de las versiones 2.3.43, 2.5.45, 2.6.31 y 2.7.18, el paquete roadiz/openid genera un nonce OIDC en OAuth2LinkGenerator::generate() y lo incluye en la solicitud de autorización enviada al proveedor de identidad, pero nunca lo almacena y nunca lo valida en la devolución de llamada. La cadena de validación de OpenIdJwtConfigurationFactory no incluye una restricción de nonce, y OpenIdAuthenticator::authenticate() nunca verifica la declaración de nonce en el token de ID devuelto contra un valor almacenado. Este problema ha sido parcheado en las versiones 2.3.43, 2.5.45, 2.6.31 y 2.7.18.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42206 changed 2026-05-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3gx8-q682-38mx changed 2026-05-13 | CC-BY-4.0 |
| NVD | CVE-2026-42206 changed 2026-10-26 | Public domain |