npm / @angular/core
@angular/core
What changed in @angular/core 20 to 22, from its official release notes, upgrade guides and advisories. Also covers @angular/compiler, @angular/localize. Sources checked 2026-10-20.
3 breaking35 security1 performance1 behavior and defaults1 tooling7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@angular/core 2225 changes
Breaking changes 1
The compiler disallows i18n event attributes, affecting which template attributes developers can mark for localization.
Security 16
@angular/platform-server: Open Redirect via Protocol-Relative URLs in Server-Side Rendering (SSR)
@angular/router: Denial of Service via Unmatched Empty-Path Outlet Route Matching in Server-Side Rendering (SSR)
Avoids dense elements allocation for numeric URL keys.
Angular SSR: Denial of Service (DoS) via Infinite Loop on Malformed DOCTYPE
Angular SSR: XSS via Unescaped Processing Instruction (<?...?>) Nodes in Fallback Raw-Content Elements
Angular: SSR XSS via Unescaped <template> Content Across DocumentFragment Boundaries in Fallback Raw-Content Elements
Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR
Angular: Information Leak via
HttpTransferCacheBypass When UsingwithRequestsMadeViaParentAngular: Sanitization bypass via directive host bindings on concrete host elements in @angular/core and @angular/compiler
Angular SSR: Missing Fallback Raw-Content Serialization Escaping leads to Cross-Site Scripting (XSS)
Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning
Angular Client Hydration DOM Clobbering & Response-Cache Poisoning
@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
@angular/common: Weak 32-Bit Cache Key Hashing in
HttpTransferCacheLeading to Cross-Request Data Leakage and State Poisoning@angular/compiler: Two-Way Property Binding Sanitization Bypass (XSS)
@angular/service-worker: Sensitive Header Leakage on Cross-Origin Redirects in Angular Service Worker
Performance 1
The runtime translations map is built with a null prototype, avoiding inherited-property lookups.
Behavior and default changes 1
Compile-time i18n attribute validation now supports prefix-insensitive DOM schema lookups.
Fixes and other changes 6
Reserved characters are stripped from translations.
Avoids hitting TypeScript limits when a template contains many translations.
Make i18n_util hasOwnProperty checks safe for property renaming.
Placeholder lookup uses Object.hasOwn, avoiding inherited-property matches.
Resolves a migration failure when tsconfig specifies rootDir.
Tag names are normalized during runtime i18n attribute security context lookup.
@angular/core 2122 changes
Breaking changes 2
Translations of iframe src are disallowed.
Angular applies only known HTML attributes in translated ICU content; unknown attributes are dropped and not rendered, blocking creation of sensitive URI attributes.
Security 19
@angular/platform-server: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
@angular/platform-server: Missing
<noscript>Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSR@angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)
@angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCache
@angular/core: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)
@angular/platform-server: URL Parser Differential leading to SSRF Allowlist Bypass
Angular Service Worker Policy-Bypass & Credential-Stripping Vulnerabilities
@angular/service-worker: Request Credential & Cache Policy Stripping
Angular: Template and Attribute Namespace Sanitization Bypass (XSS)
@angular/platform-server: SSRF via Hostname Hijacking
Security-sensitive attributes in i18n bindings are now validated.
Angular: SSRF via protocol-relative and backslash URLs in Angular Platform-Server
Validates the locale to prevent path traversal when determining an output path.
Angular vulnerable to XSS in i18n attribute bindings
Translated form attributes are sanitized.
Translated attribute bindings that contain interpolations are sanitized.
Angular has XSS Vulnerability via Unsanitized SVG Script Attributes
Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes
Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP Client
Tooling 1
The ng-add schematic now supports the unit-test builder.
@angular/core 201 changes
Fixes and other changes 1
Namespaced SVG <style> elements are no longer stripped by the compiler.