CVE-2021-4231: Angular Comment cross site scripting
Vulnerability summary
CVE-2021-4231 is a medium (CVSS 5.4) vulnerability in angular. EPSS estimates a 1.18% chance of exploitation in the next 30 days, higher than 68.7% of scored vulnerabilities.
Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 26-05-2022PublishedVulnerability first disclosed.
- 15-04-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA3.5LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.18%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.18% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard12 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
- katib-suggestion-nas-darts< 0.19.0-r31
Wolfi12 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
- katib-suggestion-nas-darts< 0.19.0-r31
@angular1 product
- core≥ 11.0.0, < 11.0.5 | ≥ 11.1.0-next.0, < 11.1.0-next.3 | < 10.2.5
Angular1 product
- angularEOL11.1.0:next0 | 11.1.0:next1 | 11.1.0:next2
Angularjs1 product
- angularjs< 11.0.5
Unspecified1 product
- angular11.0.0 | 11.0.1 | 11.0.2 | 11.0.3 | 11.0.4 | 11.1.0-next.0 | 11.1.0-next.1 | 11.1.0-next.2
6 vendors · 28 products
References
8 links- github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09X Refsource MISCFIXWEBPatchThird Party Advisory
- github.com/angular/angularPACKAGE