Skip to main content

Reflected XSS into a JavaScript string with single quote and backslash escaped

$ tldr PortSwigger · Cross-Site Scripting (XSS)

Solve the lab

Resources by skill

Cross-Site Scripting (XSS)

Comments & tips

Solved this lab a different way? Share it here — comments live in GitHub Discussions.
Last updated: 2026-06-07