CVE-2021-4231 json
Angular Comment cross site scripting
published 2022-05-26 4 y ago modified 2026-09-10 1 mo ago also GHSA-c75v-2vq8-878f , EUVD-2022-3522
- cvss
- 3.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @angular/core 10.2.5, 11.0.5, 11.1.0-next.3
- angularjs angularjs 11.0.5
- ceph ceph storage 6.1 2:17.2.6-70.el9cp
- cephadm ceph storage 6.1 2:17.2.6-70.el9cp
- librbd1 ceph storage 6.1 2:17.2.6-70.el9cp
- librgw2 ceph storage 6.1 2:17.2.6-70.el9cp
- rbd-nbd ceph storage 6.1 2:17.2.6-70.el9cp
- ceph-mib ceph storage 6.1 2:17.2.6-70.el9cp
- ceph-base ceph storage 6.1 2:17.2.6-70.el9cp
- ceph-fuse ceph storage 6.1 2:17.2.6-70.el9cp
red hat advisories RHSA-2023:3623
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-4231 updated cvss 3.9
angular: XSS vulnerability
-
Red Hat .NET Core 3.1 on Red Hat Enterprise Linux rh-dotnet31-dotnet, rh-dotnet31-dotnet-host, rh-dotnet31-dotnet-sdk-3.1, rh-dotnet31-dotnet-hostfxr-3.1, rh-dotnet31-dotnet-runtime-3.1, rh-dotnet31-dotnet-templates-3.1, +6 moreaffected: no fix available “Fix deferred”
-
Red Hat .NET Core 5.0 on Red Hat Enterprise Linux rh-dotnet50-dotnet, rh-dotnet50-dotnet-host, rh-dotnet50-dotnet-sdk-5.0, rh-dotnet50-dotnet-hostfxr-5.0, rh-dotnet50-dotnet-runtime-5.0, rh-dotnet50-dotnet-templates-5.0, +6 moreaffected: no fix planned “Out of support scope”
-
Red Hat Ceph Storage 4 ceph, librbd1, librgw2, rbd-nbd, ceph-mds, ceph-mgr, +27 more Red Hat Ceph Storage 5 ceph, cephadm, librbd1, librgw2, rbd-nbd, ceph-mds, +33 moreaffected: no fix available
-
Red Hat Enterprise Linux 8 dotnet, firefox, mozjs60, dotnet3.1, dotnet-host, thunderbird, +10 more Red Hat Enterprise Linux 9 gjs, firefox, firefox-x11, thunderbird Red Hat Fuse 7 io.apicurio-apicurito io.apicurio-apicuritoaffected: no fix available “Fix deferred”
-
Red Hat Openshift Container Storage 4 cephaffected: no fix planned “Out of support scope”
-
Red Hat Openshift Data Foundation 4 cephaffected: no fix available
-
Red Hat Ceph Storage 6.1 Tools ceph 17.2.6-70.el9cp, cephadm 17.2.6-70.el9cp, librbd1 17.2.6-70.el9cp, librgw2 17.2.6-70.el9cp, rbd-nbd 17.2.6-70.el9cp, ceph-mib 17.2.6-70.el9cp, +16 morefixed: vendor fix RHSA-2023:3623
-
Red Hat Ceph Storage 6.1 Tools cephadm-ansible 2.15.0-1.el9cp, ansible-collection-ansible-posix 1.2.0-1.3.el9ost Red Hat Enterprise Linux 6 firefox Red Hat Enterprise Linux 7 firefox, thunderbird Red Hat Enterprise Linux 9 polkit, polkit-libsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.18% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @angular/core | >=11.0.0, <11.0.5 >=11.1.0-next.0, <11.1.0-next.3 <10.2.5 |
11.0.5 11.1.0-next.3 10.2.5 |
Affected products
- unspecified Angular
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09
web, patch, third-party-advisory
-
github.com
/angular/angular/commit/0aa220bc0000fc4d1651ec388975bbf5baa1da36
web
-
github.com
/angular/angular/commit/47d9b6d72dab9d60c96bc1c3604219f6385649ea
web
-
github.com
/angular/angular/issues/40136
web, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-ANGULARCORE-1070902
web, third-party-advisory
-
vuldb.com
/?id.181356
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-4231
advisory
-
github.com
/angular/angular
package
Sources
- CVE List CVE-2021-4231
- GitHub Advisory GHSA-c75v-2vq8-878f
- NVD CVE-2021-4231
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.