You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Server-mode search results interpolate recipe names into innerHTML unescaped #487
Found during review of #456. Pre-existing on main.
The inline search script in templates/base.html (server mode) renders results with ${recipe.path} and ${recipe.name} inside an innerHTML template literal without escaping. static/js/search.js (static mode) does escape via escapeHtml. A recipe name containing < breaks the row, and a name with markup is the stored-XSS shape if recipes are ever imported from the web.
Fix: reuse the same escaping helper in the inline script, or move server-mode rendering into search.js.
Activity
fix(web): escape recipe names in server-mode search results