TanStack TanStack — CVE-2026-45321
TanStack contains an unspecified vulnerability that allowed malicious versions of the product to be published to the npm registry to publish credential-stealing malware under a trusted identity.
Required Action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Due Date: 2026-06-10
CVE-2026-45321 represents a critical supply chain attack vulnerability in TanStack where malicious versions containing credential-stealing malware were published to npm under a trusted identity. With a CVSS score of 9.8, this poses severe risk to any organization using TanStack dependencies. The absence of available patches and confirmed exploit activity necessitates immediate inventory and mitigation actions across all affected systems.
IMMEDIATE ACTIONS:
1. Conduct urgent inventory of all npm dependencies to identify TanStack usage across development and production environments
2. Review npm audit logs and package-lock.json files for suspicious TanStack versions published between vulnerability discovery and current date
3. Isolate affected systems from production networks if TanStack malware versions are confirmed installed
4. Revoke all credentials (API keys, tokens, database passwords) that may have been exposed through compromised TanStack installations
5. Implement network monitoring for outbound connections from systems with TanStack to detect credential exfiltration
PATCHING GUIDANCE:
6. Monitor TanStack official GitHub repository and npm registry for security patches; apply immediately upon availability
7. Until patches available, remove TanStack dependencies or replace with verified alternative libraries
8. If discontinuation not feasible, implement strict npm package verification: use npm ci with locked versions, enable npm audit, implement package signature verification
COMPENSATING CONTROLS:
9. Deploy endpoint detection and response (EDR) solutions to detect credential-stealing malware behavior
10. Implement secrets management solutions (HashiCorp Vault, AWS Secrets Manager) to limit credential exposure
11. Enable multi-factor authentication (MFA) on all critical systems and accounts
12. Deploy network segmentation to limit lateral movement from compromised development systems
DETECTION RULES:
13. Monitor npm registry for TanStack package versions with unusual publication dates or metadata anomalies
14. Alert on outbound HTTPS connections from development systems to unknown C2 infrastructure
15. Monitor for suspicious process execution from node_modules directories
16. Track credential usage anomalies (failed logins, unusual access patterns, geographic impossibilities)
الإجراءات الفورية:
1. إجراء جرد عاجل لجميع تبعيات npm لتحديد استخدام TanStack عبر بيئات التطوير والإنتاج
2. مراجعة سجلات npm والملفات package-lock.json للبحث عن نسخ TanStack المريبة المنشورة
3. عزل الأنظمة المتأثرة عن شبكات الإنتاج إذا تم تأكيد تثبيت نسخ ضارة من TanStack
4. إلغاء جميع بيانات الاعتماد (مفاتيح API، الرموز، كلمات مرور قواعد البيانات) التي قد تكون معرضة للخطر
5. تنفيذ مراقبة الشبكة للاتصالات الصادرة من الأنظمة المصابة للكشف عن سرقة البيانات
توجيهات التصحيح:
6. مراقبة مستودع TanStack الرسمي وسجل npm للتصحيحات الأمنية وتطبيقها فوراً
7. في حالة عدم توفر التصحيحات، إزالة تبعيات TanStack أو استبدالها بمكتبات بديلة موثوقة
8. إذا لم يكن الإيقاف ممكناً، تنفيذ التحقق الصارم من حزم npm: استخدام npm ci مع نسخ مقفلة
الضوابط التعويضية:
9. نشر حلول الكشف والاستجابة على نقاط النهاية (EDR) للكشف عن سلوك سرقة البيانات
10. تنفيذ حلول إدارة الأسرار لتقليل تعريض بيانات الاعتماد
11. تفعيل المصادقة متعددة العوامل (MFA) على جميع الأنظمة والحسابات الحرجة
12. نشر تقسيم الشبكة لتحديد الحركة الجانبية من الأنظمة المصابة
قواعد الكشف:
13. مراقبة سجل npm لنسخ TanStack ذات تواريخ نشر غير عادية
14. التنبيه على الاتصالات الصادرة من الأنظمة الإنمائية إلى البنية الأساسية المجهولة
15. مراقبة تنفيذ العمليات المريبة من دلائل node_modules
16. تتبع شذوذ استخدام بيانات الاعتماد