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

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Published: 2022-05-26T07:10:14.000Z
- Modified: 2026-09-10T03:49:21.863Z
- Also known as: GHSA-c75v-2vq8-878f
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- unspecified Angular: 11.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
- @angular/core (npm): from 11.0.0 before 11.0.5; from 11.1.0-next.0 before 11.1.0-next.3; before 10.2.5
- angular angular: 11.1.0
- angularjs angularjs: before 11.0.5

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

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

## Sources

- CVE List: [CVE-2021-4231](https://www.cve.org/CVERecord?id=CVE-2021-4231), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-c75v-2vq8-878f](https://github.com/advisories/GHSA-c75v-2vq8-878f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-4231](https://nvd.nist.gov/vuln/detail/CVE-2021-4231), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4231 · Whole record: https://cve.day/CVE-2021-4231.json · Rebuilt by cve.day 2026-11-25T22:58:07.569Z
