@angular/compiler vulnerabilities

Angular - the compiler library

Registry
npm
Latest
22.2.3
License
MIT

7 known advisories

The latest version, 22.2.3, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install @angular/compiler@22.2.3

Security advisories for @angular/compiler

  • MediumGHSA-hh8m-fm6v-7cvg10 Sept 2026

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

    Affected
    >=22.0.0 <22.1.0 · >=21.0.0 <21.2.20 · >=20.0.0 <20.3.28 · <=19.2.25
    Fixed in
    20.3.28, 21.2.20, 22.1.0
  • HighGHSA-jj27-h5hq-8x993 Aug 2026

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

    Affected
    >=22.0.0-next.0 <22.0.1 · >=21.0.0-next.0 <21.2.19 · >=20.0.0-next.0 <20.3.27 · <=19.2.25
    Fixed in
    20.3.27, 21.2.19, 22.0.1
  • MediumGHSA-58w9-8g37-x9v515 Jun 2026

    @angular/compiler: Two-Way Property Binding Sanitization Bypass (XSS)

    Affected
    >=22.0.0-next.0 <22.0.1 · >=21.0.0-next.0 <21.2.17 · >=20.0.0-next.0 <20.3.25 · <=19.2.25
    Fixed in
    20.3.25, 21.2.17, 22.0.1
  • MediumGHSA-f3m7-gqxr-g87x15 Jun 2026

    Angular: Template and Attribute Namespace Sanitization Bypass (XSS)

    Affected
    >=21.0.0-next.0 <21.2.15 · >=22.0.0-next.0 <22.0.0-rc.2 · >=20.0.0-next.0 <20.3.22 · >=19.0.0-next.0 <19.2.22 · <=18.2.14
    Fixed in
    19.2.22, 20.3.22, 21.2.15, 22.0.0-rc.2
  • HighGHSA-g93w-mfhg-p22213 Mar 2026

    Angular vulnerable to XSS in i18n attribute bindings

    Affected
    >=22.0.0-next.0 <22.0.0-next.3 · >=21.0.0-next.0 <21.2.4 · >=20.0.0-next.0.0.0 <20.3.18 · >=19.0.0-next.0 <19.2.20 · >=17.0.0-next.0 <=18.2.14
    Fixed in
    19.2.20, 20.3.18, 21.2.4, 22.0.0-next.3
  • HighGHSA-jrmj-c5cx-3cw69 Jan 2026

    Angular has XSS Vulnerability via Unsanitized SVG Script Attributes

    Affected
    >=21.1.0-next.0 <21.1.0-rc.0 · >=21.0.0-next.0 <21.0.7 · >=20.0.0-next.0 <20.3.16 · >=19.0.0-next.0 <19.2.18 · <=18.2.14
    Fixed in
    19.2.18, 20.3.16, 21.0.7, 21.1.0-rc.0
  • HighGHSA-v4hv-rgfq-gp492 Dec 2025

    Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes

    Affected
    >=21.0.0-next.0 <21.0.2 · >=20.0.0-next.0 <20.3.15 · >=19.0.0-next.0 <19.2.17 · <=18.2.14
    Fixed in
    19.2.17, 20.3.15, 21.0.2

Which of your client projects still run an old @angular/compiler?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.