Koha-clms/koha-tmpl
Martin Renvoize 3320978bba
Bug 42471: (follow-up) prevent XSS in suggestion status
The custom/authorized-value status branch concatenated row.status
directly into a class="..." attribute string. escape_str() only
escapes &, <, > (not quotes), so a status code containing a double
quote could still break out of the attribute.

Build the status <span> via DOM APIs instead, the same way the
reason field was fixed: fixed statuses get a hardcoded class, and
the free-form status code goes into a data-status attribute via
dataset, which the DOM escapes safely regardless of content.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
2026-07-30 08:54:46 +00:00
..
intranet-tmpl Bug 42471: (follow-up) prevent XSS in suggestion status 2026-07-30 08:54:46 +00:00
opac-tmpl Bug 42234: Add text to checkout history cover image table header 2026-07-29 16:02:24 +00:00