{"id":"CVE-2026-40458","state":"PUBLISHED","title":"Cross-Site Request Forgery in PAC4J","description":"PAC4J is vulnerable to Cross-Site Request Forgery (CSRF). A malicious attacker can craft a specially designed website which, when visited by a user, will automatically submit a forged cross-site request with a token whose hash collides with the victim's legitimate CSRF token. Importantly, the attacker does not need to know the victim’s CSRF token or its hash prior to the attack. Collisions in the deterministic String.hashCode() function can be computed directly, reducing the effective token's security space to 32 bits. This bypasses CSRF protection, allowing profile updates, password changes, account linking, and any other state-changing operations to be performed without the victim's consent.\n\nThis issue was fixed in PAC4J versions 5.7.10 and 6.4.1","publishedAt":"2026-04-17T13:18:26.308Z","updatedAt":"2026-04-17T14:00:04.811Z","severity":{"score":7,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","source":"CERT-PL"},"assigner":"CERT-PL","products":["PAC4J PAC4J"],"affected":[{"vendor":"PAC4J","product":"PAC4J","defaultStatus":"unaffected","versions":[{"version":"5.0","status":"affected","lessThan":"5.7.10","versionType":"semver"},{"version":"6.0","status":"affected","lessThan":"6.4.1","versionType":"semver"}]}],"references":["https://cert.pl/en/posts/2026/04/CVE-2026-40458/","https://www.pac4j.org/blog/security-advisory-pac4j-core-and-ldap.html"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40458.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40458","state":"PUBLISHED","datePublished":"2026-04-17T13:18:26.308Z","dateUpdated":"2026-04-17T14:00:04.811Z","assignerShortName":"CERT-PL","assignerOrgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateReserved":"2026-04-13T10:06:07.141Z"},"containers":{"cna":{"title":"Cross-Site Request Forgery in PAC4J","descriptions":[{"lang":"en","value":"PAC4J is vulnerable to Cross-Site Request Forgery (CSRF). A malicious attacker can craft a specially designed website which, when visited by a user, will automatically submit a forged cross-site request with a token whose hash collides with the victim's legitimate CSRF token. Importantly, the attacker does not need to know the victim’s CSRF token or its hash prior to the attack. Collisions in the deterministic String.hashCode() function can be computed directly, reducing the effective token's security space to 32 bits. This bypasses CSRF protection, allowing profile updates, password changes, account linking, and any other state-changing operations to be performed without the victim's consent.\n\nThis issue was fixed in PAC4J versions 5.7.10 and 6.4.1"}],"affected":[{"vendor":"PAC4J","product":"PAC4J","defaultStatus":"unaffected","versions":[{"version":"5.0","status":"affected","lessThan":"5.7.10","versionType":"semver"},{"version":"6.0","status":"affected","lessThan":"6.4.1","versionType":"semver"}]}],"references":[{"url":"https://cert.pl/en/posts/2026/04/CVE-2026-40458/","tags":["third-party-advisory"]},{"url":"https://www.pac4j.org/blog/security-advisory-pac4j-core-and-ldap.html","tags":["vendor-advisory"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":7,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","description":"CWE-352 Cross-Site Request Forgery (CSRF)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CERT-PL","orgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateUpdated":"2026-04-17T13:18:26.308Z"},"credits":[{"lang":"en","type":"finder","value":"Bartłomiej Dmitruk, striga.ai"}],"impacts":[{"capecId":"CAPEC-62","descriptions":[{"lang":"en","value":"CAPEC-62 Cross Site Request Forgery"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-17T13:57:28.263723Z","id":"CVE-2026-40458","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-17T14:00:04.811Z"}}]}}}