# Pac4j token validation bypass if OpenID Connect provider supports none algorithm

Advisory record · `GHSA-xhw6-hjc9-679m`

- **Identifiers:** `GHSA-xhw6-hjc9-679m` · `CVE-2021-44878`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-347](https://cwe.mitre.org/data/definitions/347.html)
- **Tags:** [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 8 Jan 2022
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 8 Jan 2022, 00:36 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.pac4j:pac4j-oidc` (Maven): affected `<4.5.5 || >=5.0, <5.3.1`; fixed in `4.5.5`, `5.3.1`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0090, the 60th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 8 Jan 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-xhw6-hjc9-679m](https://github.com/advisories/GHSA-xhw6-hjc9-679m)
- [OSV: GHSA-xhw6-hjc9-679m](https://osv.dev/vulnerability/GHSA-xhw6-hjc9-679m)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-44878>
- <https://github.com/pac4j/pac4j/commit/09684e0de1c4753d22c53b8135d4ef61cfda76f7>
- <https://github.com/pac4j/pac4j/commit/22b82ffd702a132d9f09da60362fc6264fc281ae>
- <https://github.com/pac4j/pac4j/commit/9c87bbc536ed5d05f940ae015403120df2935589>
- <https://github.com/pac4j/pac4j>
- <https://openid.net/specs/openid-connect-core-1_0.html#IDToken>
- <https://www.pac4j.org/4.5.x/docs/release-notes.html>
- <https://www.pac4j.org/blog/cve_2021_44878_is_this_serious.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-xhw6-hjc9-679m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-xhw6-hjc9-679m/>. Everything for agents: <https://agentprime.io/llms.txt>.
