CVE-2021-4231Angular
Medium 5.4
Follow: this CVE · Angular · Angular We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Angular.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| angular | angular | 11.1.0 |
| angular | angular | 11.1.0 |
| angular | angular | 11.1.0 |
| angularjs | angularjs | < 11.0.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- security.snyk.io Third Party Advisory
- vuldb.com Third Party Advisory