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, and mitigation.

Updated: May 14, 2026

CVE-2026-31317 Overview

CVE-2026-31317 is a Server-Side Request Forgery (SSRF) vulnerability affecting CraftQL versions 1.3.7 and earlier. CraftQL is a GraphQL plugin for the Craft CMS platform, developed by Mark Huot. The flaw resides in the vendor/markhuot/craftql/src/Listeners/GetAssetsFieldSchema.php file, which fails to validate user-supplied URLs before issuing server-side HTTP requests. Attackers can abuse this behavior to force the server to fetch arbitrary resources, including internal network endpoints. The issue is tracked under CWE-918: Server-Side Request Forgery.

Critical Impact

Unauthenticated network-based exploitation allows attackers to coerce the vulnerable server into making outbound requests to attacker-chosen destinations, exposing internal services and confidential data.

Affected Products

  • CraftQL plugin version 1.3.7
  • CraftQL plugin versions prior to 1.3.7
  • Craft CMS installations that load the markhuot/craftql package

Discovery Timeline

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

Technical Details for CVE-2026-31317

Vulnerability Analysis

The vulnerability resides in the GetAssetsFieldSchema.php listener within the CraftQL plugin. The listener processes asset field schema requests and issues HTTP requests using URL parameters that originate from client input. The plugin does not enforce allow-list validation, scheme restrictions, or destination filtering on these URLs.

Because CraftQL exposes GraphQL endpoints, an unauthenticated attacker can submit crafted queries that cause the server to fetch arbitrary URLs. The advisory describes downstream code execution risk, indicating the SSRF primitive can be chained with internal services that accept attacker-controlled payloads. The CWE classification confirms this as CWE-918.

Root Cause

The root cause is missing URL validation in the asset schema listener. The component trusts request-supplied URLs and passes them directly to the HTTP client used for remote asset retrieval. There is no parsing of the URL scheme, no blocklist for loopback or link-local ranges, and no filtering of internal hostnames. As a result, the server-side request inherits the network position and trust of the Craft CMS host.

Attack Vector

The attack vector is the network. Exploitation requires no privileges and no user interaction. An attacker sends a GraphQL request to an exposed CraftQL endpoint with a URL parameter pointing to an internal address such as http://127.0.0.1, a cloud metadata endpoint such as http://169.254.169.254/latest/meta-data/, or any reachable internal service. The vulnerable listener performs the request and may return the response to the attacker, enabling reconnaissance of internal infrastructure, retrieval of cloud credentials, and pivoting to internal HTTP-based services.

The vulnerability mechanism is documented in the public proof-of-concept at GitHub SSRF Detailed README.

Detection Methods for CVE-2026-31317

Indicators of Compromise

  • Outbound HTTP requests originating from the Craft CMS PHP process to internal RFC1918 addresses or loopback interfaces.
  • GraphQL query logs referencing asset field schema operations with externally supplied URL parameters.
  • Access attempts from the web server to cloud instance metadata endpoints such as 169.254.169.254.
  • Unexpected DNS lookups from the CraftQL host for attacker-controlled domains used as SSRF callbacks.

Detection Strategies

  • Inspect web server and application logs for GraphQL POST requests targeting CraftQL endpoints with URL-shaped string arguments.
  • Correlate inbound GraphQL requests with outbound HTTP traffic from the PHP-FPM or web worker process within a short time window.
  • Deploy egress filtering alerts that flag application-server traffic to internal subnets, loopback, or metadata services.

Monitoring Recommendations

  • Enable verbose query logging on the GraphQL endpoint to capture full query bodies, including variables.
  • Forward web server, PHP error, and proxy logs to a centralized SIEM for correlation across request and egress events.
  • Track requests to the GetAssetsFieldSchema code path and alert on parameters containing URL schemes such as http://, file://, or gopher://.

How to Mitigate CVE-2026-31317

Immediate Actions Required

  • Upgrade the CraftQL plugin to a release later than 1.3.7 once a fixed version is published by the maintainer.
  • Restrict access to GraphQL endpoints to authenticated users and trusted networks while a patch is being evaluated.
  • Apply egress firewall rules that block the Craft CMS host from reaching internal subnets, loopback, and cloud metadata addresses.
  • Audit existing logs for prior exploitation attempts referencing asset field schema operations with URL parameters.

Patch Information

No vendor-confirmed patch is listed in the NVD record at the time of publication. Track the upstream project at the GitHub CraftQL Repository for fixed releases. Until a vendor patch is available, treat the plugin as exposed and apply compensating controls.

Workarounds

  • Disable the CraftQL plugin on production Craft CMS instances if GraphQL is not required.
  • Place the GraphQL endpoint behind a reverse proxy that strips or validates URL-typed parameters before forwarding requests.
  • Configure outbound proxy enforcement on the PHP runtime so that all HTTP requests pass through a filtering proxy with an allow-list of permitted destinations.
  • Apply Instance Metadata Service v2 (IMDSv2) requirements on AWS hosts to require session tokens for metadata access, raising the bar for SSRF-driven credential theft.
bash
# Example egress restriction using iptables to block SSRF targets
iptables -A OUTPUT -m owner --uid-owner www-data -d 127.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner www-data -d 169.254.0.0/16 -j REJECT
iptables -A OUTPUT -m owner --uid-owner www-data -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner www-data -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner www-data -d 192.168.0.0/16 -j REJECT

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-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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