Saturday, November 7, 2026

Angular Platform Vulnerability Lets Attackers Execute Code Through Malicious SVG Animations

The Angular team has released high security updates to address a high-severity vulnerability in the Angular Template Compiler.

Tracked as CVE-2025-66412, this flaw allows attackers to bypass built-in security protections and execute malicious code inside a user’s browser.

The vulnerability is classified as a Stored Cross-Site Scripting (XSS) issue. It stems from an incomplete security schema within the Angular compiler.

MetricDetails
CVE IDCVE-2025-66412
SeverityHigh (CVSS 8.5)
Vulnerability TypeStored XSS via SVG Animation

By default, Angular automatically “sanitizes” untrusted data to prevent hackers from injecting malicious scripts.

However, this newly discovered flaw reveals a blind spot in the framework’s handling of specific SVG (Scalable Vector Graphics) animation and MathML attributes.

How the Attack Works

The core of the problem lies in SVG animation elements, such as <animate> or <set>. These elements use an attribute called attributeName to define which property of an image should be animated.

The vulnerability exists because the compiler did not correctly validate this attributeName field.

An attacker can exploit this by binding the attributeName to a sensitive field like “href” (the standard link attribute).

Once the animation targets the “href” attribute, the attacker can inject a JavaScript URL into the animation’s value.

Because the compiler fails to recognize this specific combination as dangerous, it skips the usual security sanitization.

When a user interacts with the compromised element, such as clicking it or even automatically if the animation is set to trigger on its own, the malicious JavaScript executes.

If exploited, this vulnerability gives attackers complete control within the context of the victim’s session. The consequences are severe:

  • Session Hijacking: Attackers can steal authentication tokens and cookies, effectively locking users out of their accounts.
  • Data Theft: Sensitive user data displayed on the page can be captured and sent to external servers.
  • Unauthorized Actions: The script can perform actions on the website as if the actual user were performing them.

The vulnerability affects multiple major versions of the @angular/compiler package. The Angular team has acted quickly, releasing patches for versions 19, 20, and 21.

Notably, versions 18 and older are listed as having “none” for patched versions in this advisory, suggesting users on older branches strictly need to upgrade.

Developers are strongly urged to update to the latest patched versions immediately (v19.2.17, v20.3.15, or v21.0.2).

For teams unable to upgrade instantly, strict workarounds are required. You must ensure that no untrusted data (from APIs or databases) is ever bound to SVG animation attributes.

Additionally, implementing a robust Content Security Policy (CSP) that strictly blocks JavaScript: URLs can effectively neutralize the attack vector even if the vulnerability remains in the code.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Hackers Exploit WordPress Core RCE Vulnerability in Over 240,000 Attack Attempts

Attackers have launched more than 240,000 exploit attempts against...

Hackers Use Fake GitHub Security Tools to Spread Malware, Infecting Over 2,000 Computers

Threat actors are distributing malware through GitHub repositories masquerading...

Insignary Releases Free Insignary-Chk Tool to Detect PHP2Shell and Node2Shell Exposure

Toronto, Canada, November 6th, 2026, CyberNewswire Free, read-only scanner helps...

Dark Project Ransomware Gang Claims 38 Victims Across 8 Countries, Targeting Healthcare and Manufacturing

Dark Project, an emerging financially motivated ransomware operation, has...

Hackers Use Fake Streaming Apps to Spread Mirax Android Malware and Steal Bank Accounts

Hackers are using streaming app lures to distribute Mirax....

Related Articles

Recent News