PoC Monitor
← All CVEs
CVE-2026-40458published 17 Apr 2026 13:18 UTCData: JSON · API

PAC4J

Cross-Site Request Forgery in PAC4J

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. This issue was fixed in PAC4J versions 5.7.10 and 6.4.1

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.0high · scored by CNA · CWE-352
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

PAC4J PAC4J
  • >= 5.0, < 5.7.10
  • >= 6.0, < 6.4.1

Fixed in 5.7.10, 6.4.1

Mitigation

Upgrade PAC4J to 5.7.10 or 6.4.1 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published17 Apr 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.