CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
0.17% in 30 days
higher than 6% of CVEs; FIRST, December 2, 2026

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?

VendorProductAffectedFixed or not affected from
PAC4JPAC4Jfrom 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?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.pac4j:pac4j-core< 5.7.105.7.10GHSA-xw5c-jc7x-gf75
Mavenorg.pac4j:pac4j-core>= 6.0.0-RC1, < 6.4.16.4.1GHSA-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?

VendorProductVersionsType
pac4jpac4jfrom 5.0.0 before 5.7.10application
pac4jpac4jafter 6.0.0 before 6.4.1application

NVD analysis (status Analyzed), last modified June 17, 2026, 10:45 UTC.

How severe is CVE-2026-40458?

ScoreVersionVectorSource
High 7.0CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NCERT-PL
Medium 6.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NNVD

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?

Where are the vendor advisories and references?

Who found and reported it?

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?

Every CVE in PAC4J

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.