cve.bz

CVE-2021-4231 Cross-site Scripting

5.4 mediumEPSS 1.2%Fix available

Medium (5.4). EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in @angular/core 10.2.5, 11.0.5, 11.1.0-next.3.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4231 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4231?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4231?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4231 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
angular:angular11.1.0:next0
angular:angular11.1.0:next1
angular:angular11.1.0:next2
angularjs:angularjsbefore 11.0.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c75v-2vq8-878fnpm@angular/core>=11.0.0 <11.0.511.0.5
GHSA-c75v-2vq8-878fnpm@angular/core>=11.1.0-next.0 <11.1.0-next.311.1.0-next.3
GHSA-c75v-2vq8-878fnpm@angular/core<10.2.510.2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatceph_storage:6.1::el9ansible-collection-ansible-posix0:1.2.0-1.3.el9ostRHSA-2023:3623
Red Hatceph_storage:6.1::el9ceph, cephadm, librbd1 and 52 more2:17.2.6-70.el9cpRHSA-2023:3623
Red Hatceph_storage:6.1::el9cephadm-ansible0:2.15.0-1.el9cpRHSA-2023:3623

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw is out of support scope for dotnet-5.0, therefore it will not be addressed in this version of dotnet. For more information, please see https://access.redhat.com/support/policy/updates/net-core.

ProductPackageStateAdvisory
Red Hat Ceph Storage 6.1ceph-2:17.2.6-70.el9cpFixed 2023-06-15RHSA-2023:3623
.NET Core 3.1 on Red Hat Enterprise Linuxrh-dotnet31-dotnetFix deferred
.NET Core 5.0 on Red Hat Enterprise Linuxrh-dotnet50-dotnetOut of support scope
Red Hat Ceph Storage 4cephAffected
Red Hat Ceph Storage 5cephAffected
Red Hat Enterprise Linux 6firefoxNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 8dotnet3.1Fix deferred
Red Hat Enterprise Linux 8firefoxFix deferred
Red Hat Enterprise Linux 8firefox:flatpak/firefoxFix deferred
Red Hat Enterprise Linux 8mozjs60Fix deferred
Red Hat Enterprise Linux 8thunderbird:flatpak/thunderbirdFix deferred
Red Hat Enterprise Linux 9firefoxFix deferred
Red Hat Enterprise Linux 9firefox:flatpak/firefoxFix deferred
Red Hat Enterprise Linux 9gjsFix deferred
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9thunderbirdFix deferred
Red Hat Enterprise Linux 9thunderbird:flatpak/thunderbirdFix deferred
Red Hat Fuse 7io.apicurio-apicuritoFix deferred
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4231.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON