CVE-2026-31266: Pixel & Tonic Craft CMS missing authorization in migrate endpoint

CVE-2026-31266 · Severity: info · CVSS 6.5 · Published 2026-05-27

Craft CMS, a popular content management system, contains a security flaw in its database migration component. This vulnerability allows an unauthenticated person to trigger system migration actions without permission. In practice, this could lead to unauthorized changes to the website's database structure or data loss, potentially disrupting the site's operations.

Quick answers

Is CVE-2026-31266 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-31266 being exploited in the wild.
How severe is CVE-2026-31266?
Informational severity, with a CVSS score of 6.5, published 27 May 2026.
Which products and versions are affected?
Pixel & Tonic Craft CMS <= 5.9.5.
Is there a fix for CVE-2026-31266?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-31266 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-31266?
Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A missing authorization vulnerability (CWE-862) exists in Craft CMS versions 5.9.5 and earlier within the 'migrate' endpoint. The root cause is located in 'src/controllers/AppController.php', where the 'migrate' action is explicitly included in the '$allowAnonymous' array, permitting access without authentication even when 'allowAdminChanges' is disabled. An unauthenticated remote attacker can send a POST request to '/actions/app/migrate' to trigger database migrations. This can lead to unauthorized database schema modifications or data integrity issues. Users should update to a version where this endpoint is properly protected.

Affected products

  • Pixel & Tonic Craft CMS <= 5.9.5

Timeline

  • 2026-05-27: disclosed: CVE published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.