@angular/common
22.2.6 · 12 Nov 2026MIT8.2M / weekRepositoryHomepagenpmAtom feed
17.3.12 is the newest release of 17.x.
In short
1 breaking
- Breaking
The NgSwitch directive now defaults to the === equality operator, migrating from the previously used ==. NgSwitch expressions and / or individual condition values need adjusting to this stricter equality check. The added warning message should help pinpointing NgSwitch usages where adjustements are needed.
Security
8 advisories affect 17.0.0; 20.3.34 fixes them
- HighAngular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State PoisoningGHSA-jhpw-976m-542j · 3 Aug 2026Fixed in 20.3.27
- High@angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)GHSA-48r7-hpm6-gfxm · 15 Jun 2026Fixed in 20.3.25
- High@angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State PoisoningGHSA-39pv-4j6c-2g6v · 15 Jun 2026Fixed in 20.3.25
- High@angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)GHSA-p3vc-36g9-x9gr · 15 Jun 2026Fixed in 19.2.23
- High@angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCacheGHSA-q6f4-qqrg-jv6x · 15 Jun 2026Fixed in 19.2.23
3 more
- HighAngular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP ClientGHSA-58c5-g7wp-6w37 · 26 Nov 2025Fixed in 19.2.16
- Moderate@angular/common: XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035)GHSA-jfgx-762w-99vr · 20 Oct 2026Fixed in 20.3.34
- ModerateAngular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`GHSA-p297-fm68-3q8c · 10 Sep 2026Fixed in 20.3.28
Release note
The section about @angular/common of a note shared by several packages.
common
| Commit | Description |
|---|---|
| feat - fe2fd7e1a8 | make the warning for lazy-loaded lcp image an error (#51748) |
| feat - dde3fdabbd | upgrade warning to logged error for lazy-loaded LCP images using NgOptimizedImage (#52004) |
| fix - da056a1fe2 | add missing types field for @angular/common/locales of exports in package.json (#52080) |
| fix - 85843e8212 | allow to specify only some properties of DatePipeConfig (#51287) |
| fix - 3bd85fb7b0 | apply fixed_srcset_width value only to fixed srcsets (#52459) |
| fix - 65b460448e | missing space in ngSwitch equality warning (#52180) |
| fix - 86c5e34601 | remove code duplication between entry-points (#51500) |
| fix - 28a5925f53 | use === operator to match NgSwitch cases (#51504) |
Breaking Changes
common
- Breaking
- Breaking
The NgSwitch directive now defaults to the === equality operator,
migrating from the previously used ==. NgSwitch expressions and / or
individual condition values need adjusting to this stricter equality
check. The added warning message should help pinpointing NgSwitch
usages where adjustements are needed.
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.