Skip to main content
Menu
Advisories

Intercept URL map auth bypass via encoded slash or blank path variable

GHSA-225X-M3G7-H3FCPublished Updated GitHub

Description

An authorization bypass in micronaut-security's intercept URL map lets a client without credentials run a controller method that the map restricts to a role. The client only has to put an encoded slash (x%2Fy) or a blank value (%20, %09, %00) into a path variable. The application must protect a route with a fixed-depth pattern such as /admin/, /users//roles or /*/admin/, and a broader permissive pattern, typically a later / → isAnonymous(), must also match. When that broader entry is isAuthenticated(), the same requests let any logged-in user past a role entry instead. Routes protected with @Secured are not affected.

Affected and patched versions

The following ranges cover stable releases.

Release lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 1.1.1, < 3.11.33.11.325e969d058
4.x>= 4.0.0, < 4.18.24.18.2bd1dc217cf
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.2f98e23c78e
5.5.x>= 5.5.0, < 5.5.25.5.246284a2c8c

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: 1.1.1. Pattern matching uses request.getUri().getPath, the decoded path.

Version 1.1.1 is the earliest stable source tag available in this repository. Releases before that tag have not been verified.

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-IBBPVBHW.

Affected versions

References

GitHub · micronaut-projects/micronaut-security