Symfony 8.1.12
Symfony 8.1.12 has been released. The maintenance update landed on November 25, 2026 as part of a coordinated patch day that also shipped Symfony 7.4.24, 6.4.51, and 5.4.57. What began as a routine maintenance drop turned into one of the largest security batches of the 8.1 cycle, with more than twenty CVE-tagged fixes spread across Mailer, HttpClient, Security, Routing, Serializer, and ExpressionLanguage.
If you run Symfony 8.1 in production, this is not a release you schedule for later. Several of the fixes close gaps that are reachable without authentication, most notably in HTTP client redirect handling and proxy configuration.
Security fixes that carry the release
The bulk of 8.1.12 is security work, authored primarily by Nicolas Grekas and merged through 8.1, 7.4, 6.4, and 5.4 in parallel. The list is long enough that most projects are affected by at least one item.
- Mailer: the transport now refuses to start TLS when a server sends data before the handshake completes, and
require_tlswas hardened against a man in the middle. Both changes were filed as CVE-2026-133755 and CVE-2026-133751. - HttpClient: scoped clients keep their default options when caching is enabled, decorated clients no longer leak default credentials into cross-origin redirects, and cached chunks can no longer expire before their metadata. On the CLI,
HTTP_PROXYis now read from the environment instead of$_SERVER(CVE-2026-134792). - Security component: redirect targets are parsed the way browsers parse hosts, the
unanimousstrategy now requires every attribute to be granted, andcheckPostAuth()runs again insideGuardAuthenticatorHandler::authenticateUserAndHandleSuccess(). - Routing: host parameters containing forbidden characters are rejected, generated URLs cannot be pointed at another host, and the framework router no longer redirects to paths beginning with
//. - ExpressionLanguage: comments are lexed in linear time and short ternary nesting is bounded, closing two denial of service vectors (CVE-2026-134791, CVE-2026-133760).
- JsonPath: queries are now bounded in both work and length (CVE-2026-133744).
- Serializer: the nesting depth of CSV headers is limited, and allowed attributes are computed for the class actually being denormalized.
- HtmlSanitizer: whitespace that browsers skip is stripped before the time of a meta refresh (CVE-2026-133756).
- DoctrineBridge: copies of previous remember-me tokens are refused as series and deleted along with their token.
- HttpFoundation: IPv4-mapped addresses are matched against IPv4 subnets in
IpUtils::checkIp(), and127.0.0.1is trusted only for requests built bySubRequestHandler.
Zero-value and falsy-input bug fixes
A second, quieter theme runs through the changelog: values that are falsy in PHP but meaningful in HTTP and form handling. A long series of patches from Malek Kadri and others makes zero survive paths where it was previously dropped.
- Form and Mime keep four-digit ISO week years and zero-valued names in MIME messages.
- Asset URLs preserve zero-valued paths, and
Path::changeExtension()handles zero extensions. - Translation loaders keep
"0"message IDs in gettext and handle malformed INI and JSON resources without throwing. - Console accepts zero as a table padding character and handles zero option shortcuts.
- Validator reports correct errors when
Count, maximum length, or other limits are zero.
Component level improvements
DelayStamp::delayFor()anddelayUntil()now keep millisecond precision in Messenger.- The Stopwatch no longer reports an incorrect start time for nested event periods.
- Cache supports Relay 0.62, and
PropertyInforeadsiterable<K, V>without mistaking pseudo types for class names. - Form now preserves four-digit years when transforming ISO weeks, and rejects zero-valued date fields in
DateTimeToArrayTransformer. - The PsrHttpMessageBridge no longer reads the stream of an uploaded file that already failed.
- Tagalog and Tajik translations were added or updated across Form, Security, and Validator.
Upgrading to Symfony 8.1.12
There are no deprecations or signature changes in this release, so the upgrade is a straight patch bump. Update the framework and every Symfony package together to keep the contracts aligned:
- Run
composer update "symfony/*" --with-dependencies. - Check for pinned versions of
symfony/http-clientandsymfony/mailerincomposer.lock, since both carry security fixes. - If you set
HTTP_PROXYin CLI commands, verify the environment variable is exported rather than injected into$_SERVER. - Clear the cache and run your test suite, paying attention to any code that relies on cross-host redirects or
//prefixed paths.
Symfony 8.2.0-RC1 also landed the same day, so projects tracking the next minor can begin testing against the release candidate while staying on 8.1.12 for production.