# CVE-2021-4231: Angular Comment cross site scripting

- Priority: **Routine**
- Reason: Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-05-26 · Modified: 2025-04-15
- Aliases: CGA-3wjq-fp7m-q7v3, CGA-42g7-3v4w-5c2r, CGA-4c8m-62mw-74ph, CGA-5f6w-2mpg-3ppw, CGA-5j69-5h87-mh69, CGA-68g6-fc9r-564j, CGA-853q-9j3q-v6r8, CGA-89g9-c36h-vw4p, CGA-8f4r-6w9h-4h69, CGA-96qg-j9p2-vpw7, CGA-9rvw-g5w6-39v4, CGA-cpr7-jxc5-vfh4, CGA-f3p3-p2xq-hrf9, CGA-fg6j-f9pv-99xw, CGA-fjh5-rm2c-97x8, CGA-j7hp-j79j-98f4, CGA-j99c-36qq-4c6p, CGA-jw93-fj24-8878, CGA-m7ww-qppg-fphr, CGA-mcxj-xf55-2pxv, CGA-pf96-94j7-5mjq, CGA-px5x-8wch-8w52, CGA-xjwr-xg5v-pr8c, CGA-xmm3-3vgw-68fr, GHSA-c75v-2vq8-878f
- Record: https://cvemate.com/vulnerability/CVE-2021-4231 · JSON: https://cvemate.com/vulnerability/CVE-2021-4231/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- EPSS: 1.181%, percentile 68.754%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 28)

- angular angular: 11.1.0:next0 \| 11.1.0:next1 \| 11.1.0:next2
- angularjs angularjs: \< 11.0.5
- chainguard katib-earlystopping (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-goptuna-compat (Chainguard): \< 0.19.0-r40
- chainguard katib-suggestion-hyperband (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-hyperopt (Chainguard): \< 0.19.0-r40 \| \< 0.19.0-r31
- chainguard katib-suggestion-nas-darts (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-nas-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-optuna-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-pbt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-skopt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-tfevent-metricscollector (Chainguard): \< 0.19.0-r31
- chainguard solr (Chainguard): \< 9.7.0-r1
- chainguard solr-oci-compat (Chainguard): \< 9.7.0-r1
- wolfi katib-earlystopping (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-goptuna-compat (Wolfi): \< 0.19.0-r40
- wolfi katib-suggestion-hyperband (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-hyperopt (Wolfi): \< 0.19.0-r40 \| \< 0.19.0-r31
- wolfi katib-suggestion-nas-darts (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-nas-enas (Wolfi): \< 0.19.0-r31

## References

- <https://github.com/angular/angular/issues/40136>
- <https://github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09>
- <https://security.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902>
- <https://vuldb.com/?id.181356>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4231>
- <https://github.com/angular/angular/commit/0aa220bc0000fc4d1651ec388975bbf5baa1da36>
- <https://github.com/angular/angular/commit/47d9b6d72dab9d60c96bc1c3604219f6385649ea>
- <https://github.com/angular/angular>

---

Data as of 2026-12-05T03:16:39.375Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
