- renderMarkdown: sanitize marked output with sanitize-html (allowed tags/attrs whitelist, http/https schemes only, strip on* attrs) — prevents stored XSS in posts/replies/signatures - schema: reports.post_id ON DELETE CASCADE → SET NULL (keep moderation history when a reported post is deleted); migration applied to prod DB