# GHSA-HM9J-M8H9-32V9: Micronaut filters and route arguments can see different values for the same request (form charset, path variable precedence)

- Database: GitHub
- Severity: CVSS 3.7 (Low)
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- io.micronaut:micronaut-router (Maven): fixed in 3.10.19
- io.micronaut:micronaut-router (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-router (Maven): from 5.0.0, fixed in 5.2.23
- io.micronaut:micronaut-http-server (Maven): from 4.8.0, fixed in 4.10.37
- io.micronaut:micronaut-http-server (Maven): from 5.0.0, fixed in 5.2.23

## Description

### Summary

A client-chosen `charset` on an `application/x-www-form-urlencoded` body makes `FilterBodyParser` and `@Body` form binding decode different field sets from the same bytes, so a filter that checks a field approves a request whose route binds another value. In addition, a URI path variable silently overrides an explicitly annotated `@RequestAttribute`, `@Header` or `@CookieValue` argument with the same name, so a value that a filter set as a request attribute (for example the authenticated tenant) is replaced by the client's path segment. Applications that make authorisation decisions in filters on these values can be bypassed. The fix is to decode form bodies once with one charset decision shared by filters and binders, and to let explicit binding annotations take precedence over URI variables.

### Affected and patched versions

URI-variable precedence (F54, micronaut-router) predates 3.0.0. FilterBodyParser (F20, micronaut-http-server) was introduced in 4.8.0.

| Package | Affected versions | Patched version |
| --- | --- | --- |
| `io.micronaut:micronaut-router` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-router` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-router` | `>= 5.0.0, < 5.2.23` | `5.2.23` |
| `io.micronaut:micronaut-http-server` | `>= 4.8.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-http-server` | `>= 5.0.0, < 5.2.23` | `5.2.23` |

The 3.x fix is in [commit 62e4f9eb54](https://github.com/micronaut-projects/micronaut-core/commit/62e4f9eb5415bb100cb6f04f8164d34d6f1c4c60), first included in stable release [3.10.19](https://github.com/micronaut-projects/micronaut-core/releases/tag/v3.10.19). The last affected stable 3.10.x release is 3.10.18.

### Findings

- F20 (= ANT-2026-RAW04XDN)
- F54

## References

- https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-hm9j-m8h9-32v9

Page: https://cve.now/GHSA-HM9J-M8H9-32V9

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
