CVEfocus › CVE database › CVE-2021-4231

CVE-2021-4231Angular Comment cross site scripting

CVSS 3.5 LowEPSS 1.2% (higher than 68% of CVEs)Published 2022-05-26Updated 2025-04-15Assigner: VulDB

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.

CWE-79

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
22Fix pending
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 9firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 9firefox-x11Fix pending
Fix deferred
Red Hat Enterprise Linux 9gjsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 9thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 8aspnetcore-runtime-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnetFix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-apphost-pack-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-hostFix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-hostfxr-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-runtime-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-sdk-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-sdk-3.1-source-built-artifactsFix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-targeting-pack-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet-templates-3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8dotnet3.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8firefoxFix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60Fix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60-develFix pending
Fix deferred
Red Hat Enterprise Linux 8netstandard-targeting-pack-2.1Fix pending
Fix deferred
Red Hat Enterprise Linux 8thunderbirdFix pending
Fix deferred
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 6firefoxNot affected
npm library@angular/coreFixed10.2.5GHSA-c75v-2vq8-878f

What the vendor says

As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.