CVE-2021-44878Pac4j
High 7.5 No auth needed
Follow: this CVE · Pac4j · Pac4j We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Jan 6, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-347
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
If an OpenID Connect provider supports the "none" algorithm (i.e., tokens with no signature), pac4j v5.3.0 (and prior) does not refuse it without an explicit configuration on its side or for the "idtoken" response type which is not secure and violates the OpenID Core Specification. The "none" algorithm does not require any signature verification when validating the ID tokens, which allows the attacker to bypass the token validation by injecting a malformed ID token using "none" as the value of "alg" key in the header with an empty signature value.
What to do
- Apply the vendor's security update for Pac4j.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.pac4j:pac4j-oidc |
< 4.5.5 |
4.5.5 |
— |
| Maven | org.pac4j:pac4j-oidc |
≥ 5.0 < 5.3.1 |
5.3.1 |
— |
Per OSV / GitHub Advisories (GHSA-xhw6-hjc9-679m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pac4j | pac4j | < 4.5.5 |
| pac4j | pac4j | ≥ 5.0.0 < 5.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- openid.net Product Third Party Advisory
- www.pac4j.org Mitigation Vendor Advisory