CVE-2026-31317 Craftql vulnerable to Server-Side Request Forgery

High 7.5 Published Updated

An attacker can exploit SSRF in the Craftql plugin to execute arbitrary code on the server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-31317?

CVE-2026-31317 is a high-severity server-side request forgery vulnerability in n/a, published on 17 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Weakness: CWE-918

Which versions are affected by CVE-2026-31317?

2 open source packages ship an affected version, including markhuot/craftql.

PackageAffectedFixed in
markhuot/craftql PackagistAll versions to 1.3.7None
markhuot/craftql PackagistAll versions to 1.3.7None

How do I fix CVE-2026-31317?

No fix has been published for CVE-2026-31317 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-31317 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31317 exists.

Sources

Also known as GHSA-8wmw-prw8-2ggm.

Is CVE-2026-31317 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free