# GHSA-9P96-XFM5-FHRR: Intercept URL map root pattern bypassed when a context path is set

- Database: GitHub
- Severity: CVSS 9.1 (Critical)
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- io.micronaut.security:micronaut-security (Maven): from 3.7.2, fixed in 3.11.3
- io.micronaut.security:micronaut-security (Maven): from 4.0.0, fixed in 4.18.2
- io.micronaut.security:micronaut-security (Maven): from 5.0.0, fixed in 5.4.2
- io.micronaut.security:micronaut-security (Maven): from 5.5.0, fixed in 5.5.2

## Description

## Summary
When micronaut.server.context-path is set, an intercept URL map entry for / (or /*) stops matching anything. A client without credentials, or without the required role, can then get the application's root route with a plain GET /ctx or GET /ctx/. The preconditions are all ordinary configuration: a context path is set, the root controller relies on the intercept URL map rather than @Secured, and a later, broader entry grants weaker access (for example /** → isAnonymous()). Exactly one route is exposed, the context root, for any HTTP method. The attached reproducer runs the same map with and without context-path: /portal. Anonymous GET / returns 401 at the server root and /portal/invoices...

## Affected and patched versions

The following ranges cover stable releases.

| Release line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 3.11.x and earlier | `>= 3.7.2, < 3.11.3` | `3.11.3` | [d80b3952f6](https://github.com/micronaut-projects/micronaut-security/commit/d80b3952f6e17c81af16011f27d244a3e9fc32a4) |
| 4.x | `>= 4.0.0, < 4.18.2` | `4.18.2` | [f82cfa2ef0](https://github.com/micronaut-projects/micronaut-security/commit/f82cfa2ef01f2d26d64fc804da6830e2b624ec84) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [1df3d691ba](https://github.com/micronaut-projects/micronaut-security/commit/1df3d691ba14cb6a0eaa64d7943103de5c170154) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [b0fbfd1614](https://github.com/micronaut-projects/micronaut-security/commit/b0fbfd1614b739ce1853c1d18170c66d820fa733) |

The fix commits are included in the corresponding release tags and absent from the preceding stable releases (3.11.2, 4.18.1, 5.4.1, 5.5.1).

Earliest verified affected stable source: [3.7.2](https://github.com/micronaut-projects/micronaut-security/blob/v3.7.2/security/src/main/java/io/micronaut/security/config/SecurityConfigurationProperties.java). v3.7.2 introduces context-path prepending of intercept URL patterns; the option is absent in v3.7.1.

## Suggested severity
Suggested CVSS v3.1 vector: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`. This is an initial estimate based on the finding report and should be reviewed against the final impact and deployment prerequisites.

Source finding: `ANT-2026-B3PSVAUU`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-9p96-xfm5-fhrr

Page: https://cve.now/GHSA-9P96-XFM5-FHRR

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