Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. statamic/cms
  4. ›
  5. CVE-2026-49287

CVE-2026-49287: Statamic CMS's unsafe method invocation via collection sorting allows data destruction

June 26, 2026

The fix for GHSA-4jjr-vmv7-wh4w was incomplete. It addressed the issue in the query builder, but the same protection was not applied to in-memory collection sorting. Manipulating sort parameters could result in the loss of content and assets.

This requires a front-end template that passes request input into a tag’s sort parameter. It is not exploitable by default — a template would need to be explicitly set up to sort by a visitor-controlled value.

References

  • github.com/advisories/GHSA-m92m-r54r-x8r2
  • github.com/statamic/cms/security/advisories/GHSA-4jjr-vmv7-wh4w
  • github.com/statamic/cms/security/advisories/GHSA-m92m-r54r-x8r2
  • nvd.nist.gov/vuln/detail/CVE-2026-49287

Code Behaviors & Features

Detect and mitigate CVE-2026-49287 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.73.23, all versions starting from 6.0.0 before 6.20.0

Fixed versions

  • 5.73.23
  • 6.20.0

Solution

Upgrade to versions 5.73.23, 6.20.0 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Source file

packagist/statamic/cms/CVE-2026-49287.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:12 +0000.