Repository navigation
Releases
Micronaut Core 5.2.26
What's Changed
Other Changes 💡
- Evaluate expressions in the annotation metadata of intercepted methods that also have placeholders by @sdelamo in #14545
Full Changelog: v5.2.25...v5.2.26
Micronaut Core 5.2.25
What's Changed
Bug Fixes 🐞
- Keep a shared body buffer consistent when a subscriber subscribes or cancels by @dstepanov in #14452
Dependency updates 🚀
Full Changelog: v5.2.24...v5.2.25
Micronaut Core 5.2.24
What's Changed
Bug Fixes 🐞
- Finish HTTP/1 responses consistently on the fast path and on connection close by @dstepanov in #14453
- Fix the inverted pending connection hint of the client pool by @dstepanov in #14459
- Wind down HTTP/1 client connections on their event loop by @dstepanov in #14458
- Release the client connection when a request fails before it is sent by @dstepanov in #14457
- Read HTTP/2 stream state on the event loop when writing a full response by @dstepanov in #14454
- Close listeners that were bound when a later listener fails to bind by @dstepanov in #14455
- Acknowledge form data that was buffered before the demuxer was created by @dstepanov in #14456
Improvements ⭐
- Return null from splitAcceptHeader when the first entry is empty by @hauke-d in #14349
- Allow annotation-processing environments to disable logging by @lissam1 in #14441
Other Changes 💡
- Evaluate expressions in the declared metadata of expression aware annotation metadata by @sdelamo in #14466
Full Changelog: v5.2.23...v5.2.24
Micronaut Core 5.2.23
What's Changed
Micronaut Core 5.2.23 is a patch release with security fixes and framework improvements. It addresses 38 GitHub Security Advisories.
🚨 Security fixes
HTTP server and routing
- Isolate listeners and protect id-less management endpoints: GHSA-c856-m48r-3gpc.
- Harden the CORS localhost guard against spoofed forwarded headers and IPv6 loopback
Hostvalues: GHSA-72p5-8f28-xwp2, GHSA-fv5h-6pjp-g363. - Keep filters and route arguments from seeing different values for the same request: GHSA-hm9j-m8h9-32v9.
- Keep request-terminated events and pooled client continuations in their own propagated context: GHSA-xh4x-vj47-4px7.
- Apply
@JsonViewto wrapped bodies, SSE events, and fallback writers: GHSA-432j-9h93-pv45. - Escape control characters in access log values: GHSA-wgxm-75ph-q27x.
- Evaluate CORS preflight requests against the route serving the requested method: GHSA-c79q-p83r-9vpm.
- Bound request parsing work and keep blocking calls off the event loop: GHSA-jfwr-qrpq-5g48.
- Prevent TLS listeners from serving plaintext while their SSL context is pending or has failed: GHSA-35qg-26hc-qr84.
- Run route-scoped filters for every request reaching the route: GHSA-p72j-v3qh-v5mm.
- Match filters against the path used by the router and static resource resolver: GHSA-wcgp-mmwm-x2x2.
- Reset HTTP/3 request streams that fail or close early: GHSA-6v2q-5rcc-qfmc.
- Enforce form limits across part headers,
Content-Length, and tiny chunks: GHSA-h2j4-vr48-c4vv. - Ensure context-path filters cover function and WebSocket routes and prefix-colliding paths: GHSA-gj4v-r6x3-66jp.
- Bound caches keyed by request-controlled values: GHSA-jj39-pp85-xj49.
- Correct connection lifecycle, idle-timeout, and HTTP/2 response framing behavior: GHSA-82w6-g6gh-pjrv.
- Release request body buffers and stop late-body loops when a route does not consume its body: GHSA-wjxw-jjr4-4mqr, GHSA-8rrh-x2ch-p2vv.
- Release response buffers, streams, and compressors when responses are discarded or clients disconnect: GHSA-5g2v-x779-wr6w.
- Prevent classpath resource resolution from following symlinks outside the configured base: GHSA-5hmw-vf9q-xqhv.
- Close
StreamedFileinput streams when returning304 Not Modified: GHSA-mjjj-6mx9-p8px. - Bound compressed request processing and reject truncated compressed bodies: GHSA-2j79-mgc9-v76r, GHSA-hgj7-52cp-647p.
- Fix multipart parser hangs and direct-memory leaks on malformed, truncated, or over-limit bodies: GHSA-88m6-wjjg-mc7g.
- Fail in-flight HTTP/2 request bodies and release buffered data when their stream closes: GHSA-4j6j-v86m-5xv7.
HTTP clients
- Bound HTTP client response sizes and timeouts for stalled bodies: GHSA-j3jr-9qw4-m252.
- Release client buffers and connections after malicious or failing upstream responses: GHSA-fr2f-ww99-xgcc.
- Clear stale
Content-Lengthstate and prevent unsafe connection reuse after decode failures: GHSA-wv7m-pmvh-98h9. - Isolate client cookies and credentials and prevent unsafe request-construction behavior: GHSA-mfrv-8fw9-56vq.
- Bound JSON stream element size and processing work: GHSA-5pxm-5867-gjc9.
- Honor configured header filters on cross-origin redirects in the JDK HTTP client: GHSA-9mfm-8wr5-m838.
- Do not forward request framing or hop-by-hop headers from relayed requests in the JDK HTTP client: GHSA-64w5-89v4-549v.
WebSockets and server-sent events
- Harden WebSocket upgrade handling: GHSA-gpxf-v9p3-4hh5.
- Close WebSocket connections after sending a close frame, including when the endpoint has no
@OnClosehandler: GHSA-38pj-464p-88jf. - Bound WebSocket inbound work and outbound waits: GHSA-973f-vvmg-r76v.
- Release WebSocket messages whose decoding fails: GHSA-xccf-9g9p-4q66.
- Neutralize line breaks in server-sent event fields: GHSA-596x-f5j6-xvhc.
Improvements and fixes
- Keep
@InjectScopebeans scoped to each creation, including nested and concurrent creations. - Keep runtime proxy target resolutions isolated, and deliver reactive signals with the propagated context bound.
- Make propagated context entry and exit cheaper, and restore the previous context even when a thread element fails.
- Prevent environment lookups from failing while the environment is starting.
- Choose the highest-weight acceptable compression algorithm and never select an algorithm assigned
q=0. - Avoid duplicate processing of executable methods by deprecated method processors.
- Resolve
@Replaceschains and allow replacements to satisfy the qualifiers of the beans they replace. - Resolve placeholders in
@Executableannotation members separately for each application context. - Preserve Python object identity during conversion and support type-use annotation metadata without a native originating element.
- Read Kotlin annotation defaults from the compiled annotation class when the current processing round has no usage.
Other changes
- Improve test compatibility and stability for current JDK and Netty behavior, including retrying an external TLS test when the remote test service times out.
Micronaut Core 4.10.37
Micronaut Core 4.10.37
Micronaut Core 4.10.37 is a security-focused patch release. It addresses 37 GitHub Security Advisories across HTTP routing, servers and clients, WebSockets, server-sent events, and static resource handling.
🚨Security fixes
HTTP server and routing
- Isolate listeners, apply default-route settings consistently, and protect id-less management endpoints: GHSA-c856-m48r-3gpc.
- Harden the CORS localhost guard against spoofed forwarded headers and IPv6 loopback
Hostvalues: GHSA-72p5-8f28-xwp2, GHSA-fv5h-6pjp-g363. - Reset HTTP/2 streams when request bodies are discarded before the response completes: GHSA-pgxh-vg8f-gj4j.
- Fail in-flight HTTP/2 request bodies and release buffered data when their stream closes: GHSA-4j6j-v86m-5xv7.
- Keep URI variables from overriding explicitly bound route arguments: GHSA-hm9j-m8h9-32v9.
- Apply
@JsonViewto wrapped request bodies, SSE events, and fallback writers: GHSA-432j-9h93-pv45. - Run route-scoped filters for every request that reaches the route: GHSA-p72j-v3qh-v5mm.
- Evaluate CORS preflight requests against the route serving the requested method: GHSA-c79q-p83r-9vpm.
- Escape control characters in access log values: GHSA-wgxm-75ph-q27x.
- Publish request-terminated events and pooled client continuations in the correct request context: GHSA-xh4x-vj47-4px7.
- Prevent TLS listeners from serving plaintext while their SSL context is pending or has failed: GHSA-35qg-26hc-qr84.
- Match server filters against the path used by the router and static resource resolver: GHSA-wcgp-mmwm-x2x2.
- Reset HTTP/3 request streams that fail or close early, and release their resources: GHSA-6v2q-5rcc-qfmc.
- Bound request parsing work and keep blocking calls off the event loop: GHSA-jfwr-qrpq-5g48.
- Coalesce tiny body pieces and enforce multipart and form size limits: GHSA-h2j4-vr48-c4vv.
- Bound caches keyed by request-controlled values: GHSA-jj39-pp85-xj49.
- Ensure context-path filters cover function and WebSocket routes and prefix-colliding paths: GHSA-gj4v-r6x3-66jp.
- Correct connection lifecycle, idle-timeout, and HTTP/2 response framing behavior: GHSA-82w6-g6gh-pjrv.
- Release request body buffers and stop late-body loops when a route does not consume its body: GHSA-wjxw-jjr4-4mqr, GHSA-8rrh-x2ch-p2vv.
- Release response buffers, streams, and compressors when a response is discarded or the client disconnects: GHSA-5g2v-x779-wr6w.
- Prevent classpath resource resolution from following symlinks outside the configured base: GHSA-5hmw-vf9q-xqhv.
- Close
StreamedFileinput streams when returning304 Not Modified: GHSA-mjjj-6mx9-p8px. - Bound compressed request processing and reject truncated compressed bodies: GHSA-2j79-mgc9-v76r, GHSA-hgj7-52cp-647p.
HTTP clients
- Do not forward request framing or connection headers from JDK HTTP client requests: GHSA-64w5-89v4-549v.
- Clear stale
Content-Lengthstate and prevent unsafe connection reuse after a response decode failure: GHSA-wv7m-pmvh-98h9. - Honor configured header filters on cross-origin redirects in the JDK HTTP client: GHSA-9mfm-8wr5-m838.
- Isolate client cookies and credentials and prevent unsafe request-construction behavior: GHSA-mfrv-8fw9-56vq.
- Enforce HTTP client response size limits and timeouts for stalled bodies: GHSA-j3jr-9qw4-m252.
- Release client buffers and connections after malicious or failing upstream responses: GHSA-fr2f-ww99-xgcc.
- Bound JSON stream element size and processing work: GHSA-5pxm-5867-gjc9.
WebSockets and server-sent events
- Harden WebSocket upgrade handling and message processing during
@OnOpen: GHSA-gpxf-v9p3-4hh5. - Close WebSocket connections after sending a close frame, even when the endpoint has no
@OnClosehandler: GHSA-38pj-464p-88jf. - Bound WebSocket inbound work, decompression, and outbound waits: GHSA-973f-vvmg-r76v.
- Neutralize line breaks in server-sent event fields: GHSA-596x-f5j6-xvhc.
Other changes
- Update test coverage and compatibility for current JDK and Netty behavior, and retry the external TLS test when the remote test service times out.
Full Changelog: v4.10.36...v4.10.37
Micronaut 3.10.19
Micronaut Core 3.10.19 is a security patch release. It fixes 25 GitHub Security Advisories and updates the managed Micronaut Security version to 3.11.3.
🚨 Security fixes
HTTP server and routing
- Isolate listeners and handle id-less management endpoints safely: GHSA-c856-m48r-3gpc.
- Harden the CORS localhost guard against loopback
Hostforms and forwarded-header bypasses: GHSA-72p5-8f28-xwp2, GHSA-fv5h-6pjp-g363. - Prevent URI variables from overriding explicitly bound route arguments: GHSA-hm9j-m8h9-32v9.
- Apply
@JsonViewwhen an@Bodyvalue is aPublisherorCompletableFuture: GHSA-432j-9h93-pv45. - Match CORS preflight requests against the route serving the requested method: GHSA-c79q-p83r-9vpm.
- Escape control characters in access log values: GHSA-wgxm-75ph-q27x.
- Match filters against the normalized path used by the router: GHSA-wcgp-mmwm-x2x2.
- Run route-scoped filters for every request reaching the route: GHSA-p72j-v3qh-v5mm.
- Bound request parsing work and avoid reverse DNS lookups on the event loop: GHSA-jfwr-qrpq-5g48.
- Coalesce tiny body pieces to limit processing overhead: GHSA-h2j4-vr48-c4vv.
- Ensure context-path filters cover function and WebSocket routes and do not skip prefix-colliding routes: GHSA-gj4v-r6x3-66jp.
- Ignore over-long
Accept-Languagetags: GHSA-jj39-pp85-xj49. - Discard streaming form fields when route processing fails: GHSA-8rrh-x2ch-p2vv.
- Reject truncated compressed request bodies: GHSA-2j79-mgc9-v76r, GHSA-hgj7-52cp-647p.
- Close a
StreamedFileinput stream when the response is304 Not Modified: GHSA-mjjj-6mx9-p8px. - Prevent classpath resource resolution from following symlinks outside the resource base: GHSA-5hmw-vf9q-xqhv.
HTTP client and service discovery
- Clear stale
Content-Lengthstate and prevent unsafe connection reuse after a response decode failure: GHSA-wv7m-pmvh-98h9. - Bound streamed JSON element sizes in the HTTP client: GHSA-5pxm-5867-gjc9.
- Fix service instance resolution and client cookie injection behavior: GHSA-mfrv-8fw9-56vq.
WebSockets and server-sent events
- Harden WebSocket upgrade handling: GHSA-gpxf-v9p3-4hh5.
- Bound WebSocket inbound work: GHSA-38pj-464p-88jf.
- Bound waits for outbound WebSocket writes: GHSA-973f-vvmg-r76v.
- Neutralize line breaks in server-sent event fields: GHSA-596x-f5j6-xvhc.
Other changes
- Update the managed Micronaut Security version to 3.11.3.
- Keep the 3.10.x test suite compatible with its Java 8 baseline.
Full Changelog: v3.10.18...v3.10.19
Micronaut Core 3.10.18
- Update Netty to 4.1.140.Final
Full Changelog: v3.10.17...v3.10.18
Micronaut Core 5.2.22
What's Changed
Bug Fixes 🐞
- Cache exception handler lookups instead of re-resolving and contending on every error by @dstepanov in #14212
- Preserve Python exceptions across synchronous AOP calls by @graemerocher in #14224
- Parse X-Forwarded-Host like the Forwarded host by @dstepanov in #14243
Dependency updates 🚀
Other Changes 💡
- Bind the default locale to Locale arguments when the request has none by @sharanggupta in #14102
- Give inject-java's Groovy test compilation a 3 GB compiler daemon of its own by @graemerocher in #14187
- Retry failing repository requests longer before Gradle gives up on the repository by @graemerocher in #14188
- Expand Iterable and array values passed to UriBuilder.queryParam into… by @sdelamo in #14197
Full Changelog: v5.2.21...v5.2.22
Micronaut Core 4.10.36
What's Changed
- Update Netty to 4.2.20.Final (#14253)
Other Changes 💡
- Keep lookups from failing while the environment starts by @radovanradic in #14195
Full Changelog: v4.10.35...v4.10.36
Micronaut Core 5.2.21
What's Changed
Bug Fixes 🐞
- Keep a property source added while the environment loads its configuration files after the next refresh by @radovanradic in #14162
- Keep lookups from failing while a property source is added to the running environment by @radovanradic in #14167
- Answer a streamed multipart body cut before its closing boundary with the bad request by @dstepanov in #14166
- Answer a streamed request body over the size limit with 413 for a streaming response by @dstepanov in #14164
- Delegate the default AnnotationMetadata methods of environment aware metadata to the backing metadata by @graemerocher in #14172
- KSP: include the owner in KotlinNativeElement.hashCode by @bookernath in #14180
Other Changes 💡
- Type PollingConditions variables so eventually blocks assert their conditions by @graemerocher in #13980
- Process a property source added just before a refresh reads only once, in its order by @radovanradic in #14171
- Close disabled and rejected config importers by @n0tl3ss in #14182
New Contributors
- @bookernath made their first contribution in #14180
Full Changelog: v5.2.20...v5.2.21