CVE-2026-135804 is an uncontrolled resource consumption vulnerability in the symfony/json-path component of Symfony. It arises from inefficient handling of JSONPath expressions, where attacker-controlled queries can cause excessive CPU usage by repeatedly evaluating complex regular expressions and filter expressions. This can lead to PHP worker processes being held for extended periods, with reported cases of 3.5 minutes CPU time for a 2 MB document and a 2.5 KB query. The issue affects versions >=7.3.0 <7.4.23 and >=8.0.0 <8.1.11. Fixed versions 7.4.23 and 8.1.11 include mitigations that bound regex work and optimize query evaluation to prevent excessive resource consumption.
CVE-2026-135803 is a path traversal vulnerability in the Symfony symfony/filesystem component affecting versions before 5.4.56, 6.4.50, 7.4.23, and 8.1.11. The issue arises because Path::split() treats any prefix before :// as a root without verifying it as a valid URI scheme, allowing .. segments in that prefix to bypass resolution. This can lead to applications reading or writing files outside intended directories. The vulnerability affects methods like canonicalize(), join(), makeAbsolute(), and makeRelative(). Symfony 6.4 and later's AssetMapper component can be exploited by malicious packages to write files outside the assets/vendor directory. The issue is fixed in versions 5.4.56, 6.4.50, 7.4.23, and 8.1.11.
CVE-2026-135802 is an open redirect vulnerability in the Symfony symfony/http-foundation component affecting versions before 5.4.56, 6.4.50, 7.4.23, and 8.1.11. It occurs when Request::getBaseUrl() incorrectly parses the request URI starting with // or /\, allowing attackers to craft URLs that cause the application to generate links and redirects pointing to an attacker-controlled host. This can lead to phishing or credential theft if users follow malicious links. The issue affects applications with front controllers in subdirectories and certain web server configurations that rewrite URLs improperly. The vulnerability is fixed by returning an empty base URL when the request URI starts with // or /\.
CVE-2026-135801 is an authentication bypass vulnerability in Symfony's symfony/http-foundation component. The issue arises from improper handling of the SCRIPT_NAME in URL path parsing, allowing crafted URLs like /index.phpadmin to bypass access controls configured outside PHP, such as in web server or CDN rules. This can lead to unauthorized access to routes that should be protected. The vulnerability affects multiple Symfony versions prior to fixed releases. The issue is addressed by stricter path info parsing that only strips the script name when followed by specific delimiters.
Symfony's YAML parser had an unbounded recursion vulnerability in its inline lexer, allowing deeply nested inline collections in YAML documents to cause stack exhaustion and crash the process. This affects any code parsing untrusted YAML, including endpoints using #[MapRequestPayload] without restricting acceptFormat. The issue is fixed by bounding the nesting level and raising a ParseException when exceeded.
A Regular Expression Denial of Service (ReDoS) vulnerability exists in Symfony's HeaderUtils::split() method, reachable via the Cache-Control HTTP request header. The vulnerability arises from a regex pattern that inefficiently handles whitespace, causing exponential backtracking and high CPU usage when processing crafted headers. This can lead to significant request processing delays or dropped header directives. Fixed versions are available starting from 5.4.54, 6.4.46, 7.4.19, and 8.1.7.
### 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](https://github.com/symfony/symfony/commit/fa8d5c67aa4b22c9656e3fd7d5c3aa59865bf838) 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.
Symfony's HttpFoundation component contains a vulnerability in the Request class where incorrect parsing of PATH_INFO can cause URL paths to be represented without a leading '/'. This flaw can lead to limited authorization bypass in access control rules that assume paths start with '/'. The issue affects multiple versions of symfony/http-foundation prior to fixed releases. A patch is available that ensures URL paths always start with '/'.
CVE-2024-50343 is a vulnerability in the Symfony Validator component where inputs ending with a newline character (\n) can bypass validation rules using regular expressions with the $ metacharacter. This occurs because the Validator did not properly anchor the regex to the end of the input. The issue is fixed by adding the 'D' regex modifier to ensure the entire input is matched. Fixed versions include 5.4.43, 6.4.11, and 7.1.4.