Cross-Site Request Forgery in PAC4J Affects Security Features
CVE-2026-40458
7HIGH
What is CVE-2026-40458?
PAC4J is susceptible to Cross-Site Request Forgery (CSRF), allowing attackers to exploit vulnerabilities through crafted requests. By leveraging a collision in the deterministic String.hashCode() function, an attacker can forge CSRF tokens and bypass protective measures. This breach enables unauthorized actions such as profile changes, password modifications, and account linking without the victim's consent. To mitigate these risks, users must upgrade to PAC4J versions 5.7.10 or 6.4.1, where the issue has been resolved.
Affected Version(s)
PAC4J 5.0 < 5.7.10
PAC4J 6.0 < 6.4.1
