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

CVE-2021-4231: Cross site scripting in Angular

May 27, 2022 (updated June 2, 2022)

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.

References

  • github.com/advisories/GHSA-c75v-2vq8-878f
  • 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 11.0.5, all versions starting from 11.1.0-next.0 up to 11.1.0-next.2

Fixed versions

  • 11.0.5
  • 11.1.0-next.3

Solution

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

Impact 5.4 MEDIUM

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

Learn more about CVSS

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 Wed, 14 May 2025 12:15:08 +0000.