Security mailing lists by PureSourceCode

CVE-2021-44878

HIGH 7.5CVSS 3.1

Pac4j 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pac4j pac4j
cpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:*
< 4.5.5 4.5.5
NVD pac4j pac4j
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.