Live threats

All CVEs / Angular

CVE-2021-4231Angular

Medium 5.4

Priority
33
CVSS 3.1
5.4
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
Yes
Published
May 26, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

A vulnerability was found in Angular up to 11.0.4/11.1.0-next.2. It has been classified as problematic. Affected is the handling of comments. The manipulation leads to cross site scripting. It is possible to launch the attack remotely but it might require an authentication first. Upgrading to version 11.0.5 and 11.1.0-next.3 is able to address this issue. The name of the patch is ba8da742e3b243e8f43d4c63aa842b44e14f2b09. It is recommended to upgrade the affected component.

Original NVD text.

What to do

  1. Apply the vendor's security update for Angular.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @angular/core ≥ 11.0.0 < 11.0.5 11.0.5 npm install @angular/core@11.0.5
npm @angular/core ≥ 11.1.0-next.0 < 11.1.0-next.3 11.1.0-next.3 npm install @angular/core@11.1.0-next.3
npm @angular/core < 10.2.5 10.2.5 npm install @angular/core@10.2.5

Per OSV / GitHub Advisories (GHSA-c75v-2vq8-878f). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
angularangular11.1.0
angularangular11.1.0
angularangular11.1.0
angularjsangularjs< 11.0.5

Official sources

References

Links published by the sources. Open them with care.