NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

highCVSS 3.1 7.4GHSA-m92m-r54r-x8r2

Impact 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.

Published Jun 26, 2026

Affected packages

statamic/cms

Ecosystem
Composer (PHP)
Affected
< 5.73.23
Fixed in
5.73.23
Check
composer show statamic/cms

statamic/cms

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.20.0
Fixed in
6.20.0
Check
composer show statamic/cms

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

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.

Patches

This has been fixed in 5.73.23 and 6.20.0.

Credited to Eszh.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries