{"id":"CVE-2021-26296","aliases":["CVE-2021-26296","GHSA-gq67-pp9w-43gp"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Request Forgery (CSRF) vulnerability in Apache MyFaces","summary":"In the default configuration, Apache MyFaces Core versions 2.2.0 to 2.2.13, 2.3.0 to 2.3.7, 2.3-next-M1 to 2.3-next-M4, and 3.0.0-RC1 use cryptographically weak implicit and explicit cross-site request forgery (CSRF) tokens. Due to that limitation, it is possible (although difficult) for an attacker to calculate a future CSRF token value and to use that value to trick a user into executing unwanted actions on an application.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the default configuration, Apache MyFaces Core versions 2.2.0 to 2.2.13, 2.3.0 to 2.3.7, 2.3-next-M1 to 2.3-next-M4, and 3.0.0-RC1 use cryptographically weak implicit and explicit cross-site request forgery (CSRF) tokens. Due to that limitation, it is possible (although difficult) for an attacker to calculate a future CSRF token value and to use that value to trick a user into executing unwanted actions on an application.","source":"cvelist"},{"lang":"en","text":"In the default configuration, Apache MyFaces Core versions 2.2.0 to 2.2.13, 2.3.0 to 2.3.7, 2.3-next-M1 to 2.3-next-M4, and 3.0.0-RC1 use cryptographically weak implicit and explicit cross-site request forgery (CSRF) tokens. Due to that limitation, it is possible (although difficult) for an attacker to calculate a future CSRF token value and to use that value to trick a user into executing unwanted actions on an application.\n\n\nMitigation:\nExisting web.xml configuration parameters can be used to direct\nMyFaces to use SecureRandom for CSRF token generation:\n\norg.apache.myfaces.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN=secureRandom\norg.apache.myfaces.RANDOM_KEY_IN_CSRF_SESSION_TOKEN=secureRandom\norg.apache.myfaces.RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN=secureRandom","format":"markdown","source":"ghsa"},{"lang":"es","text":"En la configuración predeterminada, Apache MyFaces Core versiones 2.2.0 hasta 2.2.13, versiones 2.3.0 hasta 2.3.7, versiones 2.3-next-M1 hasta 2.3-next-M4 y 3.0.0-RC1, usan tokens de tipo cross-site request forgery (CSRF) implícitos y explícitos criptográficamente débiles.&#xa0;Debido a esa limitación, es posible (aunque difícil) para un atacante calcular un valor futuro de token CSRF y usar ese valor para engañar al usuario a ejecutar acciones no deseadas en una aplicación","source":"nvd"}],"published":"2021-02-19T08:30:14.000Z","modified":"2026-09-10T03:49:06.075Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-330","CWE-352"],"affected":[{"ranges":[{"type":"custom","introduced":"Apache MyFaces Core 2.2","fixed":"2.2.14","status":"affected"},{"type":"custom","introduced":"Apache MyFaces Core 2.3","fixed":"2.3.8","status":"affected"},{"type":"custom","introduced":"Apache MyFaces Core 2.3-next","fixed":"2.3-next-M5","status":"affected"},{"type":"custom","introduced":"Apache MyFaces Core 3.0","fixed":"3.0.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache MyFaces Core","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.25"}],"ecosystem":"Maven","package":"org.apache.myfaces.core:myfaces-core-module","purl":"pkg:maven/org.apache.myfaces.core/myfaces-core-module","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.19"}],"ecosystem":"Maven","package":"org.apache.myfaces.core:myfaces-core-module","purl":"pkg:maven/org.apache.myfaces.core/myfaces-core-module","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.14"}],"ecosystem":"Maven","package":"org.apache.myfaces.core:myfaces-core-module","purl":"pkg:maven/org.apache.myfaces.core/myfaces-core-module","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.8"}],"ecosystem":"Maven","package":"org.apache.myfaces.core:myfaces-core-module","purl":"pkg:maven/org.apache.myfaces.core/myfaces-core-module","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.2.0","lastAffected":"2.2.13"},{"status":"affected","introduced":"2.3.0","lastAffected":"2.3.7"},{"status":"affected","version":"2.3"},{"status":"affected","version":"2.3"},{"status":"affected","version":"2.3"},{"status":"affected","version":"2.3"},{"status":"affected","version":"3.0.0"}],"vendor":"apache","product":"myfaces","cpe":"cpe:2.3:a:apache:myfaces:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_insight","cpe":"cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread.html/r2b73e2356c6155e9ec78fdd8f72a4fac12f3e588014f5f535106ed9b%40%3Cannounce.apache.org%3E","tags":["mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://seclists.org/fulldisclosure/2021/Feb/66","tags":["mailing-list","third-party-advisory","web","x-refsource-fulldisc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://packetstormsecurity.com/files/161484/Apache-MyFaces-2.x-Cross-Site-Request-Forgery.html","tags":["exploit","third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0007/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26296","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/myfaces/commit/cc6e1cc7b9aa17e52452f7f2657b3af9c421b2b2","tags":["web"],"sources":["ghsa"]},{"url":"https://issues.apache.org/jira/browse/MYFACES-4373","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0007","tags":["web"],"sources":["ghsa"]}],"credits":["Apache MyFaces would like to thank Wolfgang Ettlinger (Certitude Consulting GmbH)"],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-26296","url":"https://www.cve.org/CVERecord?id=CVE-2021-26296","licence":"CVE Terms of Use","modified":"2025-02-13T16:27:52.470Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gq67-pp9w-43gp","url":"https://github.com/advisories/GHSA-gq67-pp9w-43gp","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:06.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-26296","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26296","licence":"Public domain","modified":"2026-06-17T03:43:04.383Z"}],"updatedAt":"2026-11-25T22:57:59.991Z","epss":{"score":0.02924,"percentile":0.87421,"date":"2026-12-01T12:00:22.000Z"}}