openwebf-security-xss-sanitization
Review and mitigate XSS risks in WebF apps (sanitize HTML, validate input, avoid unsafe string rendering). Use when the user mentions XSS, sanitize HTML, innerHTML-like rendering, user-generated HTML, or “untrusted input”.
When & Why to Use This Skill
This Claude skill is a specialized security assistant designed to identify and mitigate Cross-Site Scripting (XSS) vulnerabilities within WebF applications. It streamlines the code review process by detecting unsafe HTML rendering patterns, validating untrusted inputs, and providing framework-specific sanitization recommendations to ensure robust web application security.
Use Cases
- Code Review for XSS Vulnerabilities: Automatically scan WebF source code to identify risky patterns like unsafe innerHTML-like rendering or direct string interpolation of untrusted data.
- Sanitizing User-Generated Content (UGC): Provide concrete strategies and code snippets for cleaning and escaping HTML content submitted by users before it is rendered in the UI.
- Input Validation Hardening: Analyze the handling of query parameters and remote API responses to ensure all external data sources are properly validated against security policies.
- Security Documentation Integration: Use the built-in WebF documentation tools to fetch and apply the latest best practices for 'Preventing XSS' and 'Input Sanitization' directly to the project context.
| name | openwebf-security-xss-sanitization |
|---|---|
| description | Review and mitigate XSS risks in WebF apps (sanitize HTML, validate input, avoid unsafe string rendering). Use when the user mentions XSS, sanitize HTML, innerHTML-like rendering, user-generated HTML, or “untrusted input”. |
| allowed-tools | Read, Grep, Glob, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__docs_related |
OpenWebF Security: XSS & Input Sanitization
Instructions
- Identify sources of untrusted input (UGC, remote content, query params).
- Look for unsafe HTML string rendering patterns and missing sanitization.
- Recommend explicit sanitization and input validation strategies.
- Use MCP docs (“Security > Prevent XSS / Sanitize HTML / Validate Input”) to anchor recommendations.
- Provide fixes as minimal, concrete suggestions; do not modify files by default.
More: