MediumGHSA-c75v-2vq8-878fCVE-2021-4231
Angular vulnerable to Cross-site Scripting
Published 27 May 2022 · Updated 10 Sept 2026
Affected packages
- Affected
- >=11.0.0 <11.0.5
- Fixed in
- 11.0.5
Update to the fixed version for your release line, for example:
npm install @angular/core@11.0.5- Affected
- >=11.1.0-next.0 <11.1.0-next.3
- Fixed in
- 11.1.0-next.3
Update to the fixed version for your release line, for example:
npm install @angular/core@11.1.0-next.3- Affected
- <10.2.5
- Fixed in
- 10.2.5
Update to the fixed version for your release line, for example:
npm install @angular/core@10.2.5Details
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 10.2.5, 11.0.5 or 11.1.0-next.3 is advised to to address this issue.
Is GHSA-c75v-2vq8-878f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected @angular/core, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-4231
- Linkgithub.com/angular/angular/issues/40136
- Linkgithub.com/angular/angular/commit/0aa220bc0000fc4d1651ec388975bbf5baa1da36
- Linkgithub.com/angular/angular/commit/47d9b6d72dab9d60c96bc1c3604219f6385649ea
- Linkgithub.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09
- Packagegithub.com/angular/angular
- Linksecurity.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902
- Linkvuldb.com/?id.181356
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.