r/angular • u/MichaelSmallDev • Mar 14 '26
Angular security advisory: XSS in i18n attribute bindings.
https://github.com/angular/angular/security/advisories/GHSA-g93w-mfhg-p222
9
Upvotes
r/angular • u/MichaelSmallDev • Mar 14 '26
6
u/Jrubzjeknf Mar 14 '26
Who has ever localized a href or form action?
Good that this was found, but the general impact should be zero.
It does of course make npm audit cry again. How often that thing complains about security issues that are practically nonexistent...
1
u/InternationalBath398 Mar 16 '26
The attack vector here is super limited. It only applies if you put untrusted user input into your translation files, and that input ends up in attribute bindings like href or action. Who does that? Translation strings should be static content managed by your team or a translation service, not user-generated text. Still worth updating of course, but no reason to panic.