# hunt-xss

hunt-xss — a skill for Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, and Windsurf that teaches the agent to find XSS vulnerabilities — DOM-based, stored, reflected, mXSS, and newer variants.

- skill · `type=skill` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1298 repo stars
- Author: H-mmer
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/cursor/.cursor/skills/pentest-agents-hunt-xss/SKILL.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/h-mmer-hunt-xss

## What it does

Once installed, the agent gains structured knowledge across six target classes: DOMPurify mXSS bypasses (CVE-2024-47875, CVE-2024-45801, GHSA-h8r8-wccr-v5f2), OAuth `redirect_uri` and `returnTo` flaws (CVE-2025-67716 in Auth0 Next.js SDK before 4.13.0), stored XSS chains that reach admin account takeover (GHSA-jmr4-p576-v565, CVSS 8.0), postMessage handlers with broken origin checks, markdown renderer injections (CVE-2024-21535 in `markdown-to-jsx` before 7.4.0), and RSC payload injections (CVE-2025-67779, CVE-2025-55184).

The knowledge base covers specific researcher techniques: @kinugawamasato's deep-nesting mXSS variant that triggers across Firefox, Chromium, and Safari together; @hash_kitten's full bypass without nesting; @ryotkak's XML-based bypass. Sources include HackerOne, Intigriti, Bugcrowd, Huntr, GitHub Security Advisories, and Cure53 advisories.

Code using `react-server-dom-webpack` with React 19.0.0–19.2.0 (before the 19.0.2/19.1.3/19.2.2 patches) is a priority surface the skill targets first. Node.js is required; install via `npx skills add`.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill hunt-xss -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pentest-agents-hunt-xss/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pentest-agents-hunt-xss/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill hunt-xss -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pentest-agents-hunt-xss/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill hunt-xss -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pentest-agents-hunt-xss/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/pentest-agents-hunt-xss
```

2. **Manually: put the files in place**
- File: `.github/skills/pentest-agents-hunt-xss/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill hunt-xss -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/pentest-agents-hunt-xss
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pentest-agents-hunt-xss/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/cursor/.cursor/skills/pentest-agents-hunt-xss/SKILL.md

## When to use it
- find DOMPurify nesting or re-contextualization bypasses in library consumers
- audit an OAuth flow for reflected XSS via `redirect_uri`, `returnTo`, or `state` parameters
- trace a stored XSS path from low-privilege content to an admin session
- detect postMessage handlers where origin is checked with `.includes()` instead of strict equality
- check a markdown renderer or RSC payload for injection through `dangerouslySetInnerHTML`

## Example prompts
- Check this component for mXSS via DOMPurify re-contextualization
- Find every `addEventListener('message', ...)` in the codebase and test the origin check for bypass
- Audit the OAuth flow for XSS through the `returnTo` parameter using the CVE-2025-67716 pattern

## Similar
- [xss-prevention](https://affpapa.org/en/nevibecode/skills/xss-prevention.md) — skill · 320 installs
- [testing-for-xss-vulnerabilities-with-burpsuite](https://affpapa.org/en/nevibecode/skills/testing-for-xss-vulnerabilities-with-burpsuite.md) — skill · 333 installs
- [xss-html-injection](https://affpapa.org/en/nevibecode/skills/xss-html-injection.md) — skill · ★ 4719 repo stars
- [xss-cross-site-scripting](https://affpapa.org/en/nevibecode/skills/xss-cross-site-scripting.md) — skill · 4300 installs
- [hunt-dom](https://affpapa.org/en/nevibecode/skills/hunt-dom.md) — skill · ★ 16193 repo stars
- [hunt-clickjacking](https://affpapa.org/en/nevibecode/skills/hunt-clickjacking.md) — skill · ★ 16193 repo stars

## Other versions with the same name
- [hunt-xss · elementalsouls](https://affpapa.org/en/nevibecode/skills/hunt-xss.md) — ★ 16193 repo stars

From the same set: [h-mmer/pentest-agents](https://affpapa.org/en/nevibecode/by/h-mmer/pentest-agents.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
