PAC4J CSRF and LDAP injection flaws fixed
Two vulnerabilities in PAC4J allow CSRF token collision bypass and LDAP injection, both patched in updated releases.
Sourcecert.pl — open the original
What to check
- Applies to
- The 2 CVEs named below. Whether you run an affected version is not assessed: check the versions the source lists.
- Exploitation
- No exploitation in the wild and no public exploit is recorded for the CVEs named.
CERT Polska coordinated disclosure of two vulnerabilities in PAC4J, a Java security framework used for authentication and authorization. CVE-2026-40458 is a CSRF weakness stemming from PAC4J's use of the deterministic String.hashCode() function to generate CSRF tokens, reducing the effective token security space to only 32 bits. An attacker can precompute hash collisions without ever needing to see the victim's actual token, then craft a malicious site that auto-submits a forged request matching the victim's token hash, enabling unauthorized profile updates, password changes, and account linking.
CVE-2026-40459 is an LDAP injection vulnerability affecting multiple ID-based search methods in PAC4J, allowing a low-privileged remote attacker to inject crafted LDAP syntax and perform unauthorized directory queries or operations. Both issues were responsibly reported by Bartłomiej Dmitruk of striga.ai and have been fixed by the PAC4J maintainers: CVE-2026-40458 in versions 5.7.10 and 6.4.1, and CVE-2026-40459 in versions 4.5.10, 5.7.10, and 6.4.1. There is no indication of active exploitation; organizations using PAC4J should upgrade to the patched versions.
Mentioned in this report
Source reporting: https://cert.pl/en/posts/2026/04/CVE-2026-40458
Free public brief. Slack alerts on the vendors you run come with the paid plans, and a new account gets three days of them, no card.
What this brief leaves out
This page is the free tier: the write-up, the severity, the names. In the app the same report carries live profiles of the CVEs it names. The paid plans add the security research and news reporting the free tier leaves out.
It sits in a corpus of 16,570 reports from 147 sources, 725 of them written in the last seven days, and it grows through the day.
A new account starts with three days of all of it, no card, then keeps the government and CERT reporting free. Slack alerts are a paid-plan feature: name the vendors you run and Slack hears about the reports that touch them, not the rest of the week's. Nothing is charged unless you subscribe.
Create a free account What it costs