# GHSA-5JG2-867C-V33W: CSRF bypass in session mode via planted CSRF cookie

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

## Affected versions

- io.micronaut.security:micronaut-security-csrf (Maven): from 4.11.0, fixed in 4.18.2
- io.micronaut.security:micronaut-security-csrf (Maven): from 5.0.0, fixed in 5.4.2
- io.micronaut.security:micronaut-security-csrf (Maven): from 5.5.0, fixed in 5.5.2

## Description

## Summary
With session authentication, micronaut-security-csrf accepts a forged state-changing request from a logged-in victim's browser without the CSRF token stored in the victim's session, as long as the request also carries a CSRF cookie whose value the attacker chose. The attacker needs a position from which to plant a cookie in the victim's browser for the application, typically a sibling subdomain they control. From there they can make any form post (or X-CSRF-TOKEN request) as the victim. In effect, the session's synchronizer token is reduced to an unsigned double-submit cookie in the default configuration.

## 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.2` | `4.18.2` | [a6517ee064](https://github.com/micronaut-projects/micronaut-security/commit/a6517ee0645c6ab7b7027137dc1ecc86d97ea274) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [390f277307](https://github.com/micronaut-projects/micronaut-security/commit/390f277307303ea9bda645a897115f54e0e5c8cd) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [b17183a616](https://github.com/micronaut-projects/micronaut-security/commit/b17183a61693aa38929bd2f54e0272fde7fbe540) |

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.11.0](https://github.com/micronaut-projects/micronaut-security/blob/v4.11.0/security-csrf/src/main/java/io/micronaut/security/csrf/validator/RepositoryCsrfTokenValidator.java). Validation accepts a match from any configured repository; the CSRF module is absent in v4.10.2.

## 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-FWAXD5SG`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-5jg2-867c-v33w

Page: https://cve.now/GHSA-5JG2-867C-V33W

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