{"id":"CVE-2026-42206","aliases":["CVE-2026-42206","GHSA-3gx8-q682-38mx"],"related":[],"kind":"vulnerability","state":"published","title":"Roadiz OpenID Connect nonce generated but never validated — ID token replay attack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `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.\n\n### Details\nIn `src/OAuth2LinkGenerator.php`, a nonce is created and sent to the IdP:\n```php\n'nonce' => $this->tokenGenerator->generateToken(),\n```\nHowever, this value is neither stored in session, cache, nor any other persistent store.\n\nIn `src/OpenIdJwtConfigurationFactory.php`, the JWT validation constraints are:\n- `LooseValidAt` (expiry)\n- `PermittedFor` (audience)\n- `IssuedBy` (issuer)\n- `HostedDomain` (optional)\n- `UserInfoEndpoint` (optional)\n\n**No nonce constraint is present.**\n\nIn `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.\n\n### PoC\n1. 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).\n2. 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.\n3. Result: An attacker can authenticate as the victim within the ID token's validity window.\n\nAdditionally, 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.\n\n### Impact\n- **ID token replay attacks**: Valid but intercepted tokens can be reused for authentication within their validity period.\n- **Token injection attacks**: A malicious or compromised identity provider can inject tokens across sessions without detection.\n- Affects any Roadiz application using the `roadiz/openid` package with OpenID Connect SSO.\n\nThe 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-29T20:51:40.000Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":"< 2.3.43","status":"affected"},{"version":">= 2.5.0, < 2.5.45","status":"affected"},{"version":">= 2.6.0, < 2.6.31","status":"affected"},{"version":">= 2.7.0, < 2.7.18","status":"affected"}],"vendor":"roadiz","product":"core-bundle-dev-app","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.7.18"}],"ecosystem":"Packagist","package":"roadiz/openid","purl":"pkg:composer/roadiz/openid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.6.0","status":"affected","fixed":"2.6.31"}],"ecosystem":"Packagist","package":"roadiz/openid","purl":"pkg:composer/roadiz/openid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.5.0","status":"affected","fixed":"2.5.45"}],"ecosystem":"Packagist","package":"roadiz/openid","purl":"pkg:composer/roadiz/openid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.43"}],"ecosystem":"Packagist","package":"roadiz/openid","purl":"pkg:composer/roadiz/openid","source":"ghsa"}],"references":[{"url":"https://github.com/roadiz/core-bundle-dev-app/security/advisories/GHSA-3gx8-q682-38mx","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42206","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/roadiz/core-bundle-dev-app","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-13T17:19:35.930Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42206","url":"https://www.cve.org/CVERecord?id=CVE-2026-42206","licence":"CVE Terms of Use","modified":"2026-05-13T17:47:17.371Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3gx8-q682-38mx","url":"https://github.com/advisories/GHSA-3gx8-q682-38mx","licence":"CC-BY-4.0","modified":"2026-05-13T13:55:48.291Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42206","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42206","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.116Z","epss":{"score":0.00152,"percentile":0.04604,"date":"2026-12-01T12:00:22.000Z"}}