angular/packages/compiler/test
Alan Agius d04ddd73df fix(core): prevent binding unsafe attributes on SVG animation elements (#67797)
SVG animation elements (`animate` and `set`) can be used to animate sensitive attributes like `href` or `xlink:href`. Binding to these animation attributes (like `to`, `from`, or `values`) with a sensitive target creates an XSS vector.

This change mitigates this risk by:
1. Classifying `to`, `from`, and `values` on `<animate>` and `<set>` elements as `ATTRIBUTE_NO_BINDING` in the DOM security schema to prevent standard dynamic bindings.
2. Adding runtime validations in `ɵɵvalidateAttribute` to verify that `attributeName` is not a sensitive attribute (such as `href` or `xlink:href`) when processed by a set of `SECURITY_SENSITIVE_ATTRIBUTE_NAMES`. If it is, a runtime error `UNSAFE_ATTRIBUTE_BINDING` is thrown.
3. Adding regression tests in `integration_spec.ts` to ensure unsafe bindings throw an error while safe ones pass correctly.

PR Close #67797
2026-04-01 11:43:59 +02:00
..
expression_parser build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
i18n build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
ml_parser fix(compiler): parse named HTML entities containing digits 2026-03-17 12:54:45 -07:00
output build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
render3 fix(compiler): prevent mutation of children array in RecursiveVisitor 2026-03-04 22:41:36 +00:00
schema fix(core): prevent binding unsafe attributes on SVG animation elements (#67797) 2026-04-01 11:43:59 +02:00
selector refactor(compiler): remove zone-based testing utilities 2026-02-09 07:55:12 -08:00
shadow_css fix(compiler): prevent shimCssText from adding extra blank lines per CSS comment 2026-03-20 15:17:35 -07:00
BUILD.bazel test(compiler): remove zone-based testing utilities 2026-02-05 16:56:55 -08:00
compiler_facade_interface_spec.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
integration_spec.ts test(compiler): remove zone-based testing utilities 2026-02-05 16:56:55 -08:00
style_url_resolver_spec.ts refactor(compiler): convert scripts within packages/compiler to relative imports (#60625) 2025-04-01 11:57:53 +00:00
util_spec.ts refactor(compiler): remove unused code (#61668) 2025-05-26 12:21:09 +00:00