<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
>
    <channel>
        <title>Symfony Blog</title>
        <atom:link href="https://feeds.feedburner.com/symfony/blog" rel="self" type="application/rss+xml" />
        <link>https://symfony.com/blog/</link>
        <description>Most recent posts published on the Symfony project blog</description>
        <pubDate>Wed, 25 Nov 2026 23:17:18 +0100</pubDate>
        <lastBuildDate>Wed, 25 Nov 2026 17:12:00 +0100</lastBuildDate>
        <language>en</language>
                        <item>
            <title>New in Symfony 8.2: Profiler Improvements</title>
            <link>https://symfony.com/blog/new-in-symfony-8-2-profiler-improvements?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</link>
            <description>The Symfony profiler is the first place to look at when something doesn&#039;t
work as expected in your application. Symfony 8.2 makes it more useful when
debugging authentication and HTTP requests, and easier to use for everybody.

Reasons for Skipped Authenticators…</description>
            <content:encoded><![CDATA[
                                <p>The <a href="https://symfony.com/doc/current/profiler.html" class="reference external">Symfony profiler</a> is the first place to look at when something doesn't
work as expected in your application. Symfony 8.2 makes it more useful when
debugging authentication and HTTP requests, and easier to use for everybody.</p>
<div class="section">
<h2 id="reasons-for-skipped-authenticators"><a class="headerlink" href="#reasons-for-skipped-authenticators" title="Permalink to this headline">Reasons for Skipped Authenticators</a></h2>
<div class="blog-post-contributor-info">
    <div class="blog-post-contributor-avatar">
                    <a target="_blank" href="https://connect.symfony.com/profile/nicolas-grekas">
                <img src="https://connect.symfony.com/profile/nicolas-grekas.picture" alt="Nicolas Grekas">
            </a>
            </div>
    <div class="blog-post-contributor-contents">
        <span>Contributed by</span>
                    <a target="_blank" class="blog-post-contributor-name" href="https://connect.symfony.com/profile/nicolas-grekas">Nicolas Grekas</a>
                                        <span class="blog-post-contributor-prs"> in
                                    <a target="_blank" href="https://github.com/symfony/symfony/pull/65839">#65839</a>
                                                </span>
            </div>
</div>
<p>When a firewall has several authenticators, the security panel of the profiler
lists all of them and tells you which ones supported the request. For the ones
that didn't, the panel only said "This authenticator did not support the
request" and you had to find out why: a JSON login request sent without the
right <code translate="no" class="notranslate">Content-Type</code> header, a login form posted to the wrong path, etc.</p>
<p>In Symfony 8.2, authenticators <strong>explain why they skipped the request</strong>:</p>
<div class="figure">
    <img alt="The Authenticators tab of the security panel in the Symfony 8.2 profiler, showing the reason why the form login and JSON login authenticators did not support a request" class="align-center" src="https://symfony.com/uploads/assets/blog/symfony-8-2-profiler-authenticator-reasons.webp">
</div>
<p>All built-in authenticators give their reasons, and so do the authenticators
that extend <code translate="no" class="notranslate">AbstractLoginFormAuthenticator</code>. In your own
<a href="https://symfony.com/doc/current/security/custom_authenticator.html" class="reference external">custom authenticators</a>, add the reason before returning <code translate="no" class="notranslate">false</code> in the
<code translate="no" class="notranslate">supports()</code> method:</p>
<div translate="no" data-loc="24" class="notranslate codeblock codeblock-length-md codeblock-php">
        <div class="codeblock-scroll">
        
        <pre class="codeblock-code"><code><span class="hljs-comment">// src/Security/TenantAuthenticator.php</span>
<span class="hljs-keyword">namespace</span> <span class="hljs-title">App</span>\<span class="hljs-title">Security</span>;

<span class="hljs-keyword">use</span> <span class="hljs-title">Symfony</span>\<span class="hljs-title">Component</span>\<span class="hljs-title">HttpFoundation</span>\<span class="hljs-title">Request</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">Symfony</span>\<span class="hljs-title">Component</span>\<span class="hljs-title">Security</span>\<span class="hljs-title">Http</span>\<span class="hljs-title">Authenticator</span>\<span class="hljs-title">AbstractAuthenticator</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">Symfony</span>\<span class="hljs-title">Component</span>\<span class="hljs-title">Security</span>\<span class="hljs-title">Http</span>\<span class="hljs-title">SecurityRequestAttributes</span>;

<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">TenantAuthenticator</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">AbstractAuthenticator</span>
</span>{
    <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">supports</span><span class="hljs-params">(Request <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>request</span>)</span>: ?<span class="hljs-title">bool</span>
    </span>{
        <span class="hljs-keyword">if</span> (!<span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>request</span>-&gt;headers-&gt;<span class="hljs-title invoke__">has</span>(<span class="hljs-string">'X-Tenant'</span>)) {
            <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>request</span>-&gt;attributes
                -&gt;<span class="hljs-title invoke__">get</span>(SecurityRequestAttributes::<span class="hljs-variable constant_">UNSUPPORTED_REASONS</span>)
                ?-&gt;<span class="hljs-title invoke__">add</span>(<span class="hljs-string">'the "X-Tenant" header is missing'</span>);

            <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;
        }

        <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;
    }

    <span class="hljs-comment">// ...</span>
}</code></pre>
    </div>
</div>
<p>This request attribute only exists while the profiler is collecting data. In
production, the nullsafe operator skips the call, so explaining your
authenticators costs nothing.</p>
</div>
<div class="section">
<h2 id="reasons-for-deauthenticated-users"><a class="headerlink" href="#reasons-for-deauthenticated-users" title="Permalink to this headline">Reasons for Deauthenticated Users</a></h2>
<div class="blog-post-contributor-info">
    <div class="blog-post-contributor-avatar">
                    <a target="_blank" href="https://connect.symfony.com/profile/amoifr">
                <img src="https://connect.symfony.com/profile/amoifr.picture" alt="Pascal CESCON">
            </a>
            </div>
    <div class="blog-post-contributor-contents">
        <span>Contributed by</span>
                    <a target="_blank" class="blog-post-contributor-name" href="https://connect.symfony.com/profile/amoifr">Pascal CESCON</a>
                                        <span class="blog-post-contributor-prs"> in
                                    <a target="_blank" href="https://github.com/symfony/symfony/pull/63867">#63867</a>
                                                </span>
            </div>
</div>
<p>Symfony reloads the user from the session at the beginning of each request. If
the user has changed (e.g. the password or the roles are different), Symfony
deauthenticates them. This was hard to debug because the profiler only said
"There is no security token."</p>
<p>In Symfony 8.2, the security panel shows <strong>who was deauthenticated and why</strong>:</p>
<div class="figure">
    <img alt="The Token tab of the security panel in the Symfony 8.2 profiler, showing that the user jane was deauthenticated during the request because the user has changed" class="align-center" src="https://symfony.com/uploads/assets/blog/symfony-8-2-profiler-deauthentication-reason-no-token.webp">
</div>
<p>The same information is available in the <code translate="no" class="notranslate">TokenDeauthenticatedEvent</code>, which
now provides the <code translate="no" class="notranslate">getReason()</code> and <code translate="no" class="notranslate">getProviderClasses()</code> methods. Use them,
for example, to log unexpected logouts in production:</p>
<div translate="no" data-loc="26" class="notranslate codeblock codeblock-length-md codeblock-php">
        <div class="codeblock-scroll">
        
        <pre class="codeblock-code"><code><span class="hljs-comment">// src/EventListener/DeauthenticationLogger.php</span>
<span class="hljs-keyword">namespace</span> <span class="hljs-title">App</span>\<span class="hljs-title">EventListener</span>;

<span class="hljs-keyword">use</span> <span class="hljs-title">Psr</span>\<span class="hljs-title">Log</span>\<span class="hljs-title">LoggerInterface</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">Symfony</span>\<span class="hljs-title">Component</span>\<span class="hljs-title">EventDispatcher</span>\<span class="hljs-title">Attribute</span>\<span class="hljs-title">AsEventListener</span>;
<span class="hljs-keyword">use</span> <span class="hljs-title">Symfony</span>\<span class="hljs-title">Component</span>\<span class="hljs-title">Security</span>\<span class="hljs-title">Http</span>\<span class="hljs-title">Event</span>\<span class="hljs-title">TokenDeauthenticatedEvent</span>;

<span class="hljs-keyword">final</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">DeauthenticationLogger</span>
</span>{
    <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">__construct</span><span class="hljs-params">(
        <span class="hljs-keyword">private</span> LoggerInterface <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>logger</span>,
    )</span> </span>{
    }

    <span class="hljs-meta">#[AsEventListener]</span>
    <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">onTokenDeauthenticated</span><span class="hljs-params">(TokenDeauthenticatedEvent <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>event</span>)</span>: <span class="hljs-title">void</span>
    </span>{
        <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>this</span>-&gt;logger-&gt;<span class="hljs-title invoke__">notice</span>(<span class="hljs-string">'User "{user}" was deauthenticated because {reason}.'</span>, [
            <span class="hljs-string">'user'</span> =&gt; <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>event</span>-&gt;<span class="hljs-title invoke__">getOriginalToken</span>()-&gt;<span class="hljs-title invoke__">getUserIdentifier</span>(),
            <span class="hljs-comment">// e.g. 'the user has changed'</span>
            <span class="hljs-string">'reason'</span> =&gt; <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>event</span>-&gt;<span class="hljs-title invoke__">getReason</span>() ?? <span class="hljs-string">'of an unknown reason'</span>,
            <span class="hljs-comment">// the user providers that detected the change</span>
            <span class="hljs-string">'providers'</span> =&gt; <span class="hljs-variable"><span class="hljs-variable-other-marker">$</span>event</span>-&gt;<span class="hljs-title invoke__">getProviderClasses</span>(),
        ]);
    }
}</code></pre>
    </div>
</div>
</div>
<div class="section">
<h2 id="duration-and-size-of-http-client-requests"><a class="headerlink" href="#duration-and-size-of-http-client-requests" title="Permalink to this headline">Duration and Size of HTTP Client Requests</a></h2>
<div class="blog-post-contributor-info">
    <div class="blog-post-contributor-avatar">
                    <a target="_blank" href="https://connect.symfony.com/profile/mthieulin">
                <img src="https://connect.symfony.com/profile/mthieulin.picture" alt="Michaël Thieulin">
            </a>
            </div>
    <div class="blog-post-contributor-contents">
        <span>Contributed by</span>
                    <a target="_blank" class="blog-post-contributor-name" href="https://connect.symfony.com/profile/mthieulin">Michaël Thieulin</a>
                                        <span class="blog-post-contributor-prs"> in
                                    <a target="_blank" href="https://github.com/symfony/symfony/pull/66213">#66213</a>
                                                </span>
            </div>
</div>
<p>When a page is slow because of the HTTP requests that it makes, you need to
know how long each request took and how much data it transferred. The
<a href="https://symfony.com/doc/current/http_client.html" class="reference external">HttpClient component</a> already collected that information, but the profiler
showed it inside the collapsed <code translate="no" class="notranslate">info</code> dump of each response.</p>
<p>In Symfony 8.2, each response shows <strong>its duration and its transferred sizes</strong>
(<code translate="no" class="notranslate">↑</code> for the uploaded data and <code translate="no" class="notranslate">↓</code> for the downloaded data) next to the
status code:</p>
<div class="figure">
    <img alt="The HTTP Client panel of the Symfony 8.2 profiler, showing the total time of all requests and the duration and transferred sizes of each response" class="align-center" src="https://symfony.com/uploads/assets/blog/symfony-8-2-profiler-http-client-metrics.webp">
</div>
<p>The panel and the web debug toolbar also display a new <strong>Total time</strong> metric,
which is the sum of the durations of all requests. Concurrent requests are
counted in full, so this value can be higher than the time that your
application actually waited for them.</p>
</div>
<div class="section">
<h2 id="ajax-requests-made-while-the-page-loads"><a class="headerlink" href="#ajax-requests-made-while-the-page-loads" title="Permalink to this headline">AJAX Requests Made While the Page Loads</a></h2>
<div class="blog-post-contributor-info">
    <div class="blog-post-contributor-avatar">
                    <a target="_blank" href="https://connect.symfony.com/profile/nicolas-grekas">
                <img src="https://connect.symfony.com/profile/nicolas-grekas.picture" alt="Nicolas Grekas">
            </a>
            </div>
    <div class="blog-post-contributor-contents">
        <span>Contributed by</span>
                    <a target="_blank" class="blog-post-contributor-name" href="https://connect.symfony.com/profile/nicolas-grekas">Nicolas Grekas</a>
                                        <span class="blog-post-contributor-prs"> in
                                    <a target="_blank" href="https://github.com/symfony/symfony/pull/67042">#67042</a>
                                                </span>
            </div>
</div>
<p>The web debug toolbar lists the AJAX requests made by the page, with a link to
the profile of each of them. However, the toolbar is injected at the end of the
page, so it missed the requests that started before it was ready. This is
common in applications whose scripts fetch data while the page is loading:</p>
<div translate="no" data-loc="7" class="notranslate codeblock codeblock-length-sm codeblock-html+twig codeblock-twig">
        <div class="codeblock-scroll">
        
        <pre class="codeblock-code"><code><span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    </span><span class="hljs-comment">{# ... #}</span><span class="xml">
    <span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="actionscript">
        fetch(<span class="hljs-string">'/api/cart'</span>);
        fetch(<span class="hljs-string">'/api/recommendations'</span>);
    </span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span></span></code></pre>
    </div>
</div>
<p>In Symfony 8.2, the code that tracks <code translate="no" class="notranslate">fetch()</code> and <code translate="no" class="notranslate">XMLHttpRequest</code> calls is
injected <strong>before the first script of the page</strong>, so the toolbar lists those
early requests too:</p>
<div class="figure">
    <img alt="The web debug toolbar of Symfony 8.2 listing three AJAX requests that were made while the page was loading, with their profile, method, type, status, URL and time" class="align-center" src="https://symfony.com/uploads/assets/blog/symfony-8-2-profiler-early-ajax-requests.webp">
</div>
<p>This works for regular responses. Streamed responses keep the previous behavior.</p>
</div>
<div class="section">
<h2 id="excluding-requests-from-the-profiler"><a class="headerlink" href="#excluding-requests-from-the-profiler" title="Permalink to this headline">Excluding Requests from the Profiler</a></h2>
<div class="blog-post-contributor-info">
    <div class="blog-post-contributor-avatar">
                    <a target="_blank" href="https://connect.symfony.com/profile/mthieulin">
                <img src="https://connect.symfony.com/profile/mthieulin.picture" alt="Michaël Thieulin">
            </a>
            </div>
    <div class="blog-post-contributor-contents">
        <span>Contributed by</span>
                    <a target="_blank" class="blog-post-contributor-name" href="https://connect.symfony.com/profile/mthieulin">Michaël Thieulin</a>
                                        <span class="blog-post-contributor-prs"> in
                                    <a target="_blank" href="https://github.com/symfony/symfony/pull/65427">#65427</a>
                                                </span>
            </div>
</div>
<p>Some requests are just noise in the profiler: health checks, monitoring probes,
<code translate="no" class="notranslate">favicon.ico</code> or the <code translate="no" class="notranslate">/.well-known/...</code> file that Chrome DevTools requests
again and again. Symfony 8.2 adds two options to <strong>exclude requests from being
profiled</strong>, by their path and by the status code of their response:</p>
<div class="configuration-block">
    <div role="tablist" aria-label="Configuration formats" class="configuration-tabs configuration-tabs-length-2">
                    <button role="tab" type="button" data-language="yaml" aria-controls="configuration-block-tabpanel-87649c5485827e60d5f41a36524976c37ec8fb5d" aria-selected="true" data-active="true">
                <span>YAML</span>
            </button>
                    <button role="tab" type="button" data-language="php" aria-controls="configuration-block-tabpanel-7ed66680d38638f3f598a8a8b6a724e52cb60582" aria-selected="false" tabindex="-1">
                <span>PHP</span>
            </button>
            </div>

            <div role="tabpanel" id="configuration-block-tabpanel-87649c5485827e60d5f41a36524976c37ec8fb5d" aria-label="YAML" class="configuration-codeblock" data-language="yaml" style="">
            <div translate="no" data-loc="11" class="notranslate codeblock codeblock-length-md codeblock-yaml">
        <div class="codeblock-scroll">
        
        <pre class="codeblock-code"><code><span class="hljs-comment"># config/packages/web_profiler.yaml</span>
<span class="hljs-string">when@dev:</span>
    <span class="hljs-attr">framework:</span>
        <span class="hljs-attr">profiler:</span>
            <span class="hljs-attr">excluded_paths:</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">'^/\.well-known/'</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">'^/health$'</span>
            <span class="hljs-attr">excluded_http_codes:</span>
                <span class="hljs-attr">404:</span> <span class="hljs-string">~</span>                          <span class="hljs-comment"># all 404 responses</span>
                <span class="hljs-attr">405:</span> <span class="hljs-string">'^/api'</span>                    <span class="hljs-comment"># 405 responses under this path</span>
                <span class="hljs-attr">400:</span> <span class="hljs-string">['^/api',</span> <span class="hljs-string">'^/webhooks'</span><span class="hljs-string">]</span>    <span class="hljs-comment"># 400 responses under these paths</span></code></pre>
    </div>
</div>
        </div>
            <div role="tabpanel" id="configuration-block-tabpanel-7ed66680d38638f3f598a8a8b6a724e52cb60582" aria-label="PHP" class="configuration-codeblock" data-language="php" style="display: none">
            <div translate="no" data-loc="17" class="notranslate codeblock codeblock-length-md codeblock-php">
        <div class="codeblock-scroll">
        
        <pre class="codeblock-code"><code><span class="hljs-comment">// config/packages/web_profiler.php</span>
<span class="hljs-keyword">namespace</span> <span class="hljs-title">Symfony</span>\<span class="hljs-title">Component</span>\<span class="hljs-title">DependencyInjection</span>\<span class="hljs-title">Loader</span>\<span class="hljs-title">Configurator</span>;

<span class="hljs-keyword">return</span> App::<span class="hljs-title invoke__">config</span>([
    <span class="hljs-string">'when@dev'</span> =&gt; [
        <span class="hljs-string">'framework'</span> =&gt; [
            <span class="hljs-string">'profiler'</span> =&gt; [
                <span class="hljs-string">'excluded_paths'</span> =&gt; [<span class="hljs-string">'^/\.well-known/'</span>, <span class="hljs-string">'^/health$'</span>],
                <span class="hljs-string">'excluded_http_codes'</span> =&gt; [
                    <span class="hljs-number">404</span> =&gt; <span class="hljs-keyword">null</span>,                        <span class="hljs-comment">// all 404 responses</span>
                    <span class="hljs-number">405</span> =&gt; <span class="hljs-string">'^/api'</span>,                     <span class="hljs-comment">// 405 responses under this path</span>
                    <span class="hljs-number">400</span> =&gt; [<span class="hljs-string">'^/api'</span>, <span class="hljs-string">'^/webhooks'</span>],     <span class="hljs-comment">// 400 responses under these paths</span>
                ],
            ],
        ],
    ],
]);</code></pre>
    </div>
</div>
        </div>
    </div>
<p>The paths are regular expressions without delimiters. They are case-sensitive
and matched against the URL-decoded path of the request. Symfony doesn't exclude
any request by default, but the recipe for new applications already excludes
the <code translate="no" class="notranslate">/.well-known/</code> and <code translate="no" class="notranslate">/favicon.ico</code> paths in the <code translate="no" class="notranslate">dev</code> environment.</p>
</div>
<div class="section">
<h2 id="keyboard-and-screen-reader-accessible-panels"><a class="headerlink" href="#keyboard-and-screen-reader-accessible-panels" title="Permalink to this headline">Keyboard and Screen Reader Accessible Panels</a></h2>
<div class="blog-post-contributor-info">
    <div class="blog-post-contributor-avatar">
                    <a target="_blank" href="https://connect.symfony.com/profile/nitram1618">
                <img src="https://connect.symfony.com/profile/nitram1618.picture" alt="Martin Gilbert">
            </a>
            </div>
    <div class="blog-post-contributor-contents">
        <span>Contributed by</span>
                    <a target="_blank" class="blog-post-contributor-name" href="https://connect.symfony.com/profile/nitram1618">Martin Gilbert</a>
                                        <span class="blog-post-contributor-prs"> in
                                    <a target="_blank" href="https://github.com/symfony/symfony/pull/64853">#64853</a>
                                                </span>
            </div>
</div>
<p>The profiler is a tool that you use many times a day, so it must be usable by
everybody. Symfony 8.2 makes the panels of the profiler <strong>accessible with a
keyboard and with a screen reader</strong>:</p>
<ul>
    <li><strong>Tabs</strong> follow the <a href="https://www.w3.org/WAI/ARIA/apg/patterns/tabs/" class="reference external" rel="external noopener noreferrer" target="_blank">ARIA tabs pattern</a>: the left and right arrow keys move
between tabs, the whole group is a single tab stop and disabled tabs are
exposed as unavailable;</li>
<li><strong>Toggles</strong> that only display an icon (such as the chevrons that expand and
collapse contents) are now real buttons that you can focus, with an
accessible name and their expanded state;</li>
<li>The <strong>field tree of the Forms panel</strong> follows the <a href="https://www.w3.org/WAI/ARIA/apg/patterns/treeview/" class="reference external" rel="external noopener noreferrer" target="_blank">ARIA tree view pattern</a>:
the up and down arrow keys move between fields, the right and left arrow keys
expand and collapse them, <code translate="no" class="notranslate">Home</code> and <code translate="no" class="notranslate">End</code> jump to the first and last
field, and <code translate="no" class="notranslate">Enter</code> or <code translate="no" class="notranslate">Space</code> select a field.</li>
</ul>
<p>Symfony 8.2 accessibility improvements in action in the Forms panel of the profiler,
with the city field of a nested address form focused and selected using only the keyboard:</p>
<div class="figure">
    <img alt="The Forms panel of the Symfony 8.2 profiler, with the city field of a nested address form focused and selected using only the keyboard" class="align-center" src="https://symfony.com/uploads/assets/blog/symfony-8-2-profiler-forms-tree-keyboard.webp">
</div>
</div>
                <hr style="margin-bottom: 5px" />
                <div style="font-size: 90%">
                    <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
                </div>
            ]]></content:encoded>
            <guid isPermaLink="false">https://symfony.com/blog/new-in-symfony-8-2-profiler-improvements?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</guid>
            <dc:creator><![CDATA[ Javier Eguiluz ]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 17:12:00 +0100</pubDate>
            <comments>https://symfony.com/blog/new-in-symfony-8-2-profiler-improvements?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed#comments-list</comments>
        </item>
                        <item>
            <title>CVE-2026-134792 HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in CLI-SAPI HTTP Workers</title>
            <link>https://symfony.com/blog/cve-2026-134792-httpclient-lets-the-proxy-header-of-a-request-choose-the-proxy-of-outgoing-requests-in-cli-sapi-http-workers?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</link>
            <description>
Affected versions
Symfony HTTP Client versions &amp;gt;=4.3, &amp;lt;5.4.57, &amp;gt;=6, &amp;lt;6.4.51, &amp;gt;=7, &amp;lt;7.4.24, &amp;gt;=8, &amp;lt;8.1.12 are affected by this security issue.
The issue has been fixed in Symfony HTTP Client 5.4.57, 6.4.51, 7.4.24, 8.1.12.


Description…</description>
            <content:encoded><![CDATA[
                                <div class="section">
<h2 id="affected-versions"><a class="headerlink" href="#affected-versions" title="Permalink to this headline">Affected versions</a></h2>
<p>Symfony HTTP Client versions &gt;=4.3, &lt;5.4.57, &gt;=6, &lt;6.4.51, &gt;=7, &lt;7.4.24, &gt;=8, &lt;8.1.12 are affected by this security issue.</p>
<p>The issue has been fixed in Symfony HTTP Client 5.4.57, 6.4.51, 7.4.24, 8.1.12.</p>
</div>
<div class="section">
<h2 id="description"><a class="headerlink" href="#description" title="Permalink to this headline">Description</a></h2>
<p>When the <code translate="no" class="notranslate">proxy</code> option isn't set, HttpClient takes the proxy from environment variables like <code translate="no" class="notranslate">http_proxy</code> or <code translate="no" class="notranslate">HTTP_PROXY</code>. On web servers, it ignores <code translate="no" class="notranslate">HTTP_PROXY</code>, because PHP puts the <code translate="no" class="notranslate">Proxy</code> request header there (the httpoxy issue). On the CLI SAPI, it read <code translate="no" class="notranslate">HTTP_PROXY</code> from <code translate="no" class="notranslate">$_SERVER</code>, where PHP also puts the environment.</p>
<p>HTTP workers that run under the CLI SAPI put the headers of each request in <code translate="no" class="notranslate">$_SERVER</code> too. This is the case of spiral/roadrunner-http, which the RoadRunner runner of php-runtime uses, and of baldinof/roadrunner-bundle and php-pm. A client could then send a <code translate="no" class="notranslate">Proxy</code> header to choose the proxy of the requests that the application sent while handling its request. That proxy received the full requests to <code translate="no" class="notranslate">http://</code> URLs, with their credentials, and could forge the responses. For <code translate="no" class="notranslate">https://</code> URLs, it learned the host and port through <code translate="no" class="notranslate">CONNECT</code>.</p>
<p><code translate="no" class="notranslate">NativeHttpClient</code> is affected since Symfony 4.3.0, <code translate="no" class="notranslate">AmpHttpClient</code> since 5.1.0, and <code translate="no" class="notranslate">CurlHttpClient</code> since 4.4.40, 5.4.7 and 6.0.7.</p>
</div>
<div class="section">
<h2 id="resolution"><a class="headerlink" href="#resolution" title="Permalink to this headline">Resolution</a></h2>
<p>On the CLI SAPI, <code translate="no" class="notranslate">HTTP_PROXY</code> is now read from the environment with <code translate="no" class="notranslate">$_ENV</code> and <code translate="no" class="notranslate">getenv()</code>, never from <code translate="no" class="notranslate">$_SERVER</code>. Other SAPIs still ignore it.</p>
<p>The patch for this issue is available <a href="https://github.com/symfony/symfony/commit/3684fa9d43502edbd70406bdc94eae2d1aac5c97" class="reference external" rel="external noopener noreferrer" target="_blank">here</a> for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).</p>
</div>
<div class="section">
<h2 id="credits"><a class="headerlink" href="#credits" title="Permalink to this headline">Credits</a></h2>
<p>We would like to thank Nicolas Grekas for reporting the issue and providing the fix.</p>
</div>
                <hr style="margin-bottom: 5px" />
                <div style="font-size: 90%">
                    <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
                </div>
            ]]></content:encoded>
            <guid isPermaLink="false">https://symfony.com/blog/cve-2026-134792-httpclient-lets-the-proxy-header-of-a-request-choose-the-proxy-of-outgoing-requests-in-cli-sapi-http-workers?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</guid>
            <dc:creator><![CDATA[ Fabien Potencier ]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 10:40:56 +0100</pubDate>
            <comments>https://symfony.com/blog/cve-2026-134792-httpclient-lets-the-proxy-header-of-a-request-choose-the-proxy-of-outgoing-requests-in-cli-sapi-http-workers?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed#comments-list</comments>
        </item>
                        <item>
            <title>CVE-2026-134791 Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process</title>
            <link>https://symfony.com/blog/cve-2026-134791-unclosed-comments-make-the-lexer-of-expressionlanguage-quadratic-letting-untrusted-expressions-hold-a-process?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</link>
            <description>
Affected versions
Symfony Expression Language versions &amp;gt;=7.2.0, &amp;lt;7.4.24, &amp;gt;=8.0.0, &amp;lt;8.1.12 are affected by this security issue.
The issue has been fixed in Symfony Expression Language 7.4.24, 8.1.12.


Description
Since Symfony 7.2, expressions…</description>
            <content:encoded><![CDATA[
                                <div class="section">
<h2 id="affected-versions"><a class="headerlink" href="#affected-versions" title="Permalink to this headline">Affected versions</a></h2>
<p>Symfony Expression Language versions &gt;=7.2.0, &lt;7.4.24, &gt;=8.0.0, &lt;8.1.12 are affected by this security issue.</p>
<p>The issue has been fixed in Symfony Expression Language 7.4.24, 8.1.12.</p>
</div>
<div class="section">
<h2 id="description"><a class="headerlink" href="#description" title="Permalink to this headline">Description</a></h2>
<p>Since Symfony 7.2, expressions can contain comments. The lexer used a regular expression to find the end of a comment. When a <code translate="no" class="notranslate">/*</code> was never closed, this regular expression scanned the rest of the expression, and the lexer then went on with the next character. So each <code translate="no" class="notranslate">/*</code> scanned the rest of the expression again. Linting 192 KB of <code translate="no" class="notranslate">/*</code> took 9 to 11 seconds, and 96 KB took 34 seconds without PCRE JIT.</p>
<p>The lexer runs before the parser and its nesting limit. Any code that lints or parses untrusted expressions is affected, including the <code translate="no" class="notranslate">ExpressionSyntax</code> validation constraint. A <code translate="no" class="notranslate">Length</code> constraint on the same value doesn't help, since the validator runs both constraints.</p>
</div>
<div class="section">
<h2 id="resolution"><a class="headerlink" href="#resolution" title="Permalink to this headline">Resolution</a></h2>
<p>The lexer now uses <code translate="no" class="notranslate">strpos()</code> to find the end of a comment, and a comment that is never closed throws a <code translate="no" class="notranslate">SyntaxError</code>. Such expressions were already invalid. Lexing takes linear time again.</p>
<p>The patch for this issue is available <a href="https://github.com/symfony/symfony/commit/e098ffa5936c7c238b9c1a9d5cb82def4573de4f" class="reference external" rel="external noopener noreferrer" target="_blank">here</a> for branch 7.4 (and forward-ported to 8.1 and 8.2).</p>
</div>
<div class="section">
<h2 id="credits"><a class="headerlink" href="#credits" title="Permalink to this headline">Credits</a></h2>
<p>We would like to thank Nicolas Grekas for reporting the issue and providing the fix.</p>
</div>
                <hr style="margin-bottom: 5px" />
                <div style="font-size: 90%">
                    <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
                </div>
            ]]></content:encoded>
            <guid isPermaLink="false">https://symfony.com/blog/cve-2026-134791-unclosed-comments-make-the-lexer-of-expressionlanguage-quadratic-letting-untrusted-expressions-hold-a-process?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</guid>
            <dc:creator><![CDATA[ Fabien Potencier ]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 10:40:56 +0100</pubDate>
            <comments>https://symfony.com/blog/cve-2026-134791-unclosed-comments-make-the-lexer-of-expressionlanguage-quadratic-letting-untrusted-expressions-hold-a-process?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed#comments-list</comments>
        </item>
                        <item>
            <title>CVE-2026-134790 Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652</title>
            <link>https://symfony.com/blog/cve-2026-134790-login-redirects-can-still-reach-another-host-when-the-session-cookie-domain-is-set-incomplete-fix-for-cve-2017-16652?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</link>
            <description>
Affected versions
Symfony Security HTTP versions &amp;lt;5.4.57, &amp;gt;=6, &amp;lt;6.4.51, &amp;gt;=7, &amp;lt;7.4.24, &amp;gt;=8, &amp;lt;8.1.12 are affected by this security issue.
The issue has been fixed in Symfony Security HTTP 5.4.57, 6.4.51, 7.4.24, 8.1.12.


Description
The…</description>
            <content:encoded><![CDATA[
                                <div class="section">
<h2 id="affected-versions"><a class="headerlink" href="#affected-versions" title="Permalink to this headline">Affected versions</a></h2>
<p>Symfony Security HTTP versions &lt;5.4.57, &gt;=6, &lt;6.4.51, &gt;=7, &lt;7.4.24, &gt;=8, &lt;8.1.12 are affected by this security issue.</p>
<p>The issue has been fixed in Symfony Security HTTP 5.4.57, 6.4.51, 7.4.24, 8.1.12.</p>
</div>
<div class="section">
<h2 id="description"><a class="headerlink" href="#description" title="Permalink to this headline">Description</a></h2>
<p>The fix for CVE-2017-16652 restricts the redirects of <code translate="no" class="notranslate">HttpUtils::createRedirectResponse()</code> to the host of the request. When <code translate="no" class="notranslate">framework.session.cookie_domain</code> is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first "/". But browsers also end the host at "\", "?" and "#". So with the cookie domain <code translate="no" class="notranslate">.example.com</code>, a target like <code translate="no" class="notranslate">https://evil.test?.example.com</code> passed the check, and the browser went to evil.test.</p>
<p>Applications are exposed when <code translate="no" class="notranslate">framework.session.cookie_domain</code> is set. The default success and failure handlers of <code translate="no" class="notranslate">form_login</code> redirect to the <code translate="no" class="notranslate">_target_path</code> or <code translate="no" class="notranslate">_failure_path</code> of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.</p>
</div>
<div class="section">
<h2 id="resolution"><a class="headerlink" href="#resolution" title="Permalink to this headline">Resolution</a></h2>
<p><code translate="no" class="notranslate">HttpUtils</code> now ends the host of a target where browsers do, before checking it against the allowed domains.</p>
<p>The patch for this issue is available <a href="https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844" class="reference external" rel="external noopener noreferrer" target="_blank">here</a> for branch 5.4.</p>
</div>
<div class="section">
<h2 id="credits"><a class="headerlink" href="#credits" title="Permalink to this headline">Credits</a></h2>
<p>We would like to thank <a href="https://github.com/aimahdi" class="reference external" rel="external noopener noreferrer" target="_blank">Amimul Ihsan</a> for reporting the issue and Nicolas Grekas for providing the fix.</p>
</div>
                <hr style="margin-bottom: 5px" />
                <div style="font-size: 90%">
                    <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
                </div>
            ]]></content:encoded>
            <guid isPermaLink="false">https://symfony.com/blog/cve-2026-134790-login-redirects-can-still-reach-another-host-when-the-session-cookie-domain-is-set-incomplete-fix-for-cve-2017-16652?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</guid>
            <dc:creator><![CDATA[ Fabien Potencier ]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 10:40:56 +0100</pubDate>
            <comments>https://symfony.com/blog/cve-2026-134790-login-redirects-can-still-reach-another-host-when-the-session-cookie-domain-is-set-incomplete-fix-for-cve-2017-16652?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed#comments-list</comments>
        </item>
                        <item>
            <title>CVE-2026-133762 Without APP_RUNTIME_MODE, HTTP Workers Running Under the CLI SAPI Return Full Exception Dumps in Production</title>
            <link>https://symfony.com/blog/cve-2026-133762-without-app-runtime-mode-http-workers-running-under-the-cli-sapi-return-full-exception-dumps-in-production?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</link>
            <description>
Affected versions
Symfony Framework Bundle versions &amp;gt;=7.4, &amp;lt;7.4.24, &amp;gt;=8, &amp;lt;8.1.12 are affected by this security issue.
The issue has been fixed in Symfony Framework Bundle 7.4.24, 8.1.12.


Description
Since Symfony 7.4.0, FrameworkBundle chooses…</description>
            <content:encoded><![CDATA[
                                <div class="section">
<h2 id="affected-versions"><a class="headerlink" href="#affected-versions" title="Permalink to this headline">Affected versions</a></h2>
<p>Symfony Framework Bundle versions &gt;=7.4, &lt;7.4.24, &gt;=8, &lt;8.1.12 are affected by this security issue.</p>
<p>The issue has been fixed in Symfony Framework Bundle 7.4.24, 8.1.12.</p>
</div>
<div class="section">
<h2 id="description"><a class="headerlink" href="#description" title="Permalink to this headline">Description</a></h2>
<p>Since Symfony 7.4.0, FrameworkBundle chooses the error renderer from the runtime mode of the application, which comes from the <code translate="no" class="notranslate">APP_RUNTIME_MODE</code> env var. When this variable isn't set, the cli, phpdbg and embed SAPIs default to the CLI mode, and errors are rendered with <code translate="no" class="notranslate">CliErrorRenderer</code>. This renderer dumps the whole exception, and it did so even when debug was off.</p>
<p>HTTP workers that run under the CLI SAPI and don't set <code translate="no" class="notranslate">APP_RUNTIME_MODE</code> then sent these dumps as error responses in production. They contain the messages, file paths and traces of the exceptions. Some exceptions reference the request, like the access denied errors of <code translate="no" class="notranslate">access_control</code> rules. Their dump then contains the server parameters, with all the environment variables of the application.</p>
<p>This affects, for example, the RoadRunner, Swoole and ReactPHP runners of php-runtime, and baldinof/roadrunner-bundle before 3.2.4. The worker mode of FrankenPHP sets the variable and isn't affected.</p>
</div>
<div class="section">
<h2 id="resolution"><a class="headerlink" href="#resolution" title="Permalink to this headline">Resolution</a></h2>
<p>The CLI renderer is now used only in debug mode.</p>
<p>The patch for this issue is available <a href="https://github.com/symfony/symfony/commit/ebfd0e3731ddc4c9a619054f9994ffb8f97f10df" class="reference external" rel="external noopener noreferrer" target="_blank">here</a> for branch 7.4 (and forward-ported to 8.1 and 8.2).</p>
</div>
<div class="section">
<h2 id="credits"><a class="headerlink" href="#credits" title="Permalink to this headline">Credits</a></h2>
<p>We would like to thank koe kaverna for reporting the issue and Nicolas Grekas for providing the fix.</p>
</div>
                <hr style="margin-bottom: 5px" />
                <div style="font-size: 90%">
                    <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
                </div>
            ]]></content:encoded>
            <guid isPermaLink="false">https://symfony.com/blog/cve-2026-133762-without-app-runtime-mode-http-workers-running-under-the-cli-sapi-return-full-exception-dumps-in-production?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</guid>
            <dc:creator><![CDATA[ Fabien Potencier ]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 10:40:55 +0100</pubDate>
            <comments>https://symfony.com/blog/cve-2026-133762-without-app-runtime-mode-http-workers-running-under-the-cli-sapi-return-full-exception-dumps-in-production?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed#comments-list</comments>
        </item>
                        <item>
            <title>CVE-2026-133761 CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP</title>
            <link>https://symfony.com/blog/cve-2026-133761-csvencoder-nests-rows-once-per-key-separator-of-a-header-letting-a-small-csv-payload-crash-php?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</link>
            <description>
Affected versions
Symfony Serializer versions &amp;lt;5.4.57, &amp;gt;=6, &amp;lt;6.4.51, &amp;gt;=7, &amp;lt;7.4.24, &amp;gt;=8, &amp;lt;8.1.12 are affected by this security issue.
The issue has been fixed in Symfony Serializer 5.4.57, 6.4.51, 7.4.24, 8.1.12.


Description
CsvEncoder::decode()…</description>
            <content:encoded><![CDATA[
                                <div class="section">
<h2 id="affected-versions"><a class="headerlink" href="#affected-versions" title="Permalink to this headline">Affected versions</a></h2>
<p>Symfony Serializer versions &lt;5.4.57, &gt;=6, &lt;6.4.51, &gt;=7, &lt;7.4.24, &gt;=8, &lt;8.1.12 are affected by this security issue.</p>
<p>The issue has been fixed in Symfony Serializer 5.4.57, 6.4.51, 7.4.24, 8.1.12.</p>
</div>
<div class="section">
<h2 id="description"><a class="headerlink" href="#description" title="Permalink to this headline">Description</a></h2>
<p><code translate="no" class="notranslate">CsvEncoder::decode()</code> splits each header cell on the key separator, <code translate="no" class="notranslate">.</code> by default, and nests the decoded rows one level per separator, with no limit. PHP frees nested arrays recursively, so freeing data that is nested deeply enough overflows the C stack and crashes the process. With a stack of 8 MB, a CSV body of 448 KB is enough.</p>
<p>Each row also builds all the levels of its headers again. With a deep header, a CSV body of 2 KB made of short rows allocates more than 128 MB. A body of 1 MB keeps the CPU busy for 10 seconds or more.</p>
<p>Any code that decodes untrusted CSV with the Serializer is affected. From Symfony 7.4.0, this included every <code translate="no" class="notranslate">#[MapRequestPayload]</code> argument that doesn't restrict <code translate="no" class="notranslate">acceptFormat</code>, until 7.4.23 and 8.1.11 stopped decoding CSV payloads by default.</p>
</div>
<div class="section">
<h2 id="resolution"><a class="headerlink" href="#resolution" title="Permalink to this headline">Resolution</a></h2>
<p>CSV headers can now be nested up to 512 levels, the default depth of <code translate="no" class="notranslate">json_decode()</code>. Decoding also stops when the rows go through more than 16 header levels, or create more than 4 arrays, per byte of data. A header row of up to 5 levels always fits, whatever the rows contain. Beyond these limits, <code translate="no" class="notranslate">decode()</code> throws a <code translate="no" class="notranslate">NotEncodableValueException</code>, which <code translate="no" class="notranslate">#[MapRequestPayload]</code> turns into a 400 response.</p>
<p>The patch for this issue is available <a href="https://github.com/symfony/symfony/commit/f9b2704b31e637cc79d6522b5743ba1bcaeb4602" class="reference external" rel="external noopener noreferrer" target="_blank">here</a> for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).</p>
</div>
<div class="section">
<h2 id="credits"><a class="headerlink" href="#credits" title="Permalink to this headline">Credits</a></h2>
<p>We would like to thank <a href="https://github.com/jack-worman" class="reference external" rel="external noopener noreferrer" target="_blank">Jack Worman</a> for reporting the issue and providing the fix, and Nicolas Grekas for completing it.</p>
</div>
                <hr style="margin-bottom: 5px" />
                <div style="font-size: 90%">
                    <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
                </div>
            ]]></content:encoded>
            <guid isPermaLink="false">https://symfony.com/blog/cve-2026-133761-csvencoder-nests-rows-once-per-key-separator-of-a-header-letting-a-small-csv-payload-crash-php?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</guid>
            <dc:creator><![CDATA[ Fabien Potencier ]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 10:40:55 +0100</pubDate>
            <comments>https://symfony.com/blog/cve-2026-133761-csvencoder-nests-rows-once-per-key-separator-of-a-header-letting-a-small-csv-payload-crash-php?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed#comments-list</comments>
        </item>
            </channel>
</rss>
