Vulnerability record · CVE-2021-4231 · published 26 May 2022
CVE-2021-4231: Angular cross-site scripting vulnerability
Angular · Angular
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.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09 | PatchThird Party Advisory |
| https://github.com/angular/angular/issues/40136 | Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902 | Third Party Advisory |
| https://vuldb.com/?id.181356 | Third Party Advisory |
| https://github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09 | PatchThird Party Advisory |
| https://github.com/angular/angular/issues/40136 | Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902 | Third Party Advisory |
| https://vuldb.com/?id.181356 | Third Party Advisory |
Track CVE-2021-4231 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-4231), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.