npm / @angular/cli
@angular/cli
What changed in @angular/cli 20 to 22, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
7 security1 new APIs and options1 performance1 behavior and defaults2 tooling14 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@angular/cli 2221 changes
Security 2
Adds the CSP nonce to stylesheet and modulepreload link elements.
Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows
New APIs and options 1
Array-form proxy configurations support a string context.
Performance 1
Resolves asset patterns concurrently with bounded concurrency.
Behavior and default changes 1
Always uses AOT when extracting i18n messages.
Tooling 2
Disables Vitest fsModuleCache in the unit-test builder.
Sorts discovered unit-test files for deterministic builds.
Fixes and other changes 14
Avoids invalidating the diagnostic cache when a stylesheet changes.
Coalesces external watcher directories to avoid the macOS FSEvents limit.
Accepts array indices with multiple digits.
Continues to work when the package manager is not installed.
Resolves package names in npm workspace members.
Preserves preload metadata for nested empty-path routes.
Resolves relative redirects against the parent route.
Preserves query parameters on relative route redirects.
Ensures Sass importers return global Promise instances.
Avoids stack overflow when chaining many rules.
The migration now keeps the workspace build version.
Keeps the Vite server file watcher disabled in Vitest watch mode.
The SSR dev server preserves the Host header when proxying.
Glob entries in proxy configuration retain their order.
@angular/cli 214 changes
Security 4
Angular SSR has Open Redirect and Request Steering via Encoded X-Forwarded-Prefix
Protocol-Relative URL Injection via Single Backslash Bypass in Angular SSR
Angular SSR has an Open Redirect via X-Forwarded-Prefix
Angular SSR is vulnerable to SSRF and Header Injection via request handling pipeline
@angular/cli 201 changes
Security 1
Angular SSR has a Server-Side Request Forgery (SSRF) flaw