matechat-vue
Audited by Socket on Sep 15, 2026
3 alerts found:
Anomalyx3The fragment does not show clear malicious or supply-chain attack behavior. It is documentation/demo code, but it contains two significant browser-side security hazards: dynamic execution of Markdown code blocks through new Function and raw HTML rendering through v-html/html:true. These become exploitable if content or codeBlockData is attacker-controlled and sanitizer guarantees are insufficient. The external CDN and PlantUML server introduce third-party trust and potential data-disclosure considerations. Review or remove dynamic evaluation, use strict parsing/validation for chart configuration, sanitize Markdown output, and pin external scripts with integrity or bundle trusted dependencies.
代码是用于前端调用大模型 API 的普通示例,未显示恶意软件或供应链攻击行为。主要安全风险是启用 dangerouslyAllowBrowser 并将 APIKey 放在浏览器端,可能导致凭证泄露和账户滥用;生产环境应使用后端代理、短期令牌或其他密钥隔离方案,并验证 baseURL。
该片段是调用 DeepSeek 兼容 API 的正常示例,未发现恶意代码、数据窃取、持久化、命令执行或可疑网络目标。主要安全风险是明确启用浏览器端 API 调用,使 DeepSeek API key 容易泄露并可能被滥用;生产环境应通过服务端代理保存密钥,并增加访问控制、限流、错误处理和隐私评估。