mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-06-09 03:44:57 +00:00
The Twig template ale.twig rendered the piggy bank name from AuditLogEntry.after.piggy using |raw, bypassing auto-escaping. A user-controlled name containing HTML (e.g. <img onerror=...>) would execute as JavaScript in any browser viewing the transaction audit log (CWE-79). Apply |e filter to escape only the user-controlled `name` parameter before substitution into the trans() string. The |raw filter is preserved because the `amount` parameter legitimately contains <span> tags for currency styling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>