The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-2654

CVE-2026-2654: Huggingface Smolagents SSRF Vulnerability

CVE-2026-2654 is a server-side request forgery flaw in Huggingface Smolagents 1.24.0 affecting the LocalPythonExecutor component. Attackers can exploit this remotely to manipulate server requests. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: February 20, 2026

CVE-2026-2654 Overview

A Server-Side Request Forgery (SSRF) vulnerability has been identified in HuggingFace SmolAgents version 1.24.0. The vulnerability affects the requests.get and requests.post functions within the LocalPythonExecutor component. Remote attackers can manipulate requests to perform unauthorized server-side requests, potentially accessing internal services, exfiltrating data, or pivoting to other network resources. The exploit has been made publicly available, increasing the risk of active exploitation in the wild.

Critical Impact

Remote attackers can exploit this SSRF vulnerability to make arbitrary HTTP requests from the vulnerable server, potentially accessing internal services, cloud metadata endpoints, or other protected resources not directly accessible from external networks.

Affected Products

  • HuggingFace SmolAgents 1.24.0
  • Applications using LocalPythonExecutor component with requests.get/requests.post functions
  • Systems running SmolAgents without proper network segmentation

Discovery Timeline

  • 2026-02-18 - CVE CVE-2026-2654 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2026-2654

Vulnerability Analysis

This vulnerability is classified as CWE-918 (Server-Side Request Forgery). The SSRF weakness exists within the LocalPythonExecutor component of HuggingFace SmolAgents, specifically in how the requests.get and requests.post functions handle user-controlled input.

When the LocalPythonExecutor processes agent commands that involve HTTP requests, it fails to properly validate and restrict the destination URLs. This allows an attacker to craft malicious inputs that force the server to make requests to arbitrary endpoints, including internal network resources, cloud provider metadata services (such as http://169.254.169.254/), or other sensitive infrastructure.

The vulnerability can be exploited remotely, requiring only low privileges to initiate the attack. According to public disclosure reports, the vendor was contacted about this vulnerability but did not respond, leaving users without an official patch.

Root Cause

The root cause lies in insufficient input validation and URL sanitization within the LocalPythonExecutor component. The requests.get and requests.post functions do not implement proper allowlisting or blocklisting mechanisms to restrict which hosts and ports can be accessed. This design flaw allows attacker-controlled URLs to be passed directly to the HTTP request functions, enabling arbitrary server-side requests.

Attack Vector

The attack can be launched remotely over the network. An attacker with low-level access to the SmolAgents system can manipulate the target URL parameters processed by LocalPythonExecutor. By injecting malicious URLs pointing to internal services, metadata endpoints, or other sensitive targets, the attacker can leverage the server's network position to access resources that would otherwise be unreachable from external networks.

The vulnerability mechanism involves the following exploitation path: the attacker supplies a crafted URL through agent input that is processed by LocalPythonExecutor. When the executor calls requests.get or requests.post with the attacker-controlled URL, the server performs the HTTP request on behalf of the attacker, potentially returning sensitive data or triggering actions on internal systems. For technical details and proof-of-concept information, see the GitHub PoC Report.

Detection Methods for CVE-2026-2654

Indicators of Compromise

  • Unusual outbound HTTP requests from SmolAgents server to internal IP ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
  • HTTP requests targeting cloud metadata endpoints such as http://169.254.169.254/ or http://metadata.google.internal/
  • Anomalous request patterns in LocalPythonExecutor logs showing external URLs being processed
  • Network traffic to internal services that should not be accessible from the SmolAgents application

Detection Strategies

  • Implement network monitoring to detect HTTP requests from SmolAgents servers to internal network ranges or cloud metadata endpoints
  • Deploy web application firewalls (WAF) with SSRF detection rules to identify and block malicious URL patterns
  • Enable detailed logging for all requests.get and requests.post operations within the LocalPythonExecutor component
  • Configure SentinelOne Singularity to monitor for suspicious network behavior from Python-based AI agent applications

Monitoring Recommendations

  • Set up alerts for outbound connections from SmolAgents servers to RFC 1918 private IP addresses
  • Monitor DNS queries from SmolAgents infrastructure for internal hostname resolution attempts
  • Implement egress filtering logs and analyze traffic patterns for anomalous destinations
  • Review application logs for error messages indicating failed internal service connections

How to Mitigate CVE-2026-2654

Immediate Actions Required

  • Restrict network access from SmolAgents servers to only necessary external endpoints using firewall rules
  • Implement egress filtering to block access to internal IP ranges and cloud metadata endpoints from the application layer
  • Consider temporarily disabling or isolating the LocalPythonExecutor component if not critical to operations
  • Review and audit all URLs processed by the affected functions for signs of exploitation

Patch Information

At the time of publication, no official patch is available from the vendor. According to the vulnerability disclosure, the vendor was contacted but did not respond. Users should monitor the HuggingFace SmolAgents repository and official channels for security updates. Additional technical details are available via VulDB #346451.

Workarounds

  • Implement a URL allowlist at the application level to restrict LocalPythonExecutor to approved external domains only
  • Deploy a forward proxy that validates and filters all outbound HTTP requests from SmolAgents
  • Use network segmentation to isolate SmolAgents servers from sensitive internal resources
  • Apply cloud provider metadata endpoint blocking (e.g., AWS IMDSv2 enforcement) to prevent credential theft
bash
# Example: Block access to common SSRF targets using iptables
# Block cloud metadata endpoints
iptables -A OUTPUT -d 169.254.169.254 -j DROP
iptables -A OUTPUT -d 169.254.169.253 -j DROP

# Block common internal ranges from SmolAgents server
iptables -A OUTPUT -d 10.0.0.0/8 -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -j DROP

# Note: Adjust rules based on your environment's legitimate internal access needs

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechHuggingface

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-918
  • Technical References
  • GitHub PoC Report

  • GitHub Project Repository

  • VulDB #346451 (CTI)

  • VulDB #346451

  • VulDB Submission #752774
  • Related CVEs
  • CVE-2026-4963: Huggingface Smolagents RCE Vulnerability

  • CVE-2026-0599: Hugging Face Text Generation DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English