{"answers":{"affected":"4 open source packages ship an affected version, including org.pac4j:pac4j-oidc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-44878 in the wild and no public exploit code.","fix":"Upgrade org.pac4j:pac4j-oidc to a fixed version for your release line: 4.5.5 or 5.3.1.","what":"CVE-2021-44878 is a high-severity authentication bypass vulnerability in n/a, published on 6 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-44878 and fix it if it is affected.\n\nWhat it is: CVE-2021-44878 is a high-severity authentication bypass vulnerability in n/a, published on 6 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-44878 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.pac4j:pac4j-oidc (Maven): affected all versions; fixed in 4.5.5\n- org.pac4j:pac4j-oidc (Maven): affected all versions; fixed in 4.5.5\n- org.pac4j:pac4j-oidc (Maven): affected from 5.0; fixed in 5.3.1\n- org.pac4j:pac4j-oidc (Maven): affected from 5.0; fixed in 5.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-44878/ (Markdown: https://insights.sbomify.com/CVE-2021-44878/index.md)","id":"CVE-2021-44878","markdown":"https://insights.sbomify.com/CVE-2021-44878/index.md","name":"CVE-2021-44878","record":{"aliases":["GHSA-xhw6-hjc9-679m"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Java security library","requires_auth":"none","summary":"Attackers can bypass OpenID Connect token validation by using the 'none' algorithm, allowing unauthorized access if the library is not explicitly configured to reject it.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"pac4j","vendor":"pac4j"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Pac4j token validation bypass if OpenID Connect provider supports none algorithm","id":"CVE-2021-44878","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2021"},"n_packages":4,"n_references":3,"next":{"headline":"Null dereference in n/a","id":"CVE-2021-44879"},"packages":[{"ecosystem":"Maven","fixed":["4.5.5"],"introduced":["0"],"last_affected":[],"package":"org.pac4j:pac4j-oidc","purl":null,"source":"GHSA-xhw6-hjc9-679m"},{"ecosystem":"Maven","fixed":["4.5.5"],"introduced":["0"],"last_affected":[],"package":"org.pac4j:pac4j-oidc","purl":"pkg:maven/org.pac4j/pac4j-oidc","source":"GHSA-xhw6-hjc9-679m"},{"ecosystem":"Maven","fixed":["5.3.1"],"introduced":["5.0"],"last_affected":[],"package":"org.pac4j:pac4j-oidc","purl":null,"source":"GHSA-xhw6-hjc9-679m"},{"ecosystem":"Maven","fixed":["5.3.1"],"introduced":["5.0"],"last_affected":[],"package":"org.pac4j:pac4j-oidc","purl":"pkg:maven/org.pac4j/pac4j-oidc","source":"GHSA-xhw6-hjc9-679m"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2021-44877"},"products":["n/a"],"published":"2022-01-06","related":[{"cvss_score":8.7,"headline":"LDAP Injection in PAC4J","id":"CVE-2026-40459","kev_date_added":null,"published":"2026-04-17"},{"cvss_score":7,"headline":"Cross-Site Request Forgery in PAC4J","id":"CVE-2026-40458","kev_date_added":null,"published":"2026-04-17"},{"cvss_score":4.9,"headline":"Use of Cryptographically Weak Pseudo-Random Number Generator in org.pac4j:pac4j-saml","id":"CVE-2019-10755","kev_date_added":null,"published":"2019-09-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can bypass OpenID Connect token validation by using the 'none' algorithm, allowing unauthorized access if the library is not explicitly configured to reject it.","url":"https://insights.sbomify.com/CVE-2021-44878/"}