CVE-2021-4231
Angular Comment cross site scripting
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.181% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 3.5 · published by VulDBCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:56:13.283Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:13.283Z | CVE Program |
| epss | verified | 2026-11-19T16:04:31.971Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:29.390Z | OSV |
| affected | verified | 2026-11-19T12:56:13.283Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:13.283Z | CVE Program |
Affected versions and configuration
unspecified Angular; default status: unknown: 11.0.0 [affected; scheme: unspecified]; 11.0.1 [affected; scheme: unspecified]; 11.0.2 [affected; scheme: unspecified]; 11.0.3 [affected; scheme: unspecified]; 11.0.4 [affected; scheme: unspecified]; 11.1.0-next.0 [affected; scheme: unspecified]; 11.1.0-next.1 [affected; scheme: unspecified]; 11.1.0-next.2 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "unspecified",
"product": "Angular",
"versions": [
{
"status": "affected",
"version": "11.0.0"
},
{
"status": "affected",
"version": "11.0.1"
},
{
"status": "affected",
"version": "11.0.2"
},
{
"status": "affected",
"version": "11.0.3"
},
{
"status": "affected",
"version": "11.0.4"
},
{
"status": "affected",
"version": "11.1.0-next.0"
},
{
"status": "affected",
"version": "11.1.0-next.1"
},
{
"status": "affected",
"version": "11.1.0-next.2"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/angular/angular/issues/40136",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://vuldb.com/?id.181356",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T17:23:10.322Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2021-4231",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-14T17:14:41.857765Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-15T14:38:13.128Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-c75v-2vq8-878f",
"aliases": [
"CVE-2021-4231"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "11.0.0"
},
{
"fixed": "11.0.5"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c75v-2vq8-878f/GHSA-c75v-2vq8-878f.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "11.1.0-next.0"
},
{
"fixed": "11.1.0-next.3"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c75v-2vq8-878f/GHSA-c75v-2vq8-878f.json",
"last_known_affected_version_range": "<= 11.1.0-next.2"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "10.2.5"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c75v-2vq8-878f/GHSA-c75v-2vq8-878f.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4231",
"type": "ADVISORY"
},
{
"url": "https://github.com/angular/angular/issues/40136",
"type": "WEB"
},
{
"url": "https://github.com/angular/angular/commit/0aa220bc0000fc4d1651ec388975bbf5baa1da36",
"type": "WEB"
},
{
"url": "https://github.com/angular/angular/commit/47d9b6d72dab9d60c96bc1c3604219f6385649ea",
"type": "WEB"
},
{
"url": "https://github.com/angular/angular/commit/ba8da742e3b243e8f43d4c63aa842b44e14f2b09",
"type": "WEB"
},
{
"url": "https://github.com/angular/angular",
"type": "PACKAGE"
},
{
"url": "https://security.snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902",
"type": "WEB"
},
{
"url": "https://vuldb.com/?id.181356",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-05-26T14:15:00Z",
"github_reviewed_at": "2022-06-02T18:58:52Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 11.0.5 | Official record |
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 11.1.0-next.3 | Official record |
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 10.2.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:29.390ZArchived source JSON
Source publication: 2022-05-27T00:01:08.000Z
Source modification: 2026-09-10T03:49:21.863ZDocument fingerprint
50ac64eba01ffd544ad15a43741ce9d8e49258acad8b58ab2489b3fcb5715606 - CVE ProgramConsulted: 2026-11-19T12:56:13.283ZArchived source JSON
Source publication: 2022-05-26T07:10:14.000Z
Source modification: 2025-04-15T14:38:13.128ZDocument fingerprint
21667c8229786f0763b71ad5364c5367c0150be9b03015dab0bda38eba4ef916 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:31.971ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3c1d14159dacc460022fe89f94f80269a255e1b71a5e13cea407b288f5187c5b
Official status history
- UNKNOWN → PUBLISHED · · evidence