Home / PAC4J / PAC4J / CVE-2026-40458
CVE-2026-40458: is it exploited, and which versions of PAC4J are affected and fixed?
CVE-2026-40458 is a cross-site request forgery (CSRF) vulnerability in PAC4J. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: org.pac4j:pac4j-core before 5.7.10 and org.pac4j:pac4j-core from 6.0.0-RC1 before 6.4.1 (GitHub advisory GHSA-xw5c-jc7x-gf75). Fixed in 5.7.10 and 6.4.1 (GitHub advisory GHSA-xw5c-jc7x-gf75). Severity: High (7.0, CVSS 4.0, from CERT-PL).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.
What is CVE-2026-40458?
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
From the CVE record by CERT-PL, last updated April 17, 2026, 14:00 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| PAC4J | PAC4J | from 5.0 before 5.7.10 from 6.0 before 6.4.1 | 5.7.10, 6.4.1 |
As the CVE record by CERT-PL states it, last updated April 17, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.pac4j:pac4j-core | < 5.7.10 | 5.7.10 | GHSA-xw5c-jc7x-gf75 |
| Maven | org.pac4j:pac4j-core | >= 6.0.0-RC1, < 6.4.1 | 6.4.1 | GHSA-xw5c-jc7x-gf75 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 24, 2026. Summary: PAC4J has a Cross-Site Request Forgery (CSRF) Vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pac4j | pac4j | from 5.0.0 before 5.7.10 | application |
| pac4j | pac4j | after 6.0.0 before 6.4.1 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:45 UTC.
How severe is CVE-2026-40458?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.0 | CVSS 4.0 | 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 | CERT-PL |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40458 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 17, 2026)
- EPSS
- 0.17% probability of exploitation activity in the next 30 days, percentile 6.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-352 Cross-Site Request Forgery
Where are the vendor advisories and references?
- https://cert.pl/en/posts/2026/04/CVE-2026-40458/ third-party-advisory
- https://www.pac4j.org/blog/security-advisory-pac4j-core-and-ldap.html vendor-advisory
Who found and reported it?
- Bartłomiej Dmitruk, striga.ai (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 13, 2026
- Published
- April 17, 2026, 13:18 UTC
- CVE record updated
- April 17, 2026, 14:00 UTC by CERT-PL
- NVD
- Analyzed, last modified June 17, 2026, 10:45 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect PAC4J?
- Aug 29, 2026CVE-2026-82465 pac4j: data authenticity not verified
- Aug 29, 2026CVE-2026-82464 pac4j: open redirect
- Aug 29, 2026CVE-2026-82463 pac4j: incorrect authorization
- Aug 29, 2026CVE-2026-82462 pac4j: data authenticity not verified
- Aug 29, 2026CVE-2026-82461 pac4j: cryptographic signature not verified
- Apr 17, 2026CVE-2026-40459 PAC4J: LDAP injection
- Oct 10, 2024CVE-2023-25581 pac4j: deserialization of untrusted data
- Jan 6, 2022CVE-2021-44878 Pac4j: cryptographic signature not verified
Questions about CVE-2026-40458
Is CVE-2026-40458 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.17% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of PAC4J are affected by CVE-2026-40458?
org.pac4j:pac4j-core before 5.7.10 and org.pac4j:pac4j-core from 6.0.0-RC1 before 6.4.1, per the GitHub advisory GHSA-xw5c-jc7x-gf75. The tables above give every range the sources list.
Which version fixes CVE-2026-40458?
5.7.10 and 6.4.1, per the GitHub advisory GHSA-xw5c-jc7x-gf75. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40458?
High (7.0, CVSS 4.0, from CERT-PL). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40458?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.