# GHSA-7WPC-PG3P-R423: Signed CSRF token not bound to user in cookie auth (empty session id)

- Database: GitHub
- Severity: CVSS 4.8 (Medium)
- Published: 2026-11-23
- Modified: 2026-11-23

## Affected versions

- io.micronaut.security:micronaut-security-csrf (Maven): from 4.11.0, fixed in 4.18.3
- io.micronaut.security:micronaut-security-csrf (Maven): from 5.0.0, fixed in 5.4.3
- io.micronaut.security:micronaut-security-csrf (Maven): from 5.5.0, fixed in 5.5.3

## Description

## Summary
With micronaut.security.authentication=cookie and micronaut.security.csrf.signature-key set, the signed CSRF token is not bound to the user. A token issued at one account's login is a correctly signed token for every other account, and it stays valid until the key is rotated. An attacker with an account of their own who can write the CSRF cookie in a victim's browser, for example from a sibling subdomain, can put their own token there and submit a form that passes CsrfFilter and runs with the victim's JWT cookie. That is the attack the manual says signature-key exists to prevent. Browsers refuse such a cookie write for the default __Host-csrfToken name, so this applies where the cookie...

## Affected and patched versions

The following ranges cover stable releases.

| Release line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 4.x | `>= 4.11.0, < 4.18.3` | `4.18.3` | [bb6f9d17a5](https://github.com/micronaut-projects/micronaut-security/commit/bb6f9d17a5f77a8c00a112ce73271b50b5f58def) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.3` | `5.4.3` | [d53503e8fa](https://github.com/micronaut-projects/micronaut-security/commit/d53503e8fa53699995ec3cb75e1326ca6da39cbf) |
| 5.5.x | `>= 5.5.0, < 5.5.3` | `5.5.3` | [d1a863718e](https://github.com/micronaut-projects/micronaut-security/commit/d1a863718ea71592292f38d362fb363e0f580242) |

The fix commits are included in the corresponding release tags and absent from the preceding stable releases (4.18.2, 5.4.2, 5.5.2).

The lower bound is the earliest stable release the finding traces the behavior to.

## Suggested severity
Suggested CVSS v3.1 vector: `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/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-9OR8G1S0`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-7wpc-pg3p-r423

Page: https://cve.now/GHSA-7WPC-PG3P-R423

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