xss-prevention

Pass

Audited by Gen Agent Trust Hub on Aug 26, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill serves as an educational resource for OWASP A07
  • Cross-Site Scripting (XSS) prevention. It contains no executable malicious code or suspicious instructions.
  • [SAFE]: Code snippets demonstrating vulnerabilities (e.g., innerHTML, dangerouslySetInnerHTML, eval) are correctly labeled as vulnerable and used for pedagogical purposes to contrast with secure implementations.
  • [SAFE]: The recommended secure implementations utilize standard security practices and libraries, such as HTML entity encoding, context-aware escaping, Content Security Policy (CSP) headers via the helmet middleware, and HTML sanitization using DOMPurify.
  • [SAFE]: External references to tools like xsstrike.py and libraries like dompurify, jsdom, and helmet are appropriate and well-known within the web security community.
  • [SAFE]: The skill promotes defense-in-depth strategies, including the use of HttpOnly cookies and framework-specific auto-escaping features.
Audit Metadata
Risk Level
SAFE
Analyzed
Aug 26, 2026, 12:25 AM
Security Audit — agent-trust-hub — xss-prevention