Search Results (86 CVEs found)

CVE Vendors Products Updated CVSS v3.1
CVE-2026-135801 1 Symfony 2 Symfony/http-foundation, Symfony/symfony 2026-11-24 N/A
Since the fix for CVE-2025-64500, Request::getPathInfo() strips the script name from the start of the URL. It does so even when the script name is only the start of a longer path segment. With SCRIPT_NAME set to /index.php, a request to /index.phpadmin gets the path info /admin and is routed like /admin. Encoded spellings such as /index%2Ephpadmin or /%69ndex.phpadmin work too. Before that fix, the path info was admin, which no route matched. Rules enforced by Symfony are not affected: access_control and firewalls read the same path info as the router. Rules enforced in front of PHP are. The nginx configuration of the Symfony documentation and the .htaccess file of symfony/apache-pack make /index.php/admin unreachable, but they pass /index.phpadmin to the front controller. So a location /admin block in nginx, a <Location /admin> section in Apache, or a CDN or WAF rule on /admin can be bypassed. The script name is now stripped only when it is followed by /, ? or the end of the URL. A request to /index.phpadmin gets the path info /index.phpadmin.
CVE-2026-135802 1 Symfony 2 Symfony/http-foundation, Symfony/symfony 2026-11-24 N/A
When Request::getBaseUrl() does not find the script name at the start of the request URI, it looks for it further into the path. This supports web servers that rewrite every URL to a front controller in a subdirectory. The base URL then kept everything before the script name, and the client chooses that part. A request URI starting with // or /\ made the base URL start with a host. With SCRIPT_NAME=/public/index.php, a request for //evil.example/public/index.php/login is routed to /login, with the base URL //evil.example/public/index.php and the base path //evil.example/public. The URLs generated for that page then point to evil.example: - links built with path() and the actions of forms, so a login form sends the credentials of the user to evil.example; - redirects to generated URLs, such as the ones of redirectToRoute(); - assets referenced with a relative path through asset(), so the page can load scripts from evil.example. The attacker has to make a user follow a crafted link, such as https://app.example//evil.example/public/index.php/login. framework.trusted_hosts does not help, since the host of the request is the real one. Applications are affected when their front controller is in a subdirectory and the web server sends it URIs that do not start with that directory. A .htaccess file at the root of the project that rewrites every URL to public/ does that, for instance. Applications are also affected when the web server sets SCRIPT_NAME to the path of the request. Some nginx configurations do that when they send every request to the front controller without fastcgi_split_path_info. php -S does it too, with a router script outside the document root. A request for /\evil.example/index.php then gets the base URL /\evil.example/index.php, which browsers read as a link to evil.example. The configurations recommended in the Symfony documentation are not affected. Request::getBaseUrl() now returns an empty base URL when the request URI starts with // or /\.
CVE-2026-133774 1 Symfony 1 Symfony/ux-live-component 2026-11-24 N/A
A live component protected by #[IsGranted], on its class or on its default action, can be rendered by a caller who is not granted access. POST /_components/{name}/_batch is handled by Symfony\UX\LiveComponent\Controller\BatchActionController, which has no controller attributes: the attributes of the component are only checked by the sub-request issued for each action. With an empty actions list, no sub-request was issued, and the hydrated component was rendered and returned with a 200. The caller needs a valid signed props payload for the component, such as the data-live-props-value of a page that rendered it: one the caller could see before losing access, or a cached or shared page. The checksum binds the props to the component name, not to a user, a session or a time, so such a payload can be replayed. Actions are not affected, since each action of a non-empty batch is still checked in its own sub-request. Components that load data from their props, like an entity identifier, disclose that data to the caller. BatchActionController now rejects a batch without any action with a BadRequestHttpException. The JavaScript client never sends such a request: it uses the URL of the component when there is no action, /{action} for a single one and /_batch for two or more.
CVE-2026-133775 1 Symfony 1 Symfony/ux-icons 2026-11-24 N/A
The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. It removes scripts and event handlers everywhere, except inside <style> elements. Unlike in HTML, the content of an SVG <style> element is parsed as markup. An icon can therefore still run JavaScript in the page with, for example: <style><script>alert(1)</script></style> <style><img src="invalid:" onerror="alert(1)"/></style> Applications are exposed when an attacker can influence the SVG of the icons they render. The sources are the same as for CVE-2026-55877, like local icon files and the responses of the Iconify API. <style> elements are now sanitized like any other element, so their descendants lose scripts and event handlers. A <style> element that tries to close itself early is still removed. Otherwise, its CSS is kept.
CVE-2026-133776 1 Symfony 1 Symfony/ux-icons 2026-11-24 N/A
The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. When the sanitizer changes an icon, it writes the icon out again as HTML. HTML writes the content of some elements, like <style>, without escaping it. But inside an <svg>, browsers parse the content of a <style> element as markup. Escaped markup in such an element then becomes live in the page: <path onclick="x"/><style xmlns="http://www.w3.org/1999/xhtml">&lt;img src=x onerror=alert(1)&gt;</style> The event handler of the <path> element only makes the sanitizer change the icon. Depending on the version, this affects every <style> element, or the elements of the XHTML namespace, like <style>, <xmp> or <noembed>. On 2.x, the elements of the XHTML namespace were also kept. An XHTML <form> or <base> element then becomes live where icons are parsed as XML, like in the Google Maps bridge of ux-map. Applications are exposed when an attacker can influence the SVG of the icons they render. The sources are the same as for CVE-2026-55877, like local icon files and the responses of the Iconify API. On 2.x, the sanitizer now writes icons out as XML, which escapes their text, and only keeps the elements of the SVG namespace. On 3.x, it now only keeps the elements of the SVG namespace.
CVE-2026-133777 1 Symfony 1 Symfony/ux-icons 2026-11-24 N/A
The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. Browsers parse an inline <svg> element with the rules of SVG, until they meet a start tag like <p>, <img> or <meta>. They then parse the rest of the icon as HTML, and they also parse the content of <title> and <desc> elements as HTML. The sanitizer only checked icons as SVG, so an icon could contain markup that becomes live once parsed as HTML. For example, after a <p> element, a comment can end a <style> element early and add an <img> element with an event handler: <p/><style><!--</style><img src=1 onerror=alert(1)>--></style> In the same way, an icon could add a <base> element to the page, which changes where its relative links and forms go. It could also add a <meta> element that redirects the page. Comments were kept too, while browsers end a comment at <!--> or <!--->. The rest of such a comment then became live markup, even without any HTML element before it. Applications are exposed when an attacker can influence the SVG of the icons they render. The sources are the same as for CVE-2026-55877, like local icon files and the responses of the Iconify API. The sanitizer now removes comments and the elements that make browsers switch to HTML, and only keeps the text of <title> and <desc> elements. It also makes sure that markup in CDATA sections and attribute values can't end a <noscript> element around the icon.
CVE-2026-133778 1 Symfony 1 Symfony/ux-live-component 2026-11-24 N/A
#[AsLiveComponent(route: '...')] makes a live component send its requests to another route. The documentation suggests it so that the component lives under a specific firewall, for example. The default /_components/{_live_component}/{_live_action} route still served the component, though. A request to it rendered the component and ran its actions outside the firewall and the access rules of the configured route. The request needs props signed by the application, which a page that rendered the component provides. Controller attributes on the component, like #[IsGranted], still applied. A live component is now only served by the route it is configured with.
CVE-2026-133779 1 Symfony 1 Symfony/ux-icons 2026-11-24 N/A
The fix for CVE-2026-55877 (GHSA-6v8j-33hc-mv84) sanitizes the SVG of icons before they are rendered inline. The checks matched attribute names as written in the icon, while browsers and the renderer read some names differently. On 2.x, fromFile() keys the attributes of the root <svg> element by their local name. A handler like x:onload passed the check, and was then rendered as onload, which runs on load. HTML parsers also read attribute names case-insensitively, so a SMIL animation with ATTRIBUTENAME="href" could set a javascript: URL on a link. And an href in the XLink namespace under another prefix, like q:href, wasn't checked. On 3.x, the sanitizer writes it out as xlink:href, and XML parsers resolve the prefix on both branches. Applications are exposed when an attacker can influence the SVG of the icons they render. The sources are the same as for CVE-2026-55877, like local icon files and the responses of the Iconify API. The sanitizer now checks attributes by local name. It also finds the attributeName of animations in any case, and ignores the prefix of its value.
CVE-2026-133780 1 Symfony 1 Symfony/stimulus-bridge 2026-11-24 N/A
The @symfony/stimulus-bridge npm package includes a Webpack loader called lazy-controller-loader that supports "magic comments" placed above a Stimulus controller import, for example /* stimulusFetch: 'lazy' */, to control lazy loading behavior. To read those options, the loader extracted the raw text of any stimulus* comment and evaluated it as JavaScript using Node's vm.runInNewContext(). The Node.js node:vm module is not a security sandbox, and a crafted comment can break out of the VM context using well-known techniques to run arbitrary Node.js code within the build process. This is a build-time vulnerability: it does not affect browsers or end users. The code executes on the developer machine or CI/build server during a Webpack or Symfony Encore build. Realistic attack vectors include a malicious Stimulus controller introduced through a compromised dependency, or a pull request that triggers an automated CI build. An attacker who can get such a file into the build can read files and environment variables available to the build process, exfiltrate CI secrets, tamper with generated build artifacts, and run commands with the permissions of the build user. The loader no longer evaluates comment content as JavaScript. It now parses each comment as an object expression using a real JavaScript parser and extracts only plain literal values. Any non-literal value, such as a function call, an identifier, or a sequence expression, is rejected and reported as a build error instead of being executed. Legitimate option values like 'lazy' and 'eager' continue to work without any changes required on the user's side.
CVE-2026-133781 1 Symfony 1 Symfony/stimulus-bridge 2026-11-24 N/A
The controllers.json loader of @symfony/stimulus-bridge loads the package.json file of each package listed in controllers.json with require(). Node resolves this path through the exports field of the package, which can map ./package.json to a script. require() then runs that script during the Webpack or Symfony Encore build. This is a build-time vulnerability: it doesn't affect browsers or end users. A malicious or compromised package listed in controllers.json can run code on the developer machine or the CI server. This works even when the package manager doesn't run install scripts. This code can read the files and environment variables of the build, like CI secrets, and change the built assets. The loader now reads the resolved file and parses it as JSON, so that a mapped script fails to parse instead of running.
CVE-2026-135803 1 Symfony 2 Symfony/filesystem, Symfony/symfony 2026-11-24 N/A
Most methods of Symfony\Component\Filesystem\Path rely on Path::split(), which takes everything before the first :// as the root of a path. It doesn't check that this prefix is a URI scheme, so the .. segments in that prefix are never resolved. PHP sees a scheme only at the start of a string. So /base/../x://../secret.txt is a plain local path to /secret.txt for PHP, while Path::isBasePath('/base', '/base/../x://../secret.txt') returns true. canonicalize(), join(), makeAbsolute() and makeRelative() are affected the same way. Some applications check a path built from user input with isBasePath() or canonicalize(), and then open it. They can be made to read or write files outside the expected directory. On Symfony 6.4 and later, the AssetMapper component builds with Path::join() the path of the files that a remote package references from its CSS. A malicious or compromised package can therefore make importmap:require or importmap:install write a file of its choice outside assets/vendor. For example, the CSS url(../../../../../public/x://shell.php) writes public/x:/shell.php. A prefix is now a scheme only when PHP would look for a stream wrapper with that name. That is two or more letters, digits, +, - or ., followed by :// at the start of the path. Other prefixes are regular path segments, and the .. segments after them are resolved. Real schemes such as phar://, file://, vfs:// or compress.zlib:// keep working.
CVE-2026-135804 1 Symfony 2 Symfony/json-path, Symfony/symfony 2026-11-24 N/A
The fix for CVE-2026-45756 lowers pcre.backtrack_limit to 10000 around each preg_match() call of the match() and search() filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work. Two other paths made the cost of a query grow faster than its size, without any regular expression: - The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses. - Queries starting with $ inside a filter, like @.x == $.limit or length($.items), were evaluated again for every node the filter visits. An application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU. JsonCrawler::find() now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query.
CVE-2026-118514 1 Symfony 1 Symfony 2026-11-10 N/A
In Symfony http-foundation prior to versions 5.4.56, 6.4.50, 7.4.23, and 8.1.11, Symfony\Component\HttpFoundation\RequestMatcher, and RequestMatcher\MethodRequestMatcher which replaces it from 6.2.x on, matches a request against a list of HTTP methods. These compared the request method to the list verbatim, while the router serves a HEAD request with the GET handler, as HTTP semantics require. This came after the incomplete fix of  CVE-2026-45075 https://github.com/advisories/GHSA-6439-2f28-8p8q , which addressed the same gap in the #[IsGranted], #[IsSignatureValid] and #[IsCsrfTokenValid] attributes only. Security rules configured to apply only to GET requests could therefore be bypassed by sending a HEAD request to the same URL. Although HEAD responses contain no body, attackers could still access response headers and trigger the controller's execution, including any side effects. This issue also affects firewalls configured with methods: [GET]. A HEAD request would not match that firewall and could instead be handled by another matching firewall or no firewall at all. Applications using these vulnerable request matchers directly, including through a custom firewall request_matcher, could also be affected. The issue affects symfony/http-foundation through v5.4.55, v6.x through 6.4.49, v7.x through v7.4.22, and v8.x through v8.1.10.
CVE-2026-46633 2 Symfony, Twigphp 2 Twig, Twig 2026-11-04 9.8 Critical
Twig is a template language for PHP. Starting in 1.15.1 and prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is placed inside a PHP single-quoted string literal, allowing a crafted template name to terminate the string and inject arbitrary PHP expressions into the compiled cache file. This issue is fixed in version 3.26.0.
CVE-2026-55877 1 Symfony 1 Ux 2026-08-19 6.1 Medium
Symfony UX is a JavaScript ecosystem for Symfony. From 2.17.0 before 2.36.1 and from 3.0.0 before 3.2.0, the ux_icon() Twig function is marked is_safe=['html'] and Icon::toHtml() inlines SVG source verbatim, allowing unsanitized local SVG files or Iconify on-demand JSON body responses containing nested script elements, on* event handlers, or dangerous URL schemes to execute cross-site scripting. This issue is fixed in versions 2.36.1 and 3.2.0.
CVE-2026-45066 2 Sensiolabs, Symfony 3 Symfony, Html-sanitizer, Symfony 2026-08-05 6.1 Medium
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, HtmlSanitizer URL sanitization can allow off-allowlist URLs through allowLinkHosts() or allowMediaHosts() because UrlSanitizer::parse() follows RFC 3986 while browsers follow WHATWG URL parsing, and because <area href> is checked against the media policy rather than the link policy. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
CVE-2026-45753 2 Sensiolabs, Symfony 3 Symfony, Html-sanitizer, Symfony 2026-08-05 6.1 Medium
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlAttributeSanitizer::getSupportedAttributes() omits URL-valued attributes including action, formaction, poster, and cite, so configurations that admit those attributes can leave javascript: URIs unsanitized and enable XSS when the resulting HTML is rendered or a victim submits a form or clicks a button. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
CVE-2026-45064 2 Sensiolabs, Symfony 3 Symfony, Html-sanitizer, Symfony 2026-08-05 6.1 Medium
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlSanitizer::parse() passes Unicode explicit-direction BiDi formatting characters through into sanitized href and src attributes, allowing sanitized content to display a link destination that visually differs from the actual destination and enabling phishing-style visual spoofing. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
CVE-2026-48784 2 Sensiolabs, Symfony 3 Symfony, Routing, Symfony 2026-08-05 6.1 Medium
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.53, 6.4.41, 7.4.13, and 8.0.13, UrlGenerator::doGenerate() used strtr() dot-segment encoding that skipped every other chained ../ or ./ segment, allowing attacker-controlled route parameters to generate URLs that collapse to a different path under RFC 3986 normalization. This issue is fixed in versions 5.4.53, 6.4.41, 7.4.13, and 8.0.13.
CVE-2026-48760 2 Sensiolabs, Symfony 3 Symfony, Html-sanitizer, Symfony 2026-08-05 6.1 Medium
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0 until 6.4.41, 7.4.13, and 8.0.13, UrlSanitizer::parse() rejected raw BiDi formatting characters but not percent-encoded forms and used an ASCII-only whitespace check, allowing sanitized URLs to retain visual-spoofing characters that downstream consumers could decode or display. This issue is fixed in versions 6.4.41, 7.4.13, and 8.0.13.