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”.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 20, 2025

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.
nameopenwebf-security-xss-sanitization
descriptionReview 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-toolsRead, Grep, Glob, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__docs_related

OpenWebF Security: XSS & Input Sanitization

Instructions

  1. Identify sources of untrusted input (UGC, remote content, query params).
  2. Look for unsafe HTML string rendering patterns and missing sanitization.
  3. Recommend explicit sanitization and input validation strategies.
  4. Use MCP docs (“Security > Prevent XSS / Sanitize HTML / Validate Input”) to anchor recommendations.
  5. Provide fixes as minimal, concrete suggestions; do not modify files by default.

More: