# GHSA-C856-M48R-3GPC: micronaut-router access control bypass

- 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-netty (Maven): fixed in 3.10.19
- io.micronaut:micronaut-http-server-netty (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-http-server-netty (Maven): from 5.0.0, fixed in 5.2.23
- io.micronaut:micronaut-management (Maven): fixed in 3.10.19
- io.micronaut:micronaut-management (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-management (Maven): from 5.0.0, fixed in 5.2.23

## Description

### Summary

`listeners.*.expose-default-routes=false` is meant to keep application routes off a dedicated (for example management) listener, but static resources and `@ServerWebSocket` upgrades ignore it, the flag has no effect at all unless some route declares a port, and default routes are served during startup before `applyDefaultPorts` runs. WebSocket upgrades also ignore the listener port when looking up the route, and a failing `ServerStartupEvent` listener leaves listeners bound and serving with no way to close them. Separately, `@Endpoint` beans without an `id` are routed and enabled but never recorded as sensitive, so `EndpointsFilter` serves them without authentication. A client that can reach either listener may access routes or endpoints the operator meant to restrict. The fix is to apply listener route exposure to every route kind from the first accepted connection, close listeners on startup failure, and treat id-less endpoints as sensitive by default.

### Affected and patched versions

Listener startup ordering, default-route exposure, and endpoint sensitivity predate 3.0.0; the 3.x line is affected.

| 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-netty` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-http-server-netty` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-http-server-netty` | `>= 5.0.0, < 5.2.23` | `5.2.23` |
| `io.micronaut:micronaut-management` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-management` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-management` | `>= 5.0.0, < 5.2.23` | `5.2.23` |

The 3.x fix is in [commit 2a6ad8df1c](https://github.com/micronaut-projects/micronaut-core/commit/2a6ad8df1cb171e17247ed4731cbb932d86f3b5e), 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

- F37
- F38
- F57
- F58
- ANT-2026-ZVMDWJXS
- F51

## References

- https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-c856-m48r-3gpc

Page: https://cve.now/GHSA-C856-M48R-3GPC

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