ByteDance Deer-Flow versions prior to commit 5dbb362 contain a stored cross-site scripting vulnerability in the artifacts API that allows attackers to execute arbitrary scripts by uploading malicious HTML or script content as artifacts. Attackers can store malicious content that executes in the browser context when users view artifacts, leading to session compromise, credential theft, and arbitrary script execution.
CVE-2026-32859 is a stored XSS vulnerability in ByteDance Deer-Flow's artifacts API that allows attackers to inject malicious scripts through artifact uploads. When users view compromised artifacts, the scripts execute in their browser context, enabling session hijacking and credential theft. While currently unpatched and without public exploits, the vulnerability poses significant risk to organizations using Deer-Flow for collaborative workflows, particularly in government and enterprise environments.
Immediate Actions:
1. Audit all Deer-Flow instances for deployment scope and user access patterns
2. Restrict artifact upload permissions to trusted users only; disable public artifact uploads
3. Implement Content Security Policy (CSP) headers with strict script-src directives
4. Monitor artifact access logs for suspicious viewing patterns
Compensating Controls:
5. Deploy Web Application Firewall (WAF) rules to detect and block script injection patterns in artifact uploads
6. Implement input validation to sanitize HTML/script content before storage
7. Use iframe sandboxing for artifact preview functionality
8. Enable browser security features: X-Frame-Options, X-Content-Type-Options headers
Detection Rules:
9. Alert on artifact uploads containing <script>, javascript:, onerror=, onload= patterns
10. Monitor for unusual artifact access from different geographic locations or IP ranges
11. Track session anomalies following artifact viewing events
Patching:
12. Upgrade to commit 5dbb362 or later when available; test in non-production environment first
13. Maintain inventory of Deer-Flow versions across organization
الإجراءات الفورية:
1. تدقيق جميع حالات Deer-Flow لنطاق النشر وأنماط وصول المستخدمين
2. تقييد أذونات تحميل الآثار للمستخدمين الموثوقين فقط؛ تعطيل تحميل الآثار العامة
3. تنفيذ رؤوس سياسة أمان المحتوى (CSP) مع توجيهات script-src صارمة
4. مراقبة سجلات وصول الآثار للأنماط المريبة
الضوابط التعويضية:
5. نشر قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن أنماط حقن النصوص البرمجية وحجبها
6. تنفيذ التحقق من صحة المدخلات لتنظيف محتوى HTML/النصوص البرمجية قبل التخزين
7. استخدام عزل iframe لوظيفة معاينة الآثار
8. تفعيل ميزات أمان المتصفح: رؤوس X-Frame-Options و X-Content-Type-Options
قواعد الكشف:
9. تنبيهات عند تحميل آثار تحتوي على أنماط <script> أو javascript: أو onerror= أو onload=
10. مراقبة وصول الآثار غير العادي من مواقع جغرافية أو نطاقات IP مختلفة
11. تتبع شذوذ الجلسة بعد أحداث عرض الآثار
التصحيح:
12. الترقية إلى commit 5dbb362 أو إصدار أحدث عند توفره؛ اختبر في بيئة غير الإنتاج أولاً
13. الحفاظ على جرد إصدارات Deer-Flow عبر المنظمة