Tainted flow: 'EMOTIONS_FILE' from os.environ.get (line 24, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def append_entry(entry: dict) -> None: """Append a single entry to the JSONL file.""" EMOTIONS_FILE.parent.mkdir(parents=True, exist_ok=True) with open(EMOTIONS_FILE, "a", encoding="utf-8") as f: f.write(json.dumps(entry) + "\n")- Confidence
- 89% confidence
- Finding
- with open(EMOTIONS_FILE, "a", encoding="utf-8") as f:
