Live threats

All CVEs / Pac4j

CVE-2021-44878Pac4j

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pac4j.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pac4jpac4j< 4.5.5
pac4jpac4j≥ 5.0.0 < 5.3.1

Official sources

References

Links published by the sources. Open them with care.