quiz
Warn
Audited by Socket on Sep 17, 2026
1 alert found:
AnomalyAnomalymain.py
LOWAnomalyLOW
main.py
No clear malicious or supply-chain attack behavior is present. The code is intended to generate a self-contained interactive quiz, but it has a meaningful stored-XSS/code-injection risk because untrusted JSON fields are inserted into HTML and JavaScript without context-appropriate escaping. It also appears incomplete or syntactically malformed as supplied. Escape text for HTML contexts, safely serialize data for script contexts, validate the quiz schema, and avoid innerHTML for untrusted values.
Confidence: 97%Severity: 62%
Audit Metadata