CVE-2026-45075: Symfony: HEAD Request Bypasses methods: ['GET'] Filter in #[IsGranted] / #[IsSignatureValid] / #[IsCsrfTokenValid]

Published May 27, 2026
·
Updated

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('ROLEADMIN', 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.

Other sources

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 7.4.12 and 8.0.12, method-scoped #[IsGranted], #[IsSignatureValid], and #[IsCsrfTokenValid] attributes can be configured for GET only, but Symfony routes HEAD requests to the GET handler while the attribute check is skipped, allowing protected controllers to execute and leak headers or perform side effects. This issue is fixed in versions 7.4.12 and 8.0.12.

MITRE

Affected Software

8 affected componentsFixes available
composer/symfony/symfony>=8.0.0<8.0.12
8.0.12
composer/symfony/symfony>=7.4.0<7.4.12
7.4.12
composer/symfony/security-http>=8.0.0<8.0.12
8.0.12
composer/symfony/security-http>=7.4.0<7.4.12
7.4.12
composer/symfony/http-kernel>=8.0.0<8.0.12
8.0.12
composer/symfony/http-kernel>=7.4.0<7.4.12
7.4.12
SensioLabs Symfony>=7.4.0<7.4.12
SensioLabs Symfony>=8.0.0<8.0.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 8.0.12
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.12
  3. Upgrade

    Upgrade composer/symfony/security-http to a version that resolves this vulnerability.

    Fixed in 8.0.12
  4. Upgrade

    Upgrade composer/symfony/security-http to a version that resolves this vulnerability.

    Fixed in 7.4.12
  5. Upgrade

    Upgrade composer/symfony/http-kernel to a version that resolves this vulnerability.

    Fixed in 8.0.12
  6. Upgrade

    Upgrade composer/symfony/http-kernel to a version that resolves this vulnerability.

    Fixed in 7.4.12
  7. Upgrade

    Upgrade Symfony to a version that resolves this vulnerability.

    Fixed in 7.4.12
  8. Upgrade

    Upgrade Symfony to a version that resolves this vulnerability.

    Fixed in 8.0.12

Event History

May 27, 2026
Advisory Published
via GitHub·09:12 PM
Data Sourced
via GitHub·09:12 PM
DescriptionWeaknessAffected Software
Jul 14, 2026
CVE Published
via MITRE·06:40 PM
Data Sourced
via MITRE·06:40 PM
DescriptionWeakness
Data Sourced
via NVD·07:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45075?

CVE-2026-45075 has a risk rating of 65.

2

How do I fix CVE-2026-45075?

To fix CVE-2026-45075, ensure that you properly configure your Symfony attributes and review the HTTP methods that are being used.

3

What vulnerabilities are associated with CVE-2026-45075?

CVE-2026-45075 is associated with vulnerabilities related to CSRF in Symfony's security attributes.

4

Which versions of Symfony are affected by CVE-2026-45075?

CVE-2026-45075 affects several versions of Symfony, including symfony/security-http and symfony/http-kernel.

5

Are there any mitigation strategies for CVE-2026-45075?

Mitigation strategies for CVE-2026-45075 include restricting the use of method arguments in security attributes and validating CSRF tokens diligently.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203