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
helmetmiddleware, and HTML sanitization usingDOMPurify. - [SAFE]: External references to tools like
xsstrike.pyand libraries likedompurify,jsdom, andhelmetare 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