OpenHarness before commit bd4df81 contains a server-side request forgery vulnerability in the web_fetch and web_search tools that allows attackers to access private and localhost HTTP services by manipulating tool parameters without proper validation of target addresses. Attackers can influence an agent session to invoke these tools against loopback, RFC1918, link-local, or other non-public addresses to read response bodies from local development services, cloud metadata endpoints, admin panels, or other private HTTP services reachable from the victim host.
CVE-2026-40516 is a server-side request forgery (SSRF) vulnerability in OpenHarness affecting web_fetch and web_search tools, allowing attackers to access private and localhost services by manipulating tool parameters. With a CVSS score of 8.3, this vulnerability poses significant risk to organizations using OpenHarness for AI agent operations, particularly those with sensitive internal services. The lack of input validation enables attackers to read responses from cloud metadata endpoints, admin panels, and development services, potentially exposing credentials and sensitive data.
IMMEDIATE ACTIONS:
1. Audit all OpenHarness deployments to identify instances using web_fetch and web_search tools
2. Implement network segmentation to restrict outbound connections from OpenHarness instances to only approved external services
3. Disable web_fetch and web_search tools until patching is available
4. Review agent session logs for suspicious tool invocations targeting localhost (127.0.0.1), RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), or link-local addresses (169.254.0.0/16)
COMPENSATING CONTROLS:
1. Implement strict input validation and allowlisting for tool parameters—only permit explicitly approved target domains/IPs
2. Deploy Web Application Firewall (WAF) rules to block requests to private IP ranges and localhost
3. Use egress filtering at network boundary to prevent connections to RFC1918 and loopback addresses
4. Implement API gateway with URL validation before forwarding to OpenHarness
5. Monitor and alert on any tool invocations with suspicious parameters (localhost, 169.254.*, 10.*, 172.16-31.*, 192.168.*)
DETECTION RULES:
1. Alert on web_fetch/web_search tool calls with target parameters matching: ^(127\.|localhost|169\.254\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.)
2. Monitor for unusual response sizes or error patterns from tool invocations
3. Track failed connection attempts to internal services from OpenHarness processes
4. Correlate tool invocations with subsequent access to sensitive internal systems
PATCHING GUIDANCE:
1. Monitor OpenHarness GitHub repository for commit bd4df81 or later releases
2. Establish testing environment to validate patches before production deployment
3. Plan phased rollout of patches across all OpenHarness instances
الإجراءات الفورية:
1. تدقيق جميع نشرات OpenHarness لتحديد الحالات التي تستخدم أدوات web_fetch و web_search
2. تنفيذ تقسيم الشبكة لتقييد الاتصالات الصادرة من حالات OpenHarness إلى الخدمات الخارجية المعتمدة فقط
3. تعطيل أدوات web_fetch و web_search حتى يتوفر التصحيح
4. مراجعة سجلات جلسة الوكيل للاستدعاءات المريبة للأداة التي تستهدف localhost (127.0.0.1) أو نطاقات RFC1918 أو عناوين الارتباط المحلي
الضوابط التعويضية:
1. تنفيذ التحقق الصارم من المدخلات والقائمة البيضاء لمعاملات الأداة
2. نشر قواعد جدار حماية تطبيقات الويب لحظر الطلبات إلى نطاقات IP الخاصة
3. استخدام تصفية الخروج على حدود الشبكة
4. تنفيذ بوابة API مع التحقق من صحة URL
5. مراقبة والتنبيه على استدعاءات الأداة المريبة
قواعد الكشف:
1. التنبيه على استدعاءات web_fetch/web_search بمعاملات الهدف المطابقة للأنماط الخاصة
2. مراقبة أحجام الاستجابة غير العادية
3. تتبع محاولات الاتصال الفاشلة بالخدمات الداخلية
4. ربط استدعاءات الأداة بالوصول اللاحق إلى الأنظمة الداخلية الحساسة
إرشادات التصحيح:
1. مراقبة مستودع OpenHarness GitHub للحصول على الإصدارات اللاحقة
2. إنشاء بيئة اختبار للتحقق من الرقع
3. التخطيط لنشر متدرج للرقع عبر جميع الحالات