@angular/platform-server
22.2.6 · 12 Nov 2026MIT1M / weekRepositoryHomepagenpmAtom feed
16.2.12 is the newest release of 16.x.
In short
3 breaking1 deprecated
- Breaking
Users that are using SSR with JIT mode will now need to add
import to @angular/compilerbefore bootstrapping the application. - Breaking
renderApplicationmethod no longer accepts a root component as first argument. Instead, provide a bootstrapping function that returns aPromise<ApplicationRef>. - Breaking
renderModuleFactoryhas been removed. UserenderModuleinstead. - Deprecated
PlatformConfig.baseUrlandPlatformConfig.useAbsoluteUrlplatform-server config options are deprecated as these were not used.
Security
12 advisories affect 16.0.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
7 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
- HighAngular SSR: Global Platform Injector Race Condition Leads to Cross-Request Data LeakageGHSA-68x2-mx4q-78m7 · 10 Sep 2025Fixed in 18.2.14
- 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
The section about @angular/platform-server of a note shared by several packages.
platform-server
| Commit | Description |
|---|---|
| feat - b5278cc115 | renderApplication now accepts a bootstrapping method (#49248) |
| feat - 056d68002f | add provideServerSupport function to provide server capabilities to an application (#49380) |
| feat - 7870fb07fe | rename provideServerSupport to provideServerRendering (#49678) |
| fix - a08a8ff108 | bundle @angular/domino in via esbuild (#49229) |
| fix - 5ea624f313 | remove dependency on @angular/platform-browser-dynamic (#50064) |
| refactor - e99460865e | deprecate useAbsoluteUrl and baseUrl (#49546) |
| refactor - 41f27ad086 | remove renderApplication overload that accepts a component (#49463) |
| refactor - 17abe6dc96 | remove deprecated renderModuleFactory (#49247) |
Breaking Changes
platform-server
- Breaking
Users that are using SSR with JIT mode will now need to add
import to @angular/compilerbefore bootstrapping the application.NOTE: this does not effect users using the Angular CLI.
- Breaking
renderApplicationmethod no longer accepts a root component as first argument. Instead, provide a bootstrapping function that returns aPromise<ApplicationRef>.Before
const output: string = await renderApplication(RootComponent, options);
Now
const bootstrap = () => bootstrapApplication(RootComponent, appConfig); const output: string = await renderApplication(bootstrap, options);
- Breaking
renderModuleFactoryhas been removed. UserenderModuleinstead.
Deprecations
platform-server
- Deprecated
PlatformConfig.baseUrlandPlatformConfig.useAbsoluteUrlplatform-server config options are deprecated as these were not used.
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.