@angular/platform-server
22.2.6 · 12 Nov 2026MIT1M / weekRepositoryHomepagenpmAtom feed
15.2.10 is the newest release of 15.x.
In short
1 deprecated3 changed
- Deprecated
CanLoad guards in the Router are deprecated. Use CanMatch instead.
Security
11 advisories affect 15.1.0; 20.3.33 fixes them
- HighAngular SSR: Denial of Service (DoS) via Infinite Loop on Malformed DOCTYPEGHSA-f67j-2jqw-jpq7 · 28 Sep 2026Fixed in 20.3.31
- HighAngular SSR: XSS via Unescaped Processing Instruction (<?...?>) Nodes in Fallback Raw-Content ElementsGHSA-j3r3-mxqp-r2p4 · 28 Sep 2026Fixed in 20.3.30
- HighAngular: SSR XSS via Unescaped <template> Content Across DocumentFragment Boundaries in Fallback Raw-Content ElementsGHSA-v3p8-whq6-r5jg · 10 Sep 2026Fixed in 20.3.30
- HighAngular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSRGHSA-f6mr-pjwc-34m4 · 10 Sep 2026Fixed in 20.3.30
- HighAngular SSR: Missing Fallback Raw-Content Serialization Escaping leads to Cross-Site Scripting (XSS)GHSA-vpx6-8pjr-4g3v · 3 Aug 2026Fixed in 20.3.27
6 more
- High@angular/platform-server: Missing `<noscript>` Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSRGHSA-gxx4-3xcv-f8qx · 15 Jun 2026Fixed in 19.2.25
- High@angular/platform-server: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')GHSA-hqr9-c56f-3x7f · 15 Jun 2026Fixed in 19.2.25
- High@angular/platform-server: URL Parser Differential leading to SSRF Allowlist BypassGHSA-xrxm-cp7j-8xf6 · 15 Jun 2026Fixed in 19.2.23
- High@angular/platform-server: SSRF via Hostname HijackingGHSA-rfh7-fxqc-q52v · 19 May 2026Fixed in 19.2.22
- HighAngular: SSRF via protocol-relative and backslash URLs in Angular Platform-ServerGHSA-45q2-gjvg-7973 · 16 Apr 2026Fixed in 19.2.21
- Moderate@angular/platform-server: Open Redirect via Protocol-Relative URLs in Server-Side Rendering (SSR)GHSA-w739-gvwx-grc3 · 20 Oct 2026Fixed in 20.3.33
Release note
Deprecations
router
- Deprecated
CanLoad guards in the Router are deprecated. Use CanMatch
instead. - Deprecated
Router writable properties
The following strategies are meant to be configured by registering the
application strategy in DI via theprovidersin the rootNgModuleorbootstrapApplication:routeReuseStrategytitleStrategyurlHandlingStrategy
The following options are meant to be configured using the options
available inRouterModule.forRootorprovideRouter.onSameUrlNavigationparamsInheritanceStrategyurlUpdateStrategycanceledNavigationResolution
The following options are available in
RouterModule.forRootbut not
available inprovideRouter:malformedUriErrorHandler- This was found to not be used anywhere
internally.errorHandler- Developers can instead subscribe toRouter.events
and filter forNavigationError.
common
| Commit | Description |
|---|---|
| feat - fe50813664 | Add BrowserPlatformLocation to the public API (#48488) |
| fix - 2f4f0638c7 | Add data attribtue to NgOptimizedImage (#48497) |
compiler
| Commit | Description |
|---|---|
| feat - a532d71975 | allow self-closing tags on custom elements (#48535) |
| fix - caf7228f8a | resolve deprecation warning (#48652) |
| fix - 33f35b04ef | type-only symbols incorrectly retained when downlevelling custom decorators (#48638) |
compiler-cli
| Commit | Description |
|---|---|
| fix - caedef0f5b | update @babel/core dependency and lock version (#48634) |
core
| Commit | Description |
|---|---|
| feat - 6acae1477a | Add TestBed.runInInjectionContext to help test functions which use inject (#47955) |
| feat - 38421578a2 | Make the isStandalone() function available in public API (#48114) |
| feat - dd42974b07 | support TypeScript 4.9 (#48005) |
forms
| Commit | Description |
|---|---|
| fix - 8aa8b4b77c | Form provider FormsModule.withConfig return a FormsModule (#48526) |
language-service
| Commit | Description |
|---|---|
| feat - 5f0b53c735 | Allow auto-imports to suggest multiple possible imports. (#47787) |
| fix - 6a8ea29a04 | expose package.json for vscode extension resolution (#48678) |
| fix - ce8160ecb2 | Prevent crashes on unemitable references (#47938) |
| fix - e615b598ba | ship /api entry-point (#48670) |
| fix - 6ce7d76a0e | update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48663) |
localize
| Commit | Description |
|---|---|
| fix - a1a8e91eca | add triple slash type reference on @angular/localize on `ng add (#48502) |
migrations
| Commit | Description |
|---|---|
| fix - cc284afbbc | combine newly-added imports in import manager (#48620) |
router
| Commit | Description |
|---|---|
| docs - 228e992db7 | Deprecate canLoad guards in favor of canMatch (#48180) |
| docs - 0a8b8a66cd | Deprecate public members of Router that are meant to be configured elsewhere (#48006) |
| feat - 332461bd0c | Add ability to override onSameUrlNavigation default per-navigation (#48050) |
| feat - f58ad86e51 | Add feature provider for enabling hash navigation (#48301) |
| feat - 73f03ad2d2 | Add new NavigationSkipped event for ignored navigations (#48024) |
| fix - 3fe75710d9 | page refresh should not destroy history state (#48540) |
Special Thanks
Alan Agius, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Lyding, Derek Cormier, Doug Parker, Dylan Hunn, George Kalpakas, Greg Magolan, Jessica Janiuk, JiaLiPassion, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Renan Ferro, Tim Gates, Vadim, Virginia Dooley, ced, mgechev, piyush132000, robertIsaac and sr5434
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.