Update dependency twig/intl-extra to v3.26.0 [SECURITY]#390
Closed
benjaminjonard wants to merge 1 commit into
Closed
Update dependency twig/intl-extra to v3.26.0 [SECURITY]#390benjaminjonard wants to merge 1 commit into
benjaminjonard wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.24.0→3.26.0twig/intl-extra: Unbounded formatter memoisation in keyed on template-controlled arguments
CVE-2026-46629 / GHSA-35wc-cvqg-78fp
More information
Details
Description
IntlExtensionmemoises every\IntlDateFormatterand\NumberFormatterit creates in instance-level arrays keyed on a hash that includeslocale,pattern,attrsand other values that are ordinary named arguments of theformat_datetime/format_date/format_time/format_number/format_currencyfilters. There is no size limit and no eviction.A template that iterates over many distinct
pattern(orlocale, orgrouping_used, ...) values therefore allocates one ICU formatter object per distinct value and pins it for the entire lifetime of theTwig\Environment. Because ICU allocates its backing buffers outside the Zend memory manager, this growth is not bounded bymemory_limit. On long-running runtimes (RoadRunner, Swoole, FrankenPHP worker mode, ReactPHP) where theEnvironmentoutlives a single request, the cache also accumulates across requests.Resolution
The formatter caches are now bounded in size (100 entries each) and evict on a FIFO basis.
Credits
Twig would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:UReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
twigphp/intl-extra (twig/intl-extra)
v3.26.0Compare Source
Changelog (twigphp/intl-extra@v3.23.0...v3.26.0)
IntlDateFormatter/NumberFormatter(@alexandre-daubois)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.