npm package

@angular/core 21.2.16 vulnerabilities, and the version that fixes all of them

@angular/core 21.2.16 has 3 known vulnerabilities (2 rated high or critical); 21.2.20 fixes all of them.

npm (opens in a new tab) describes it as “Angular - the core framework”

Known vulnerabilities
3
2 rated high or critical
Released
Jun 3, 2026
Latest is 22.2.3
Downloads last week
20.7K
Under 1% of @angular/core downloads
Angular 21 support
Supported
Until Jun 30, 2027
Licence
MIT
Pulls in
1 package
Resolved by deps.dev

What to upgrade to

21.2.20 is the closest release with no known vulnerabilities.

  • 21.2.20Upgrade to this

    Fixes all 3 known vulnerabilities. Released Aug 13, 2026.

    No known vulnerabilities
  • 21.2.25

    Newest 21.x release. Released Sep 30, 2026.

    No known vulnerabilities
  • 22.2.3

    Latest release. Released Oct 14, 2026.

    No known vulnerabilities

21.2.20 came out on Aug 13, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for @angular/core 21.2.16

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. WarningCVE-2026-88057 on OSV.dev (opens in a new tab)GHSA-hh8m-fm6v-7cvgEPSS: top 71%

    Angular: Sanitization bypass via directive host bindings on concrete host elements in @angular/core and @angular/compiler

    Fixed in 21.2.20. Published Sep 10, 2026.

  2. CriticalCVE-2026-69151 on OSV.dev (opens in a new tab)GHSA-jj27-h5hq-8x99EPSS: top 76%

    Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes

    Fixed in 21.2.19. Published Aug 3, 2026.

  3. CriticalCVE-2026-54267 on OSV.dev (opens in a new tab)GHSA-rgjc-h3x7-9mwgEPSS: top 78%

    Angular Client Hydration DOM Clobbering & Response-Cache Poisoning

    Fixed in 21.2.17. Published Jun 15, 2026.

Who is still on a vulnerable @angular/core

54% of last week’s 6.2M @angular/core downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover 98% of downloads.

Is @angular/core the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly @angular/core 21.2.16, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm, support dates from endoflife.date. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV, FIRST EPSS and endoflife.date.