edu-chem-tutorial
Warn
Audited by Snyk on Aug 8, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (medium risk: 0.30). 运行时把
__TUTORIAL_DATA__(由scripts/generate.py注入到template/tutorial.html的const _DATA = __TUTORIAL_DATA__)中的外部“spec”字段(如steps[].body/points.items、steps[].sceneArgs)直接用于innerHTML渲染到侧栏,因此只要攻击者能提交/注入 spec(可通过把其写入该占位符生成 HTML 的同一工作流输入),就会把其自由文本送入浏览器端 LLM/脚本可读渲染路径。
Issues (1)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
Audit Metadata