{"answers":{"affected":"8 open source packages ship an affected version, including @angular/compiler. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-66412 in the wild and no public exploit code.","fix":"Upgrade @angular/compiler to a fixed version for your release line: 19.2.17, 20.3.15 or 21.0.2.","what":"CVE-2025-66412 is a high-severity cross-site scripting vulnerability in angular, published on 1 Dec 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-66412 and fix it if it is affected.\n\nWhat it is: CVE-2025-66412 is a high-severity cross-site scripting vulnerability in angular, published on 1 Dec 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-66412 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @angular/compiler (npm): affected all versions up to 18.2.14; no fix listed\n- @angular/compiler (npm): affected all versions up to 18.2.14; no fix listed\n- @angular/compiler (npm): affected from 19.0.0-next.0; fixed in 19.2.17\n- @angular/compiler (npm): affected from 19.0.0-next.0; fixed in 19.2.17\n- @angular/compiler (npm): affected from 20.0.0-next.0; fixed in 20.3.15\n- @angular/compiler (npm): affected from 20.0.0-next.0; fixed in 20.3.15\n- @angular/compiler (npm): affected from 21.0.0-next.0; fixed in 21.0.2\n- @angular/compiler (npm): affected from 21.0.0-next.0; fixed in 21.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-66412/ (Markdown: https://insights.sbomify.com/CVE-2025-66412/index.md)","id":"CVE-2025-66412","markdown":"https://insights.sbomify.com/CVE-2025-66412/index.md","name":"CVE-2025-66412","record":{"aliases":["CLSA-2026-1775176150","CLSA-2026-1775176152","CLSA-2026-1775176157","CLSA-2026-1775176159","CLSA-2026-1775176161","CLSA-2026-1775176163","CLSA-2026-1775176167","CLSA-2026-1775176172","CLSA-2026-1775176176","CLSA-2026-1775176184","CLSA-2026-1781225627","CLSA-2026-1781225629","CLSA-2026-1781571270","CLSA-2026-1781571279","CLSA-2026-1781571280","CLSA-2026-1781571281","CLSA-2026-1781657683","CLSA-2026-1781657684","CLSA-2026-1781657685","CLSA-2026-1781657687","CLSA-2026-1781657688","CLSA-2026-1781657695","CLSA-2026-1781657706","CLSA-2026-1783126875","CLSA-2026-1783213288","CLSA-2026-1783213295","CLSA-2026-1783213296","CLSA-2026-1783213297","CLSA-2026-1783213298","CLSA-2026-1783299705","CLSA-2026-1792160915","CLSA-2026-1792160921","CLSA-2026-1792160983","CLSA-2026-1792160987","CLSA-2026-1792161090","CLSA-2026-1792161092","CLSA-2026-1792161095","CLSA-2026-1792161097","CLSA-2026-1792161100","CLSA-2026-1792161102","CLSA-2026-1792161106","CLSA-2026-1792161107","CLSA-2026-1792161112","CLSA-2026-1792161167","CLSA-2026-1792161168","CLSA-2026-1792161169","CLSA-2026-1792161170","CLSA-2026-1792161171","CLSA-2026-1792161172","CLSA-2026-1792161174","CLSA-2026-1792161175","CLSA-2026-1792161176","CLSA-2026-1792161177","CLSA-2026-1792161179","CLSA-2026-1792161181","CLSA-2026-1792161231","CLSA-2026-1792161244","CLSA-2026-1792161249","CLSA-2026-1792161250","CLSA-2026-1792161251","CLSA-2026-1792161252","CLSA-2026-1792161254","CLSA-2026-1792163476","CLSA-2026-1792163479","CLSA-2026-1792163482","CLSA-2026-1792163484","CLSA-2026-1792163486","CLSA-2026-1792163488","CLSA-2026-1792163490","CLSA-2026-1792163493","CLSA-2026-1792163495","CLSA-2026-1792163499","CLSA-2026-1792163557","CLSA-2026-1792163558","CLSA-2026-1792163559","CLSA-2026-1792163560","CLSA-2026-1792163561","CLSA-2026-1792163564","CLSA-2026-1792163565","CLSA-2026-1792163566","CLSA-2026-1792163567","CLSA-2026-1792163568","CLSA-2026-1792163569","CLSA-2026-1792163571","CLSA-2026-1792163622","CLSA-2026-1792163634","CLSA-2026-1792163640","CLSA-2026-1792163641","CLSA-2026-1792163642","CLSA-2026-1792163643","CLSA-2026-1792208084","CLSA-2026-1792208087","CLSA-2026-1792208109","CLSA-2026-1792208110","CLSA-2026-1792208111","CLSA-2026-1792208112","CLSA-2026-1792208113","CLSA-2026-1792208114","CLSA-2026-1792208146","CLSA-2026-1792208147","CLSA-2026-1792208148","CLSA-2026-1792208451","CLSA-2026-1792208455","CLSA-2026-1792208461","CLSA-2026-1792208467","CLSA-2026-1792208474","CLSA-2026-1792208497","CLSA-2026-1792208498","CLSA-2026-1792208499","CLSA-2026-1792208502","CLSA-2026-1792208507","CLSA-2026-1792208508","CLSA-2026-1792208509","CLSA-2026-1792208526","CLSA-2026-1792208534","CLSA-2026-1792208541","CLSA-2026-1792208547","CLSA-2026-1792208550","CLSA-2026-1792208641","CLSA-2026-1792208642","CLSA-2026-1792250192","CLSA-2026-1792250194","CLSA-2026-1792250214","CLSA-2026-1792250215","CLSA-2026-1792250216","CLSA-2026-1792250217","CLSA-2026-1792250218","CLSA-2026-1792250234","CLSA-2026-1792250240","CLSA-2026-1792250471","CLSA-2026-1792250473","CLSA-2026-1792250475","CLSA-2026-1792250482","CLSA-2026-1792250519","CLSA-2026-1792250522","CLSA-2026-1792250528","CLSA-2026-1792250536","CLSA-2026-1792250552","CLSA-2026-1792250557","CLSA-2026-1792250562","CLSA-2026-1792250564","CLSA-2026-1792250601","CLSA-2026-1792250665","CLSA-2026-1792250670","CLSA-2026-1792250789","CLSA-2026-1792250790","CLSA-2026-1792250791","CLSA-2026-1792250798","CLSA-2026-1792251054","CLSA-2026-1792251562","CLSA-2026-1792281034","CLSA-2026-1792281035","CLSA-2026-1792281036","CLSA-2026-1792281037","CLSA-2026-1792281041","CLSA-2026-1792281087","CLSA-2026-1792281088","CLSA-2026-1792281089","CLSA-2026-1792281090","CLSA-2026-1792281092","CLSA-2026-1792281093","CLSA-2026-1792281094","CLSA-2026-1792281095","CLSA-2026-1792281096","CLSA-2026-1792281098","CLSA-2026-1792281133","CLSA-2026-1792281148","CLSA-2026-1792281149","CLSA-2026-1792281150","CLSA-2026-1792281700","CLSA-2026-1792281703","CLSA-2026-1792281719","CLSA-2026-1792281801","CLSA-2026-1792281804","CLSA-2026-1792281807","CLSA-2026-1792281817","CLSA-2026-1792281822","CLSA-2026-1792281825","CLSA-2026-1792281827","CLSA-2026-1792281845","CLSA-2026-1792325300","CLSA-2026-1792325301","CLSA-2026-1792325304","CLSA-2026-1792325305","CLSA-2026-1792325335","CLSA-2026-1792325336","CLSA-2026-1792325338","CLSA-2026-1792325339","CLSA-2026-1792325365","CLSA-2026-1792325371","CLSA-2026-1792325374","CLSA-2026-1792325375","CLSA-2026-1792325376","CLSA-2026-1792325377","CLSA-2026-1792325926","CLSA-2026-1792325927","CLSA-2026-1792325941","CLSA-2026-1792325942","CLSA-2026-1792325970","CLSA-2026-1792326018","CLSA-2026-1792326020","CLSA-2026-1792326024","CLSA-2026-1792326029","CLSA-2026-1792326030","CLSA-2026-1792326031","CLSA-2026-1792326032","CLSA-2026-1792326039","CLSA-2026-1792326045","CLSA-2026-1792326054","CLSA-2026-1792326069","CLSA-2026-1792345160","CLSA-2026-1792345162","CLSA-2026-1792345164","CLSA-2026-1792345199","CLSA-2026-1792345200","CLSA-2026-1792345201","CLSA-2026-1792345202","CLSA-2026-1792345203","CLSA-2026-1792345204","CLSA-2026-1792345205","CLSA-2026-1792345206","CLSA-2026-1792345207","CLSA-2026-1792345240","CLSA-2026-1792345243","CLSA-2026-1792345244","CLSA-2026-1792345630","CLSA-2026-1792345633","CLSA-2026-1792345649","CLSA-2026-1792345683","CLSA-2026-1792345684","CLSA-2026-1792345686","CLSA-2026-1792345691","CLSA-2026-1792345697","CLSA-2026-1792345701","CLSA-2026-1792345706","CLSA-2026-1792345712","CLSA-2026-1792345720","CLSA-2026-1792345756","CLSA-2026-1792345757","CLSA-2026-1792345950","CLSA-2026-1792357208","CLSA-2026-1792357209","CLSA-2026-1792357211","CLSA-2026-1792357213","CLSA-2026-1792357256","CLSA-2026-1792357257","CLSA-2026-1792357258","CLSA-2026-1792357259","CLSA-2026-1792357260","CLSA-2026-1792357261","CLSA-2026-1792357262","CLSA-2026-1792357264","CLSA-2026-1792357296","CLSA-2026-1792357305","CLSA-2026-1792357307","CLSA-2026-1792357308","CLSA-2026-1792357309","CLSA-2026-1792357310","CLSA-2026-1792357764","CLSA-2026-1792357767","CLSA-2026-1792357958","CLSA-2026-1792357959","CLSA-2026-1792357978","CLSA-2026-1792358024","CLSA-2026-1792358025","CLSA-2026-1792358028","CLSA-2026-1792358063","CLSA-2026-1792366526","CLSA-2026-1792366528","CLSA-2026-1792366556","CLSA-2026-1792366557","CLSA-2026-1792366558","CLSA-2026-1792366559","CLSA-2026-1792366560","CLSA-2026-1792366561","CLSA-2026-1792366562","CLSA-2026-1792366589","CLSA-2026-1792366592","CLSA-2026-1792366875","CLSA-2026-1792366877","CLSA-2026-1792366884","CLSA-2026-1792366892","CLSA-2026-1792366894","CLSA-2026-1792366903","CLSA-2026-1792366904","CLSA-2026-1792366909","CLSA-2026-1792366919","CLSA-2026-1792366928","CLSA-2026-1792366934","CLSA-2026-1792366935","CLSA-2026-1792366939","CLSA-2026-1792366942","CLSA-2026-1792366945","CLSA-2026-1792366968","CLSA-2026-1792366974","CLSA-2026-1792367162","CLSA-2026-1792367170","CLSA-2026-1792371580","CLSA-2026-1792371583","CLSA-2026-1792371584","CLSA-2026-1792371587","CLSA-2026-1792371608","CLSA-2026-1792371609","CLSA-2026-1792371610","CLSA-2026-1792371637","CLSA-2026-1792371638","CLSA-2026-1792371639","CLSA-2026-1792371640","CLSA-2026-1792371642","CLSA-2026-1792371996","CLSA-2026-1792371999","CLSA-2026-1792372009","CLSA-2026-1792372023","CLSA-2026-1792372034","CLSA-2026-1792372046","CLSA-2026-1792372049","CLSA-2026-1792372050","CLSA-2026-1792372056","CLSA-2026-1792372075","CLSA-2026-1792372109","CLSA-2026-1792375715","CLSA-2026-1792375716","CLSA-2026-1792375717","CLSA-2026-1792375718","CLSA-2026-1792375720","CLSA-2026-1792375748","CLSA-2026-1792375749","CLSA-2026-1792376050","CLSA-2026-1792376052","CLSA-2026-1792376054","CLSA-2026-1792376055","CLSA-2026-1792376056","CLSA-2026-1792376059","CLSA-2026-1792376063","CLSA-2026-1792376064","CLSA-2026-1792376065","CLSA-2026-1792376069","CLSA-2026-1792376072","CLSA-2026-1792376073","CLSA-2026-1792376085","CLSA-2026-1792376092","CLSA-2026-1792376099","CLSA-2026-1792376110","CLSA-2026-1792376117","CLSA-2026-1792376149","CLSA-2026-1792376211","CLSA-2026-1792376212","CLSA-2026-1792376213","CLSA-2026-1792376337","CLSA-2026-1792376601","CLSA-2026-1792379941","CLSA-2026-1792379942","CLSA-2026-1792379943","CLSA-2026-1792379944","CLSA-2026-1792379973","CLSA-2026-1792379974","CLSA-2026-1792379975","CLSA-2026-1792379976","CLSA-2026-1792379977","CLSA-2026-1792379978","CLSA-2026-1792379979","CLSA-2026-1792379980","CLSA-2026-1792380015","CLSA-2026-1792380016","CLSA-2026-1792380017","CLSA-2026-1792380018","CLSA-2026-1792380380","CLSA-2026-1792380382","CLSA-2026-1792380390","CLSA-2026-1792380403","CLSA-2026-1792380405","CLSA-2026-1792380411","CLSA-2026-1792380433","CLSA-2026-1792380436","CLSA-2026-1792380441","CLSA-2026-1792380443","CLSA-2026-1792380450","CLSA-2026-1792380542","CLSA-2026-1792380673","CLSA-2026-1792380674","CLSA-2026-1792382572","CLSA-2026-1792382575","CLSA-2026-1792382599","CLSA-2026-1792382601","CLSA-2026-1792382619","CLSA-2026-1792382624","CLSA-2026-1792382627","CLSA-2026-1792382628","CLSA-2026-1792382629","CLSA-2026-1792382903","CLSA-2026-1792382907","CLSA-2026-1792382912","CLSA-2026-1792382928","CLSA-2026-1792382942","CLSA-2026-1792382949","CLSA-2026-1792382957","CLSA-2026-1792382958","CLSA-2026-1792382959","CLSA-2026-1792382961","CLSA-2026-1792382965","CLSA-2026-1792382969","CLSA-2026-1792382990","CLSA-2026-1792382991","CLSA-2026-1792382997","CLSA-2026-1792383062","CLSA-2026-1792383192","CLSA-2026-1792383193","CLSA-2026-1792383445","CLSA-2026-1792383446","CLSA-2026-1792383447","CLSA-2026-1792386048","CLSA-2026-1792386049","CLSA-2026-1792386078","CLSA-2026-1792386079","CLSA-2026-1792386080","CLSA-2026-1792386081","CLSA-2026-1792386082","CLSA-2026-1792386084","CLSA-2026-1792386112","CLSA-2026-1792386113","CLSA-2026-1792386411","CLSA-2026-1792386412","CLSA-2026-1792386427","CLSA-2026-1792386433","CLSA-2026-1792386435","CLSA-2026-1792386437","CLSA-2026-1792386444","CLSA-2026-1792386450","CLSA-2026-1792386455","CLSA-2026-1792386467","CLSA-2026-1792386471","CLSA-2026-1792386474","CLSA-2026-1792386482","CLSA-2026-1792386487","CLSA-2026-1792386491","CLSA-2026-1792386520","CLSA-2026-1792386579","CLSA-2026-1792386580","CLSA-2026-1792386712","GHSA-v4hv-rgfq-gp49","UBUNTU-CVE-2025-66412"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Angular web framework","requires_auth":"low_privilege","summary":"Attackers can inject malicious scripts via SVG or MathML attributes due to incomplete security schema, leading to stored XSS in Angular applications.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"angular","vendor":"angular"}],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes","id":"CVE-2025-66412","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":8,"n_references":2,"next":{"headline":"Git for Windows leaks NTLM hash when cloning from an attacker-controlled server","id":"CVE-2025-66413"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["18.2.14"],"package":"@angular/compiler","purl":null,"source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["18.2.14"],"package":"@angular/compiler","purl":"pkg:npm/%40angular/compiler","source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":["19.2.17"],"introduced":["19.0.0-next.0"],"last_affected":[],"package":"@angular/compiler","purl":null,"source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":["19.2.17"],"introduced":["19.0.0-next.0"],"last_affected":[],"package":"@angular/compiler","purl":"pkg:npm/%40angular/compiler","source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":["20.3.15"],"introduced":["20.0.0-next.0"],"last_affected":[],"package":"@angular/compiler","purl":null,"source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":["20.3.15"],"introduced":["20.0.0-next.0"],"last_affected":[],"package":"@angular/compiler","purl":"pkg:npm/%40angular/compiler","source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":["21.0.2"],"introduced":["21.0.0-next.0"],"last_affected":[],"package":"@angular/compiler","purl":null,"source":"GHSA-v4hv-rgfq-gp49"},{"ecosystem":"npm","fixed":["21.0.2"],"introduced":["21.0.0-next.0"],"last_affected":[],"package":"@angular/compiler","purl":"pkg:npm/%40angular/compiler","source":"GHSA-v4hv-rgfq-gp49"}],"prev":{"headline":"Coder logged sensitive objects unsanitized","id":"CVE-2025-66411"},"products":["angular"],"published":"2025-12-01","related":[{"cvss_score":8.8,"headline":"Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning","id":"CVE-2026-68945","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":8.8,"headline":"Angular: SSRF via Hostname Hijacking in @angular/platform-server","id":"CVE-2026-46417","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.8,"headline":"Angular: URL Parser Differential in @angular/platform-server leading to SSRF Allowlist Bypass","id":"CVE-2026-50168","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.8,"headline":"Angular: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State Poisoning","id":"CVE-2026-54266","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.7,"headline":"Angular: SSRF via protocol-relative and backslash URLs in Angular Platform-Server","id":"CVE-2026-41423","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":8.6,"headline":"Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR","id":"CVE-2026-88056","kev_date_added":null,"published":"2026-09-10"},{"cvss_score":8.6,"headline":"Angular: SSR XSS via Unescaped Processing Instruction (\u003c?...?\u003e) Nodes in Fallback Raw-Content Elements","id":"CVE-2026-88058","kev_date_added":null,"published":"2026-09-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-02","vendors":["angular"]},"summary":"Attackers can inject malicious scripts via SVG or MathML attributes due to incomplete security schema, leading to stored XSS in Angular applications.","url":"https://insights.sbomify.com/CVE-2025-66412/"}