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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-31317

CVE-2026-31317: Craftql SSRF Vulnerability

CVE-2026-31317 is a Server-Side Request Forgery flaw in Craftql v1.3.7 and earlier that enables attackers to execute arbitrary code. This article covers technical details, affected versions, security impact, and mitigation.

Published: April 23, 2026

CVE-2026-31317 Overview

CVE-2026-31317 is a Server-Side Request Forgery (SSRF) vulnerability affecting CraftQL version 1.3.7 and earlier. This vulnerability exists within the vendor/markhuot/craftql/src/Listeners/GetAssetsFieldSchema.php file and allows an attacker to execute arbitrary code by exploiting improper input validation in the GraphQL API layer. CraftQL is a popular GraphQL plugin for the Craft CMS platform, making this vulnerability particularly concerning for organizations using this content management system.

Critical Impact

Attackers can leverage this SSRF vulnerability to make arbitrary server-side requests, potentially accessing internal services, cloud metadata endpoints, or executing arbitrary code on vulnerable CraftQL installations.

Affected Products

  • CraftQL v1.3.7 and earlier versions
  • Craft CMS installations using vulnerable CraftQL plugin versions
  • GraphQL endpoints exposed through CraftQL

Discovery Timeline

  • 2026-04-17 - CVE CVE-2026-31317 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-31317

Vulnerability Analysis

This SSRF vulnerability resides in the GetAssetsFieldSchema.php listener component of CraftQL. The flaw stems from insufficient validation of user-supplied URLs or resource identifiers within the asset handling functionality of the GraphQL schema. When processing asset-related queries, the vulnerable code fails to properly sanitize or restrict outbound requests, enabling attackers to craft malicious GraphQL queries that force the server to make requests to arbitrary destinations.

The vulnerability is network-accessible without requiring authentication or user interaction, meaning attackers can exploit it remotely against any exposed CraftQL endpoint. The primary impact is confidentiality breach, as attackers can use the SSRF to exfiltrate sensitive data from internal network resources, cloud infrastructure metadata services (such as AWS IMDSv1 endpoints), or other services accessible from the vulnerable server.

Root Cause

The root cause of CVE-2026-31317 is improper input validation (CWE-918: Server-Side Request Forgery) within the GetAssetsFieldSchema.php file. The asset field schema listener accepts user-controlled input that is subsequently used to construct server-side HTTP requests without adequate validation of the destination URL. This allows attackers to specify arbitrary URLs, including internal IP addresses, localhost services, and cloud metadata endpoints that should not be accessible from external requests.

Attack Vector

The attack vector is network-based, exploiting the GraphQL API endpoint exposed by CraftQL. An attacker can craft a malicious GraphQL query targeting the assets field functionality, supplying a URL pointing to internal services or sensitive metadata endpoints. When the vulnerable server processes this query, it makes the attacker-specified request from its own network context, bypassing firewall restrictions and accessing resources that would otherwise be inaccessible from the external network.

The exploitation flow typically involves:

  1. Identifying a CraftQL endpoint on the target Craft CMS installation
  2. Crafting a GraphQL query that targets the vulnerable asset handling functionality
  3. Specifying a malicious URL pointing to internal services or cloud metadata endpoints
  4. Extracting the response data returned by the server-side request

Technical details and proof-of-concept information are available in the SSRF exploit repository and the detailed README documentation.

Detection Methods for CVE-2026-31317

Indicators of Compromise

  • Unusual GraphQL queries targeting asset fields with external or internal IP addresses as parameters
  • Server-side requests to cloud metadata endpoints (e.g., 169.254.169.254) originating from the web server
  • Abnormal outbound network traffic from CraftQL application servers to internal services
  • GraphQL query logs showing URL manipulation attempts in asset-related operations

Detection Strategies

  • Implement GraphQL query logging and monitor for suspicious patterns in asset field queries
  • Deploy network monitoring to detect server-side requests to internal IP ranges or cloud metadata services
  • Configure Web Application Firewall (WAF) rules to detect SSRF patterns in GraphQL payloads
  • Use SentinelOne Singularity to monitor for anomalous network behavior from web application processes

Monitoring Recommendations

  • Enable detailed logging for all GraphQL API endpoints and audit asset-related queries
  • Monitor outbound connections from web servers for requests to RFC 1918 private IP addresses
  • Configure alerts for any access attempts to cloud provider metadata endpoints
  • Review CraftQL logs for unusual URL patterns or encoding attempts in query parameters

How to Mitigate CVE-2026-31317

Immediate Actions Required

  • Upgrade CraftQL to the latest version that addresses this vulnerability
  • Restrict network egress from web servers to only necessary external destinations
  • Implement URL allowlisting for any asset fetching functionality
  • Disable or restrict access to GraphQL endpoints if not required for public access

Patch Information

Organizations should check the CraftQL GitHub repository for updated versions that address this SSRF vulnerability. Until a patch is applied, organizations should implement network-level controls to limit the impact of potential exploitation.

Workarounds

  • Implement strict URL validation and allowlisting at the application or WAF level for asset requests
  • Block outbound connections from web servers to internal IP ranges and cloud metadata endpoints using firewall rules
  • Place CraftQL servers in a network segment with limited access to sensitive internal resources
  • Consider temporarily disabling the vulnerable asset functionality if not critical to operations
  • Use cloud provider IMDS v2 (token-based) if running on AWS to prevent metadata access via SSRF
bash
# Example firewall rules to block common SSRF targets
# Block access to cloud metadata endpoints
iptables -A OUTPUT -d 169.254.169.254 -j DROP

# Block access to internal RFC 1918 ranges from web 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

# Allow only necessary outbound connections
iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechCraftql

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub CraftQL Repository

  • GitHub SSRF Exploit Repository

  • GitHub SSRF Detailed README
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
Default Legacy - Prefooter | 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