CVE-2021-44878
HIGH 7.5CVSS 3.1Pac4j token validation bypass if OpenID Connect provider supports none algorithm
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.
- Published
- 6 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-347
- Also known as
- GHSA-xhw6-hjc9-679m
- Sources
- NVDJSONOSV GHSA-xhw6-hjc9-679mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pac4j | pac4jcpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:* |
< 4.5.5 | 4.5.5 |
| NVD | pac4j | pac4jcpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.3.1 | 5.3.1 |
| OSV | Maven | org.pac4j:pac4j-oidc | < 4.5.5 | 4.5.5 |
| OSV | Maven | org.pac4j:pac4j-oidc | >= 5.0, < 5.3.1 | 5.3.1 |
References
- https://github.com/pac4j/pac4j/commit/22b82ffd702a132d9f09da60362fc6264fc281ae · Patch, Third Party Advisory, WEB
- https://openid.net/specs/openid-connect-core-1_0.html#IDToken · Product, Third Party Advisory, WEB
- https://www.pac4j.org/blog/cve_2021_44878_is_this_serious.html · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-44878 · ADVISORY
- https://github.com/pac4j/pac4j/commit/09684e0de1c4753d22c53b8135d4ef61cfda76f7 · WEB
- https://github.com/pac4j/pac4j/commit/9c87bbc536ed5d05f940ae015403120df2935589 · WEB
- https://github.com/pac4j/pac4j · PACKAGE
- https://www.pac4j.org/4.5.x/docs/release-notes.html · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Jan 2022)