CVE-2026-40458
published high CVSS 4.0 · 7.0Cross-Site Request Forgery in PAC4J
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PAC4J | — | PAC4J5.0 to < 5.7.10 · 6.0 to < 6.4.1 · Other versions: unaffected | Affected | Not stated | CERT-PL |
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. This issue was fixed in PAC4J versions 5.7.10 and 6.4.1
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- CERT-PL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PAC4J | PAC4J | 5.0 to < 5.7.10 (affected · semver)6.0 to < 6.4.1 (affected · semver)Default: unaffected | CERT-PL · cna |
Weaknesses
1- CWE-352 CWE-352 Cross-Site Request Forgery (CSRF)
References
2Provider assertions
2CERT-PL · cna
Cross-Site Request Forgery in PAC4J
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f2d14f2909493e27d350426b0f37459079db622626548779d8510d7cb25bc18a
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record