T09 · Insecure Skill Coding Practices
- Location
scripts/main.py:374- Finding
Spreadsheet Formula Injection in Generated CSV Reports
- Content
View full analysis
- Remediation
View remediation
str: text = "" if value is None else str(value) effective = text.lstrip(" \t\r\n") if effective.startswith(("=", "+", "-", "@")): return "'" + text return text ``` Apply this helper to every scalar cell immediately before calling `writer.writerow()`. ]]>
