CVE-2022-2237 is a medium-severity (CVSS 6.1) Open Redirect vulnerability in keycloak-connect. A fix is available for keycloak-connect — see the affected versions and patch details below.
keycloak-connect contains Open redirect vulnerability in the Node.js adapter
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-2237.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
keycloak-connectnpmDescription
A flaw was found in the Keycloak Node.js Adapter. This flaw allows an attacker to benefit from an Open Redirect vulnerability in the checkSso function.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | keycloak-connect | all versions | 21.0.1npm install keycloak-connect@21.0.1 |
Affected Products
keycloak node.js adapterredhatsingle sign-onredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for keycloak-connect, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update keycloak-connect to 21.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-2237 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
CodeReady Studio is no longer supported. Therefore, this flaw will not be addressed in CodeReady Studio. Please see https://developers.redhat.com/articles/2022/04/18/announcement-red-hat-codeready-studio-reaches-end-life for more information.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Single Sign-On 7 | keycloak-js-adapter | RHSA-2023:1049 |
Frequently Asked Questions
Is CVE-2022-2237 in your dependencies?
Find it across npm, including transitive dependencies.