Advisories
For your digest

@angular/core, @angular/compiler: Angular: Template and Attribute Namespace Sanitization Bypass (XSS)

It touches something Phylax follows. No evidence of use yet.

Does it affect what I run?

Checked in your browser. The version you type is not sent anywhere.

Who is affected

  • @angular/core (npm): from 21.0.0-next.0, before 21.2.15
  • @angular/core (npm): from 22.0.0-next.0, before 22.0.0-rc.2
  • @angular/core (npm): from 20.0.0-next.0, before 20.3.22
  • @angular/core (npm): from 19.0.0-next.0, before 19.2.22
  • @angular/core (npm): every version, up to and including 18.2.14
  • @angular/compiler (npm): from 21.0.0-next.0, before 21.2.15
  • @angular/compiler (npm): from 22.0.0-next.0, before 22.0.0-rc.2
  • @angular/compiler (npm): from 20.0.0-next.0, before 20.3.22
  • @angular/compiler (npm): from 19.0.0-next.0, before 19.2.22
  • @angular/compiler (npm): every version, up to and including 18.2.14

The fix

  • @angular/core (npm) fixed in 21.2.15

    npm
    npm install "@angular/core@21.2.15"
    pnpm
    pnpm add "@angular/core@21.2.15"
    yarn
    yarn add "@angular/core@21.2.15"
    bun
    bun add "@angular/core@21.2.15"
    Check what is installed
    npm ls @angular/core
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/core to 21.2.15 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/core (npm) fixed in 22.0.0-rc.2

    npm
    npm install "@angular/core@22.0.0-rc.2"
    pnpm
    pnpm add "@angular/core@22.0.0-rc.2"
    yarn
    yarn add "@angular/core@22.0.0-rc.2"
    bun
    bun add "@angular/core@22.0.0-rc.2"
    Check what is installed
    npm ls @angular/core
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/core to 22.0.0-rc.2 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/core (npm) fixed in 20.3.22

    npm
    npm install "@angular/core@20.3.22"
    pnpm
    pnpm add "@angular/core@20.3.22"
    yarn
    yarn add "@angular/core@20.3.22"
    bun
    bun add "@angular/core@20.3.22"
    Check what is installed
    npm ls @angular/core
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/core to 20.3.22 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/core (npm) fixed in 19.2.22

    npm
    npm install "@angular/core@19.2.22"
    pnpm
    pnpm add "@angular/core@19.2.22"
    yarn
    yarn add "@angular/core@19.2.22"
    bun
    bun add "@angular/core@19.2.22"
    Check what is installed
    npm ls @angular/core
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/core to 19.2.22 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/compiler (npm) fixed in 21.2.15

    npm
    npm install "@angular/compiler@21.2.15"
    pnpm
    pnpm add "@angular/compiler@21.2.15"
    yarn
    yarn add "@angular/compiler@21.2.15"
    bun
    bun add "@angular/compiler@21.2.15"
    Check what is installed
    npm ls @angular/compiler
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/compiler to 21.2.15 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/compiler (npm) fixed in 22.0.0-rc.2

    npm
    npm install "@angular/compiler@22.0.0-rc.2"
    pnpm
    pnpm add "@angular/compiler@22.0.0-rc.2"
    yarn
    yarn add "@angular/compiler@22.0.0-rc.2"
    bun
    bun add "@angular/compiler@22.0.0-rc.2"
    Check what is installed
    npm ls @angular/compiler
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/compiler to 22.0.0-rc.2 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/compiler (npm) fixed in 20.3.22

    npm
    npm install "@angular/compiler@20.3.22"
    pnpm
    pnpm add "@angular/compiler@20.3.22"
    yarn
    yarn add "@angular/compiler@20.3.22"
    bun
    bun add "@angular/compiler@20.3.22"
    Check what is installed
    npm ls @angular/compiler
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/compiler to 20.3.22 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @angular/compiler (npm) fixed in 19.2.22

    npm
    npm install "@angular/compiler@19.2.22"
    pnpm
    pnpm add "@angular/compiler@19.2.22"
    yarn
    yarn add "@angular/compiler@19.2.22"
    bun
    bun add "@angular/compiler@19.2.22"
    Check what is installed
    npm ls @angular/compiler
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @angular/compiler to 19.2.22 or the nearest later release, to fix CVE-2026-50557. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.

Fix commands generated from the advisory's versions. No model wrote them.

In plain words

Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.

Evidence

No evidence that it is being used, or can be. It is listed because of what it affects.

Timeline

  1. First published here, as "For your digest".