HIGH 7.5

CVE-2021-44878

Pac4j token validation bypass if OpenID Connect provider supports none algorithm

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.pac4j » pac4j-oidc
< 4.5.5>= 5.0, < 5.3.1
4.5.5, 5.3.1

Blast radius

1affected artifacts
83affected versions
749dependent artifacts (est.)
42,065dependent versions

21% of the dependent artifacts (160) still pull an affected version in their latest release.

DepthDependent versions
Direct
5,945
2 hops
17,234
3 hops
12,752
4 hops
4,826
5 hops
997
6 hops
311

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.