vuln-patterns-xss

Detect XSS vulnerabilities in Python web applications via vulnerable code patterns.

74|10|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/yhy0/ghsa-skill-builder --skill vuln-patterns-xss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vuln-patterns-xss
Source: https://github.com/yhy0/ghsa-skill-builder/tree/main/vuln-skills/skills/vuln-patterns-xss
Command: npx skills add https://github.com/yhy0/ghsa-skill-builder --skill vuln-patterns-xss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify Cross-Site Scripting (XSS) vulnerabilities in Python web applications, specifically targeting common patterns and pitfalls in HTML rendering and template engines.

Core Features & Use Cases

  • Pattern Matching: Detects XSS via specific vulnerable code patterns like mark_safe(), Jinja2 autoescaping issues, and direct innerHTML assignments.
  • Contextual Analysis: Provides guidance on identifying sources, sinks, and sanitization gaps relevant to XSS.
  • Use Case: When auditing a Django application, use this Skill to systematically check for instances where user input might be rendered unsafely into HTML templates, preventing potential script execution in users' browsers.

Quick Start

Use the vuln-patterns-xss skill to audit the provided Django codebase for potential XSS vulnerabilities.

Frequently Asked Questions about vuln-patterns-xss

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect Cross-Site Scripting vulnerabilities in a Python web application?

Detect Cross-Site Scripting (XSS) vulnerabilities in Python web applications by analyzing common vulnerable code patterns. This Skill identifies sources, sinks, and sanitization gaps specific to XSS across HTML rendering and template engines.

Does this tool check for XSS vulnerabilities in Django and Jinja2 templates?

Yes, it checks for XSS vulnerabilities in Django and Jinja2 templates by identifying specific vulnerable patterns. It targets unsafe HTML rendering mechanisms like the mark_safe() function and Jinja2 autoescaping issues.

How does CWE-79 vulnerability detection work for frontend assignments in Python?

CWE-79 vulnerability detection for frontend assignments works by scanning Python code for direct unsafe DOM manipulations. It identifies specific sinks like direct innerHTML assignments where untrusted user input might be rendered without proper sanitization.

What is the best way to audit a codebase for unsafe HTML rendering and sanitization gaps?

The best way to audit a codebase for unsafe HTML rendering is to use pattern matching against known vulnerable code structures. This Skill systematically checks for instances where user input reaches HTML sinks without sanitization, preventing script execution.

Can I use this to find Mako template XSS issues alongside Django?

Yes, you can find Mako template XSS issues alongside Django. The Skill analyzes common vulnerable code patterns across multiple Python template engines, including Jinja2, Mako, and Django, to identify contextual sanitization gaps.

Why does my Jinja2 autoescaping configuration still trigger an XSS warning?

Jinja2 autoescaping might trigger an XSS warning if the code explicitly bypasses it or uses direct frontend assignments. The Skill identifies contextual sanitization gaps where user input reaches HTML rendering sinks despite configured template engine protections.