{"id":"CVE-2021-26296","published":"2021-02-19T08:30:14Z","modified":"2025-02-13T16:27:52Z","title":"Cross-Site Request Forgery (CSRF) vulnerability in Apache MyFaces","vendor":"Apache","product":"Apache MyFaces Core","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02924,"percentile":0.87383,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://lists.apache.org/thread.html/r2b73e2356c6155e9ec78fdd8f72a4fac12f3e588014f5f535106ed9b%40%3Cannounce.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2021/Feb/66","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://packetstormsecurity.com/files/161484/Apache-MyFaces-2.x-Cross-Site-Request-Forgery.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0007/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":22.5,"factors":[{"name":"EPSS percentile","points":17.48},{"name":"Public exploit code","points":5.0}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache MyFaces Core","versions":[">= Apache MyFaces Core 2.2, < 2.2.14",">= Apache MyFaces Core 2.3, < 2.3.8",">= Apache MyFaces Core 2.3-next, < 2.3-next-M5",">= Apache MyFaces Core 3.0, < 3.0.0"]}],"workarounds":{"items":["Existing web.xml configuration parameters can be used to direct MyFaces to use SecureRandom for CSRF token generation: org.apache.myfaces.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN=secureRandom org.apache.myfaces.RANDOM_KEY_IN_CSRF_SESSION_TOKEN=secureRandom org.apache.myfaces.RANDOM_KEY_IN_WEBSOCKET_SESSION_TOKEN=secureRandom"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.myfaces.core:myfaces-core-module","vulnerableRanges":["<2.0.25",">=2.1.0, <2.1.19",">=2.2.0, <2.2.14",">=2.3.0, <2.3.8"],"patched":["2.0.25","2.1.19","2.2.14","2.3.8"],"from":["GHSA-gq67-pp9w-43gp"],"provenance":"source"}],"summary":{"text":"Apache MyFaces Core, the Apache Java server-side web framework, uses cryptographically weak implicit and explicit CSRF tokens in its default configuration across 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. An attacker able to predict a future token could, with considerable difficulty, craft a request that tricks a user into performing unwanted actions in the affected application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:46Z"},"euvd":{"id":"EUVD-2021-1329","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/161484/Apache-MyFaces-2.x-Cross-Site-Request-Forgery.html"]}