CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2021-4231

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 3.5 · low

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 VulDB
CVSS: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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:56:13.283ZCVE Program
epssverified2026-11-19T16:04:31.971ZFIRST EPSS
patchesverified2026-11-19T12:52:29.390ZOSV
affectedverified2026-11-19T12:56:13.283ZCVE Program
lifecycleverified2026-11-19T12:56:13.283ZCVE 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / package@angular/coreNot a distribution channel11.0.5Official record
ecosystem-boundarynpm / package@angular/coreNot a distribution channel11.1.0-next.3Official record
ecosystem-boundarynpm / package@angular/coreNot a distribution channel10.2.5Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history