Skip to content
Heist/ feed
Back to feed
High

Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes

Type: advisorySources: OSV

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-66412
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:03 UTC · Revision 1

Source evidence

Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes

core-osv · Original source

Published 1 Dec 2025, 22:35 UTC

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.

osv:CVE-2025-66412
Complete source record
{
  "id": "49eb57c88f9dfa11102e8087cc5b9e2d4ac4605ecc1c366767560df51e1b41d2",
  "url": "https://osv.dev/vulnerability/CVE-2025-66412",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes",
    "summary": "Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.",
    "evidence": "osv:CVE-2025-66412",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-66412",
      "aliases": [
        "CVE-2025-66412",
        "GHSA-v4hv-rgfq-gp49"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/angular/angular",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "98db1093f8996aad6f9f5c563a9fcdcdc395d77b"
                },
                {
                  "introduced": "e7566c3c475560616f97de2ab3c8f8d6f83be015"
                },
                {
                  "fixed": "5b4fd221946699b2d21e020c1580226737d386b8"
                },
                {
                  "introduced": "40e2b5b4d13792ed7c46a1d22afcf6c12ac9c679"
                },
                {
                  "fixed": "4755bbd94964f27921ec203fc1a9233a01c84792"
                },
                {
                  "introduced": "00dcbf2eeb3fd18ed39148e4bc9e49a5b35cae0c"
                },
                {
                  "fixed": "8c4a1524da97beeaa91906372a0b63ca8c31e0a3"
                },
                {
                  "fixed": "1c6b0704fb63d051fab8acff84d076abfbc4893a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "18.2.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "19.0.0"
                      },
                      {
                        "fixed": "19.2.17"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "20.0.0"
                      },
                      {
                        "fixed": "20.3.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "21.0.0"
                      },
                      {
                        "fixed": "21.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1c6b0704fb63d051fab8acff84d076abfbc4893a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "20.3.14",
            "19.2.16",
            "21.0.1",
            "21.1.0-next.0",
            "20.3.13",
            "zone.js-0.16.0",
            "21.0.0",
            "vsix-21.0.0",
            "20.3.12",
            "20.3.11",
            "18.2.14",
            "20.3.10",
            "20.3.9",
            "20.3.8",
            "20.3.7",
            "20.3.6",
            "20.3.5",
            "21.0.0-next.8",
            "20.3.4",
            "21.0.0-next.7",
            "20.3.3",
            "21.0.0-next.6",
            "20.3.2",
            "21.0.0-next.5",
            "20.3.1",
            "21.0.0-next.4",
            "19.2.15",
            "20.3.0",
            "21.0.0-next.3",
            "20.3.0-rc.0",
            "21.0.0-next.2",
            "20.2.4",
            "20.2.3",
            "20.2.2",
            "21.0.0-next.1",
            "20.2.1",
            "20.2.0",
            "21.0.0-next.0",
            "20.2.0-rc.1",
            "20.2.0-rc.0",
            "20.2.0-next.6",
            "20.2.0-next.5",
            "20.2.0-next.4",
            "20.2.0-next.3",
            "20.2.0-next.2",
            "20.2.0-next.1",
            "20.2.0-next.0",
            "20.1.0-next.3",
            "20.1.0-next.2",
            "20.1.0-next.1",
            "20.1.0-next.0",
            "19.2.14",
            "19.2.13",
            "zone.js-0.15.1",
            "19.2.12",
            "19.2.11",
            "19.2.10",
            "19.2.9",
            "19.2.8",
            "20.0.0-next.8",
            "19.2.7",
            "20.0.0-next.7",
            "19.2.6",
            "20.0.0-next.6",
            "19.2.5",
            "20.0.0-next.5",
            "19.2.4",
            "20.0.0-next.4",
            "19.2.3",
            "20.0.0-next.3",
            "19.2.2",
            "20.0.0-next.2",
            "19.2.1",
            "20.0.0-next.1",
            "20.0.0-next.0",
            "19.2.0",
            "19.2.0-rc.0",
            "19.2.0-next.3",
            "19.2.0-next.2",
            "19.2.0-next.1",
            "18.2.13",
            "19.2.0-next.0",
            "19.1.0-next.4",
            "19.1.0-next.3",
            "19.1.0-next.2",
            "19.1.0-next.1",
            "19.1.0-next.0",
            "18.2.12",
            "18.2.11",
            "18.2.10",
            "18.2.9",
            "19.0.0-next.10",
            "18.2.8",
            "19.0.0-next.9",
            "18.2.7",
            "19.0.0-next.8",
            "18.2.6",
            "19.0.0-next.7",
            "18.2.5",
            "19.0.0-next.6",
            "18.2.4",
            "19.0.0-next.5",
            "19.0.0-next.4",
            "18.2.3",
            "19.0.0-next.3",
            "18.2.2",
            "19.0.0-next.2",
            "18.2.1",
            "19.0.0-next.1",
            "zone.js-0.15.0",
            "18.2.0",
            "19.0.0-next.0",
            "18.2.0-rc.0",
            "18.2.0-next.4",
            "zone.js-0.14.10",
            "18.2.0-next.3",
            "18.2.0-next.2",
            "zone.js-0.14.8",
            "18.2.0-next.1",
            "18.2.0-next.0",
            "18.1.0-next.4",
            "18.1.0-next.3",
            "18.1.0-next.2",
            "zone.js-0.14.7",
            "18.1.0-next.1",
            "18.1.0-next.0",
            "zone.js-0.14.6",
            "zone.js-0.14.5",
            "18.0.0-next.5",
            "18.0.0-next.4",
            "18.0.0-next.3",
            "18.0.0-next.2",
            "18.0.0-next.1",
            "18.0.0-next.0",
            "17.3.0-next.1",
            "17.3.0-next.0",
            "zone.js-0.14.4",
            "17.2.0-next.1",
            "17.2.0-next.0",
            "zone.js-0.14.3",
            "17.1.0-next.5",
            "17.1.0-next.4",
            "17.1.0-next.3",
            "17.1.0-next.2",
            "17.1.0-next.1",
            "17.1.0-next.0",
            "zone.js-0.14.2",
            "zone.js-0.14.1",
            "17.0.0-next.7",
            "17.0.0-next.6",
            "17.0.0-next.5",
            "zone.js-0.14.0",
            "17.0.0-next.4",
            "zone.js-0.13.3",
            "zone.js-0.13.2",
            "17.0.0-next.3",
            "17.0.0-next.2",
            "17.0.0-next.1",
            "17.0.0-next.0",
            "16.2.0-next.4",
            "16.2.0-next.3",
            "16.2.0-next.2",
            "16.2.0-next.1",
            "16.2.0-next.0",
            "zone.js-0.13.1",
            "16.1.0-next.3",
            "16.1.0-next.2",
            "16.1.0-next.1",
            "16.1.0-next.0",
            "16.0.0-next.6",
            "16.0.0-next.5",
            "16.0.0-next.4",
            "16.0.0-next.3",
            "16.0.0-next.2",
            "zone.js-0.13.0",
            "16.0.0-next.1",
            "16.0.0-next.0",
            "15.2.0-next.4",
            "15.2.0-next.3",
            "15.2.0-next.2",
            "15.2.0-next.1",
            "15.2.0-next.0",
            "15.1.0-next.3",
            "15.1.0-next.2",
            "15.1.0-next.1",
            "15.1.0-next.0",
            "zone.js-0.12.0",
            "15.0.0-next.5",
            "15.0.0-next.4",
            "15.0.0-next.3",
            "15.0.0-next.2",
            "15.0.0-next.1",
            "15.0.0-next.0",
            "14.2.0-next.1",
            "zone.js-0.11.8",
            "14.2.0-next.0",
            "zone.js-0.11.7",
            "14.1.0-next.4",
            "14.1.0-next.3",
            "14.1.0-next.2",
            "14.1.0-next.1",
            "zone.js-0.11.6",
            "14.1.0-next.0",
            "14.0.0-next.15",
            "14.0.0-next.14",
            "14.0.0-next.13",
            "14.0.0-next.12",
            "14.0.0-next.11",
            "14.0.0-next.10",
            "14.0.0-next.9",
            "14.0.0-next.8",
            "14.0.0-next.7",
            "14.0.0-next.6",
            "zone.js-0.11.5",
            "14.0.0-next.5",
            "14.0.0-next.4",
            "14.0.0-next.3",
            "14.0.0-next.2",
            "14.0.0-next.1",
            "14.0.0-next.0",
            "13.2.0-next.2",
            "13.2.0-next.1",
            "13.2.0-next.0",
            "13.1.0-next.3",
            "13.1.0-next.2",
            "13.1.0-next.1",
            "13.1.0-next.0",
            "13.0.0-next.14",
            "13.0.0-next.13",
            "13.0.0-next.12",
            "13.0.0-next.11",
            "13.0.0-next.10",
            "13.0.0-next.9",
            "13.0.0-next.8",
            "13.0.0-next.7",
            "13.0.0-next.6",
            "13.0.0-next.5",
            "13.0.0-next.4",
            "13.0.0-next.3",
            "13.0.0-next.2",
            "13.0.0-next.1",
            "13.0.0-next.0",
            "12.2.0-next.3",
            "12.2.0-next.2",
            "12.2.0-next.1",
            "12.1.0",
            "12.2.0-next.0",
            "12.1.0-next.6",
            "12.1.0-next.5",
            "12.1.0-next.4",
            "12.1.0-next.3",
            "12.1.0-next.2",
            "12.0.0-next.8",
            "12.0.0-next.7",
            "12.0.0-next.6",
            "12.0.0-next.5",
            "12.0.0-next.4",
            "12.0.0-next.3",
            "12.0.0-next.2",
            "12.0.0-next.1",
            "zone.js-0.11.4",
            "12.0.0-next.0",
            "11.1.0-next.4",
            "11.1.0-next.3",
            "11.1.0-next.2",
            "11.1.0-next.1",
            "11.1.0-next.0",
            "zone.js-0.11.3",
            "zone.js-0.11.2",
            "11.0.0-next.6",
            "11.0.0-next.5",
            "11.0.0-next.4",
            "11.0.0-next.3",
            "11.0.0-next.2",
            "11.0.0-next.1",
            "11.0.0-next.0",
            "10.1.0-rc.0",
            "10.1.0-next.8",
            "10.1.0-next.7",
            "zone.js-0.11.0",
            "10.1.0-next.6",
            "10.1.0-next.5",
            "10.1.0-next.4",
            "10.1.0-next.3",
            "10.1.0-next.2",
            "10.1.0-next.1",
            "10.1.0-next.0",
            "10.0.0-rc.0",
            "10.0.0-next.9",
            "10.0.0-next.8",
            "10.0.0-next.7",
            "10.0.0-next.6",
            "10.0.0-next.5",
            "10.0.0-next.4",
            "10.0.0-next.3",
            "10.0.0-next.2",
            "10.0.0-next.1",
            "10.0.0-next.0",
            "9.1.0-rc.0",
            "9.1.0-next.5",
            "zone.js-0.10.3",
            "9.1.0-next.4",
            "9.1.0-next.2",
            "9.1.0-next.1",
            "9.1.0-next.0",
            "9.0.0-rc.1",
            "9.0.0-rc.0",
            "9.0.0-next.15",
            "9.0.0-next.14",
            "9.0.0-next.13",
            "9.0.0-next.12",
            "9.0.0-next.11",
            "9.0.0-next.10",
            "9.0.0-next.9",
            "9.0.0-next.8",
            "9.0.0-next.7",
            "9.0.0-next.6",
            "9.0.0-next.5",
            "9.0.0-next.4",
            "9.0.0-next.3",
            "zone.js-0.10.2",
            "9.0.0-next.2",
            "9.0.0-next.1",
            "zone.js-0.10.1",
            "9.0.0-next.0",
            "zone.js-0.10.0",
            "8.2.0-next.2",
            "8.2.0-next.1",
            "8.2.0-next.0",
            "8.1.0-rc.0",
            "zone.js-0.9.2",
            "8.1.0-next.3",
            "8.1.0-next.2",
            "8.1.0-next.1",
            "8.1.0-beta.0",
            "8.0.0-rc.0",
            "8.0.0-beta.14",
            "8.0.0-beta.13",
            "8.0.0-beta.12",
            "8.0.0-beta.11",
            "8.0.0-beta.10",
            "8.0.0-beta.9",
            "8.0.0-beta.8",
            "8.0.0-beta.7",
            "8.0.0-beta.6",
            "8.0.0-beta.5",
            "8.0.0-beta.4",
            "8.0.0-beta.3",
            "8.0.0-beta.2",
            "8.0.0-beta.1",
            "8.0.0-beta.0",
            "7.2.0",
            "7.2.0-rc.0",
            "7.2.0-beta.2",
            "7.2.0-beta.1",
            "7.1.0",
            "7.1.0-rc.0",
            "7.1.0-beta.2",
            "7.1.0-beta.1",
            "7.1.0-beta.0",
            "7.0.0-rc.1",
            "7.0.0-rc.0",
            "7.0.0-beta.7",
            "7.0.0-beta.6",
            "7.0.0-beta.5",
            "ngcontainer_0.5.0",
            "7.0.0-beta.4",
            "7.0.0-beta.3",
            "7.0.0-beta.2",
            "7.0.0-beta.1",
            "ngcontainer_0.4.0",
            "7.0.0-beta.0",
            "6.1.0",
            "6.1.0-rc.3",
            "ngcontainer_0.3.3",
            "6.1.0-beta.3",
            "6.1.0-beta.2",
            "6.1.0-beta.1",
            "ngcontainer_0.3.2",
            "6.1.0-beta.0",
            "ngcontainer_0.3.1",
            "ngcontainer_0.3.0",
            "6.0.0-rc.5",
            "6.0.0-rc.4",
            "6.0.0-rc.3",
            "6.0.0-rc.2",
            "6.0.0-rc.1",
            "6.0.0-rc.0",
            "6.0.0-beta.8",
            "6.0.0-beta.7",
            "6.0.0-beta.6",
            "6.0.0-beta.4",
            "6.0.0-beta.3",
            "6.0.0-beta.2",
            "6.0.0-beta.1",
            "6.0.0-beta.0",
            "5.2.0",
            "5.2.0-rc.0",
            "5.2.0-beta.1",
            "5.2.0-beta.0",
            "5.1.0",
            "5.1.0-rc.1",
            "5.1.0-rc.0",
            "5.1.0-beta.2",
            "5.1.0-beta.1",
            "5.1.0-beta.0",
            "5.0.0-rc.4",
            "5.0.0-rc.3",
            "5.0.0-rc.2",
            "5.0.0-rc.1",
            "5.0.0-rc.0",
            "5.0.0-beta.7",
            "5.0.0-beta.6",
            "5.0.0-beta.5",
            "patch_sync",
            "5.0.0-beta.4",
            "5.0.0-beta.3",
            "5.0.0-beta.2",
            "5.0.0-beta.1",
            "5.0.0-beta.0",
            "4.3.0",
            "4.3.0-rc.0",
            "4.3.0-beta.1",
            "4.3.0-beta.0",
            "4.2.1",
            "4.2.0-rc.2",
            "4.2.0-rc.1",
            "4.2.0-rc.0",
            "4.2.0-beta.0",
            "4.1.0",
            "4.1.0-rc.0",
            "4.1.0-beta.1",
            "4.1.0-beta.0",
            "4.0.0",
            "4.0.0-rc.6",
            "4.0.0-rc.5",
            "4.0.0-rc.4",
            "4.0.0-rc.3",
            "4.0.0-rc.2",
            "4.0.0-rc.1",
            "4.0.0-beta.8",
            "4.0.0-beta.7",
            "4.0.0-beta.6",
            "4.0.0-beta.5",
            "4.0.0-beta.3",
            "4.0.0-beta.2",
            "4.0.0-beta.1",
            "2.4.0-marker",
            "2.3.0",
            "4.0.0-beta.0",
            "2.3.0-rc.0",
            "2.3.0-beta.0",
            "2.2.0",
            "2.2.0-rc.0",
            "2.2.0-beta.1",
            "2.2.0-beta.0",
            "2.1.0",
            "2.1.0-rc.0",
            "2.1.0-beta.0",
            "2.0.0",
            "2.0.0-rc.7",
            "2.0.0-rc.6",
            "2.0.0-rc.5",
            "2.0.0-rc.4",
            "2.0.0-rc.3",
            "2.0.0-rc.2",
            "2.0.0-rc.1",
            "2.0.0-rc.0",
            "2.0.0-beta.17",
            "2.0.0-beta.16",
            "2.0.0-beta.14",
            "2.0.0-beta.13",
            "2.0.0-beta.12",
            "2.0.0-beta.11",
            "2.0.0-beta.8",
            "2.0.0-beta.7",
            "2.0.0-beta.6",
            "2.0.0-beta.0",
            "2.0.0-alpha.55",
            "2.0.0-alpha.54",
            "2.0.0-alpha.53",
            "2.0.0-alpha.52",
            "2.0.0-alpha.51",
            "2.0.0-alpha.50",
            "2.0.0-alpha.49",
            "2.0.0-alpha.48",
            "2.0.0-alpha.47",
            "2.0.0-alpha.44",
            "2.0.0-alpha.42",
            "2.0.0-alpha.41",
            "2.0.0-alpha.40",
            "2.0.0-alpha.35",
            "2.0.0-alpha.34",
            "2.0.0-alpha.33",
            "2.0.0-alpha.32",
            "2.0.0-alpha.31",
            "2.0.0-alpha.30",
            "2.0.0-alpha.29",
            "2.0.0-alpha.28",
            "2.0.0-alpha.27",
            "2.0.0-alpha.26",
            "2.0.0-alpha.25",
            "2.0.0-alpha.24",
            "2.0.0-alpha.23",
            "2.0.0-alpha.22",
            "2.0.0-alpha.21",
            "2.0.0-alpha.20",
            "2.0.0-alpha.19",
            "2.0.0-alpha.18",
            "2.0.0-alpha.17",
            "2.0.0-alpha.15",
            "2.0.0-alpha.14",
            "2.0.0-alpha.13"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-66412.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.099319424Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-253495.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-485750.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66412.json",
        "https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-66412",
        "https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": ">= 21.0.0-next.0 < 21.0.2"
                  },
                  {
                    "last_affected": ">= 21.0.0-next.0 < 21.0.2"
                  },
                  {
                    "introduced": ">= 20.0.0-next.0 < 20.3.15"
                  },
                  {
                    "last_affected": ">= 20.0.0-next.0 < 20.3.15"
                  },
                  {
                    "introduced": ">= 19.0.0-next.0 < 19.2.17"
                  },
                  {
                    "last_affected": ">= 19.0.0-next.0 < 19.2.17"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66412.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-66412",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504458,
  "published_at": "2025-12-01T22:35:59.211+00:00"
}