eval() call detected
High
- Category
- Dangerous Code Execution
- Content
def load_data(s): try: return json.loads(s) except: try: return eval(s) except: return {} def get_cols(s):- Confidence
- 99% confidence
- Finding
- try: return eval(s)
Security checks across malware telemetry and agentic risk
This is a useful local Excel tool, but it includes an unsafe data parser that can execute Python code from crafted command input.
Review or patch scripts/excel.py before installing: remove the eval() fallback and accept only strict JSON or safe literal parsing with validation. Use copies of important spreadsheets, avoid untrusted --data values, and check output paths because some commands modify the original workbook.
def load_data(s):
try: return json.loads(s)
except:
try: return eval(s)
except: return {}
def get_cols(s):def ld(s):
try: return json.loads(s)
except:
try: return eval(s)
except: return {}
def gc(s):65/65 vendors flagged this skill as clean.