CVE-2026-31317 Details
Description
Craftql v1.3.7 and before is vulnerable to Server-Side Request Forgery (SSRF) which allows an attacker to execute arbitrary code via the vendor/markhuot/craftql/src/Listeners/GetAssetsFieldSchema.php file
A Server-Side Request Forgery (SSRF) vulnerability has been identified in CraftQL versions through 1.3.7. This vulnerability allows attackers to execute arbitrary code by exploiting the handling of remote URLs in Asset field GraphQL mutations. The issue arises because CraftQL uses the 'file_get_contents()' function to fetch user-provided URLs without any validation, enabling access to local files, internal network resources, and cloud service metadata.
Users can disable the CraftQL plugin, restrict GraphQL API access to trusted IPs, revoke and regenerate GraphQL tokens with strict permissions, or monitor outbound traffic to detect and respond to potential exploitation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 17, 2026CISA-ADP
Assessed Apr 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/stormmmg/craftql_ssrf/blob/master/craftql-ssrf-en/README_detail.md | CISA-ADP | ExploitTechnical Analysis |
| https://github.com/markhuot/craftql | [email protected] | ProductVendor |
| https://github.com/stormmmg/craftql_ssrf/ | [email protected] | Exploit |
| https://github.com/stormmmg/craftql_ssrf/blob/master/craftql-ssrf-en/README_detail.md | [email protected] | ExploitTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| markhuot craftql | All versions |
CPE
Remediation
| |
| Craft CMS | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | CVE Modified | CISA-ADP |
| Apr 17, 2026 | New CVE Received | [email protected] |
Volerion