Fix Critical XSS Vulnerability ({@html} without sanitization)
#1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Where:
src/routes/akti/[aktiId]/+page.svelteWhy: Rendering user input via
{@html data.akti.body}without sanitization allows malicious scripts to be injected.Fix: Use the already installed
sanitize-htmllibrary on the server to sanitizechangeRequest.bodybefore updating/inserting into the database.