SpinTheMic
Pro

Interview practice question

Responding to an XSS vulnerability found in production

Frontend Engineering · Frontend System Design · Experienced

A security researcher reports a stored XSS vulnerability in your app's comment feature. How would you respond?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Reproduce and assess impact.
  • Hotfix: escape/sanitise output; clean stored payloads.
  • Rotate sessions/tokens if exploited.
  • Add CSP/Trusted Types defence in depth.
  • Root-cause review; tests; thank researcher.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics