Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/core
  4. ›
  5. CVE-2021-4231

CVE-2021-4231: Angular vulnerable to Cross-site Scripting

May 27, 2022 (updated November 20, 2025)

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.

References

  • github.com/advisories/GHSA-c75v-2vq8-878f
  • github.com/angular/angular
  • github.com/angular/angular/commit/0aa220bc0000fc4d1651ec388975bbf5baa1da36
  • github.com/angular/angular/commit/47d9b6d72dab9d60c96bc1c3604219f6385649ea
  • github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09
  • github.com/angular/angular/issues/40136
  • nvd.nist.gov/vuln/detail/CVE-2021-4231
  • security.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902
  • vuldb.com/?id.181356

Code Behaviors & Features

Detect and mitigate CVE-2021-4231 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.2.5, all versions starting from 11.0.0 before 11.0.5, all versions starting from 11.1.0-next.0 before 11.1.0-next.3

Fixed versions

  • 11.0.5
  • 11.1.0-next.3
  • 10.2.5

Solution

Upgrade to versions 10.2.5, 11.0.5, 11.1.0-next.3 or above.

Impact 3.5 LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@angular/core/CVE-2021-4231.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 07 Dec 2025 12:18:41 +0000.