Red Hat Keycloak before version 2.5.1 has an implementation of HMAC verification for JWS tokens that uses a method that runs in non-constant time, potentially leaving the application vulnerable to timing attacks.
https://bugzilla.redhat.com/show_bug.cgi?id=1412376
https://access.redhat.com/errata/RHSA-2017:0873
https://access.redhat.com/errata/RHSA-2017:0872
http://www.securitytracker.com/id/1038180