T09 · Insecure Skill Coding Practices
- Location
scripts/formatter.py:601- Finding
Stored HTML and JavaScript Injection in Generated Documents
- Content
View full analysis
str: """Process inline Markdown formatting.""" text = re.sub( r'==(.+?)==', rf'\1', text ) text = re.sub( r'`([^`]+)`', r'\1', text ) text = re.sub( r'\*\*(.+?)\*\*', r'\1', text ) text = re.sub( r'\*(.+?)\*', r'\1', text ) text = re.sub( r'~~(.+?)~~', r'\1', text ) text = re.sub( r'\[(.+?)\]\((.+?)\)', r'\1', text ) return text ``` The resulting value is inserted directly into the output document: ```python elif line.strip(): html_pa ...[truncated 3812 chars]- Remediation
View remediation
` tags, SVG payloads, event handlers, quote-breaking image values, `javascript:` links, and encoded scheme variants. ]]>
