diff --git a/app/templates/templates/form_editor.html b/app/templates/templates/form_editor.html index b5cb336..e6448d1 100644 --- a/app/templates/templates/form_editor.html +++ b/app/templates/templates/form_editor.html @@ -385,12 +385,9 @@ - {# Schema data is stored in a data-attribute and parsed with JSON.parse() in JS. - This avoids using |safe which bypasses Jinja2 auto-escaping and could allow - stored XSS if the sanitiser ever lets a malicious value through. #} -
+ {# Schema is injected via a typed script tag — tojson escapes sequences + so this is safe. The JS init reads window.__FORM_SCHEMA__ directly. #} +