MEDIUM5.5
GHSA-68hw-vfh7-xvg8
Forced Logout in keycloak-connect
Quick fix
GHSA-68hw-vfh7-xvg8 — keycloak-connect: upgrade to the fixed version with the command below.
npm install keycloak-connect@4.8.3Details
Versions of `keycloak-connect` prior to 4.4.0 are vulnerable to Forced Logout. The package fails to validate JWT signatures on the `/k_logout` route, allowing attackers to logout users and craft malicious JWTs with NBF values that prevent user access indefinitely.
## Recommendation
Upgrade to version 4.4.0 or later.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-10157[ADVISORY]
- https://github.com/keycloak/keycloak-nodejs-connect/commit/55e54b55d05ba636bc125a8f3d39f0052d13f8f6[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10157[WEB]
- https://snyk.io/vuln/SNYK-JS-KEYCLOAKNODEJSCONNECT-449920[WEB]
- https://www.npmjs.com/advisories/978[WEB]
- http://www.securityfocus.com/bid/108734[WEB]