T09 · Insecure Skill Coding Practices
- Location
generate.py:82- Finding
Unescaped User Input Enables Active HTML Injection in the Screenshot Browser
- Content
View full analysis
""" label_els += f'{lbl}' value_els += f'{val}' svg_w = 48 + len(values) * (bar_w + 12) unit_label = f'{unit}' if unit else "" return f""" {css_base(dark, width, height)}{title}{unit_label} {bars_svg} {label_els} {value_els}""" ``` The same unsafe interpolation pattern is used for line-chart labels and units, donut labels and colors, progress labels and colors, stat-card fields, and horizontal-bar fields. ...[truncated 2254 chars]- Remediation
View remediation
