Micronaut Framework 5.2.8 Released!
We have released Micronaut Framework 5.2.8, a security release. It updates to Micronaut Security 5.4.3, which addresses 14 GitHub Security Advisories, and to Micronaut Servlet 6.2.3, which addresses three, one of them critical. We strongly recommend that all users update to Micronaut Framework 5.2.8.
Micronaut Servlet
Micronaut Servlet 6.2.3 fixes the following advisories:
- Critical, GHSA-w6m4-q67f-c6vj:
micronaut.ssl.client-authenticationwas not enforced on Tomcat and Undertow, so clients without a certificate got past mutual TLS. - High, GHSA-23wq-jr9g-78hm: the POJA runtime parsed unread request bodies as the next request, which allowed request smuggling, handled
Content-LengthandTransfer-Encodingleniently, and did not bound line lengths. - High, GHSA-7xvw-h4vr-r24m: the JDK HTTP server runtime decoded request paths before it parsed the URI, which caused double decoding, path and query confusion, and dropped connections.
If you rely on mutual TLS with Tomcat or Undertow, update as soon as possible.
Micronaut Security
Micronaut Security 5.4.3 fixes three advisories of high severity, ten of medium severity, and one of low severity.
High
- GHSA-7xhp-hpw5-j83r: unsigned JWTs were accepted after OpenID discovery failed at startup. The JWKS signatures of OpenID providers are now registered even when discovery fails.
- GHSA-88vj-5xqx-98wp:
WellKnownProxyFilterforwarded theCookieandAuthorizationheaders to the issuer. Credentials are no longer forwarded. - GHSA-v87w-xpvm-29vx: the UserInfo token validator accepted access tokens issued to other clients by default.
Medium
- GHSA-fwcg-w62g-38x8:
HEADrequests bypassed intercept URL map rules defined forGET. - GHSA-756q-64wx-cg5x: static resources with no matching rule were public when
micronaut.security.reject-not-foundwasfalse. - GHSA-23v7-vrjc-9m3p:
@Securedexpressions could be evaluated as another user during JWKS load. Expressions are now evaluated in the context of the request being checked. - GHSA-h926-pf3j-rwq5:
Authenticatorignored the order of authentication providers, so the roles of the fastest provider won. - GHSA-7wpc-pg3p-r423: signed CSRF tokens were not bound to the user with cookie authentication. They are now bound to the authenticated user.
- GHSA-9233-7r85-gq32: the OpenID password grant ignored the global
OpenIdAuthenticationMapperand logged in users that the mapper rejects. The password grant flow now uses the global mapper. - GHSA-v3pj-67qw-v7x4:
idtokenlogout leaked the ID token to the wrong provider when issuers overlap. The logout provider is now resolved by audience. - GHSA-vm58-x8hm-gcp7: the UserInfo token validator leaked access tokens to other OpenID providers. Bearer tokens are now sent only to the UserInfo endpoint of their issuer.
- GHSA-wwxx-8pqm-6mvg: an unbounded LDAP connection pool blocked logins after a burst of anonymous requests.
- GHSA-mprx-ccc5-533h: LDAP
context.propertiesnever reached JNDI, sosslwas ignored and binds were sent in cleartext.
Low
- GHSA-295c-r6r5-pvqc:
ExecutorAuthenticationProviderwith a custom executor ran on the event loop. It now runs on the executor it names.
Behaviour changes to check when you update
Some of these fixes change defaults. Review them before you update:
- UserInfo endpoint token validation is disabled by default.
- Intercept URL map rules defined for
GETalso apply toHEADrequests. - Static resources that match no rule are rejected, even when
micronaut.security.reject-not-foundisfalse. - Authentication providers are evaluated sequentially, in precedence order.
- The LDAP manager context is no longer pooled by default, and LDAP
context.propertiesare passed to JNDI as flat verbatim keys.
Micronaut Framework 4
If you are using Micronaut Framework 4, update to Micronaut Framework 4.10.25. Micronaut Security 4.18.3 and Micronaut Servlet 5.6.3 include the corresponding security fixes.
If you haven’t yet updated to Micronaut Framework 5, this is an excellent opportunity to do so!
Please feel free to reach out to us if you need any assistance.