Koha-clms/koha-tmpl
Jonathan Druart e36fc8948c
Bug 42800: Fix XSS in shelf list in the ERM module
const logged_in_user_lists = [% To.json(logged_in_user.virtualshelves.unblessed) | $raw %];

If you have a script tag in a list name the UI will be broken, and there
is potentially a XSS vulnerability

Test plan:
Create a new list with name="<script>alert("booh!");</script>"
Go to /cgi-bin/koha/erm/eholdings/local/titles/import
or any ERM views
=> Without this patch the UI is broken
=> With this patch applied it's not and the table is correctly populated
with the lists

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
2026-08-25 15:20:21 +00:00
..
intranet-tmpl Bug 42800: Fix XSS in shelf list in the ERM module 2026-08-25 15:20:21 +00:00
opac-tmpl Bug 42666: OPAC counterpart 2026-08-11 15:32:38 +00:00