Skip to main content
Menu
Advisories

micronaut-router access control bypass

GHSA-C856-M48R-3GPCPublished Updated GitHub

Description

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.

PackageAffected versionsPatched version
io.micronaut:micronaut-router< 3.10.193.10.19
io.micronaut:micronaut-router>= 4.0.0, < 4.10.374.10.37
io.micronaut:micronaut-router>= 5.0.0, < 5.2.235.2.23
io.micronaut:micronaut-http-server-netty< 3.10.193.10.19
io.micronaut:micronaut-http-server-netty>= 4.0.0, < 4.10.374.10.37
io.micronaut:micronaut-http-server-netty>= 5.0.0, < 5.2.235.2.23
io.micronaut:micronaut-management< 3.10.193.10.19
io.micronaut:micronaut-management>= 4.0.0, < 4.10.374.10.37
io.micronaut:micronaut-management>= 5.0.0, < 5.2.235.2.23

The 3.x fix is in commit 2a6ad8df1c, first included in stable release 3.10.19. The last affected stable 3.10.x release is 3.10.18.

Findings

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

Affected versions

References

GitHub · micronaut-projects/micronaut-core