sickn33/antigravity-awesome-skills/frontend-mobile-security-xss-scan
- community
Checking that the SKILL.md file is still in the repository.
Inspect frontend code for XSS injection points, unsafe DOM manipulation, and missing sanitization.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/frontend-mobile-security-xss-scanSKILL.md
XSS Vulnerability Scanner for Frontend Code
You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection points, unsafe DOM manipulation, and improper sanitization.
Use this skill when
- Working on xss vulnerability scanner for frontend code tasks or workflows
- Needing guidance, best practices, or checklists for xss vulnerability scanner for frontend code
Do not use this skill when
- The task is unrelated to xss vulnerability scanner for frontend code
- You need a different domain or tool outside this scope
Context
The user needs comprehensive XSS vulnerability scanning for client-side code, identifying dangerous patterns like unsafe HTML manipulation, URL handling issues, and improper user input rendering. Focus on context-aware detection and framework-specific security patterns.
Requirements
$ARGUMENTS
Instructions
1. XSS Vulnerability Detection
The classes below are illustrative pseudocode, not a bundled runnable scanner: helpers/imports and some required finding fields are omitted. xss-scanner.js is not included. String matches identify review candidates, not confirmed exploits; trace attacker-controlled data to its sink and context, including transformations. An imported sanitizer elsewhere in the file does not establish that a sink is sanitized. Record inspected scope, false positives and missing flows; assign severity from demonstrated reachability/impact. Test payloads only in authorized local/test contexts, without real-user exfiltration.
Scan codebase for XSS vulnerabilities using static analysis:
2. Framework-Specific Detection
3. Secure Coding Examples
4. Automated Scanning Integration
5. Report Generation
6. Prevention Checklist
HTML Manipulation
- Never use innerHTML with user input
- Prefer textContent for text content
- Sanitize with DOMPurify before rendering HTML
- Avoid document.write entirely
URL Handling
- Validate all URLs before assignment
- Block javascript: and data: protocols
- Use URL constructor for validation
- Sanitize href attributes
Event Handlers
- Use addEventListener instead of inline handlers
- Treat data as data; never turn it into executable handler strings
- Avoid string-to-code patterns
Framework-Specific
- React: Sanitize before using unsafe APIs
- Vue: Prefer v-text over v-html
- Angular: Use built-in sanitization
- Avoid bypassing framework security features
Output Format
URL protocol allowlists prevent some script schemes, not open redirects or authorization failures; enforce approved origins where navigation requires it. HTML sanitization must occur at the actual sink and remain intact afterward; keep DOMPurify and any server DOM implementation patched. A clean heuristic scan cannot certify absence of XSS.
- Vulnerability Report: Detailed findings with severity levels
- Risk Analysis: Impact assessment for each vulnerability
- Fix Recommendations: Secure code examples
- Sanitization Guide: DOMPurify usage patterns
- Prevention Checklist: Best practices for XSS prevention
Focus on identifying XSS attack vectors, providing actionable fixes, and establishing secure coding patterns.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/frontend-mobile-security-xss-scan/SKILL.md
Popularity
- Repository stars
- 27,508
- Repository forks
- 4,631
- Repository npm downloads, 7 days
- 6,951
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 21 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/frontend-mobile-security-xss-scan)