Skip to content

[Backport 21.2.X] fix(core): avoid caching missing locale data#69352

Open
SkyZeroZx wants to merge 1 commit into
angular:21.2.xfrom
SkyZeroZx:backport/69345-to-21.2.x
Open

[Backport 21.2.X] fix(core): avoid caching missing locale data#69352
SkyZeroZx wants to merge 1 commit into
angular:21.2.xfrom
SkyZeroZx:backport/69345-to-21.2.x

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

Backport of #69345 to 21.2.x.

Only cache locale data loaded from the global locale registry when an actual locale entry is found.

This prevents attacker-controlled missing locale identifiers from being retained indefinitely in SSR when locale lookup falls back to a parent locale or the built-in English locale, avoiding unbounded process memory growth in locale-aware pipes and formatters.

(cherry picked from commit ea8277a)
@pullapprove pullapprove Bot requested a review from crisbeto June 14, 2026 18:40
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jun 14, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 14, 2026
@SkyZeroZx SkyZeroZx changed the title fix(core): avoid caching missing locale data [Backport 21.2.X] fix(core): avoid caching missing locale data Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant