Advisory

GHSA-6439-2f28-8p8q

Also known as: CVE-2026-45075

Summary

Symfony's HEAD Request Bypasses methods: ['GET'] Filter in #[IsGranted] / #[IsSignatureValid] / #[IsCsrfTokenValid]

Details

Description

Symfony's #[IsGranted('...')], #[IsSignatureValid], and #[IsCsrfTokenValid(...)] attributes allow you to define a methods: [...] argument to only enforce these checks for the listed HTTP methods and skip them otherwise. E.g. an attribute defining methods: ['GET'] would be ignored for a HEAD request.

On the other hand, Symfony's router (and HTTP semantics generally) serves HEAD requests using the GET handler. Therefore, a controller protected by e.g. #[IsGranted('ROLE_ADMIN', methods: ['GET'])] can be reached via HEAD with the authorization check silently skipped.

Even if the HEAD request won't get any response content, response headers leak (Content-Length, Location, custom headers). Also, the controller still executes and any side effects (DB writes, state changes) occur.

Resolution

When adding GET in the methods option of these attributes, Symfony now also include the HEAD method automatically.

The patch for this issue is available here for branch 7.4.

Credits

Symfony would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and Alexandre Daubois for fixing it.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-27 21:12 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 7.4.0, fixed 7.4.12 (ecosystem)

Fixed versions

7.4.12

Fix

The export has no generic command for this ecosystem.

symfony/http-kernel

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.0.12 (ecosystem)

Fixed versions

8.0.12

Fix

The export has no generic command for this ecosystem.

symfony/security-http

Packagist · All systems

Affected

  • introduced 7.4.0, fixed 7.4.12 (ecosystem)

Fixed versions

7.4.12

Fix

The export has no generic command for this ecosystem.

symfony/security-http

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.0.12 (ecosystem)

Fixed versions

8.0.12

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 7.4.0, fixed 7.4.12 (ecosystem)

Fixed versions

7.4.12

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.0.12 (ecosystem)

Fixed versions

8.0.12

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences