Auth bypass: @Secured expression evaluating to null defers to later rules
Description
A @Secured expression that evaluates to null makes SecuredAnnotationRule abstain instead of reject. As a result, a client with no credentials can get the response of a route whose expression reaches the user through user?., which is the form the manual shows. This happens whenever a rule ordered after it allows the path, such as an intercept URL map entry /** → isAnonymous(), SensitiveEndpointRule for a non-sensitive management endpoint, or a custom SecurityRule. The attached reproducer uses the manual's example expression. It shows watson, whom the expression rejects with 403, getting 200 and sherlock's protected response body by simply leaving out the Authorization header. The default...
Affected and patched versions
The following ranges cover stable releases.
| Release line | Affected versions | First patched release | Fix commit |
|---|---|---|---|
| 4.x | >= 4.0.0, < 4.18.2 | 4.18.2 | c5baa7c02f |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | c20f7785f6 |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | 4f606ef0b7 |
The fix commits are included in the corresponding release tags and absent from the preceding stable releases (4.18.1, 5.4.1, 5.5.1).
Earliest verified affected stable source: 4.0.0. EvaluatedAnnotationValue handling falls through when booleanValues is empty; expression handling is absent in 3.x.
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-OI5CAXEV.