CVE-2026-49287: Statamic Data Loss Vulnerability in Collection Sorting
Statamic, a Laravel-based content management system, contains an incomplete fix for a prior vulnerability that allows attackers to manipulate how content is sorted in memory. If a Statamic site's template is designed to let visitors control sorting parameters, an attacker can craft malicious sort requests that cause content and assets to be deleted or corrupted. The vulnerability requires specific template configuration to be exploitable and is not present in default Statamic installations. Versions 5.73.23 and 6.20.0 and later contain the complete fix.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.4 HIGH · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
- Weaknesses (CWE)
- CWE-470
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-19 / 2026-06-23
NVD description (verbatim)
Statamic is a Laravel and Git powered content management system (CMS). Prior to 5.73.23 and 6.20.0, the fix for CVE-2026-41175 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. This has been fixed in 5.73.23 and 6.20.0.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-49287 is a CWE-470 (Use of Externally-Controlled Input to Select Classes or Code) vulnerability stemming from an incomplete remediation of CVE-2026-41175. The original fix applied input sanitization to the query builder's sort operations, but the same protections were not consistently applied to in-memory collection sorting. An attacker who can influence the sort parameter in Statamic tags can trigger unintended code paths or unsafe object instantiation during the sorting process, resulting in uncontrolled modification or deletion of data. The attack vector is network-based with no authentication required, though successful exploitation depends on template design choices made by the site administrator.
Business impact
A successful exploit allows an attacker to destroy or corrupt website content and digital assets without authorization. For content-driven businesses—publishers, agencies, e-commerce platforms—this translates to immediate availability loss, reputational damage, and potential compliance violations if customer data or regulated content is affected. Recovery may require restore operations, downtime, and manual audit work. Organizations relying on Statamic for customer-facing content delivery face operational disruption and trust erosion.
Affected systems
Statamic versions prior to 5.73.23 (stable branch) and 6.20.0 (current branch) are vulnerable. The vulnerability is only exploitable if: (1) the Statamic installation includes front-end templates that pass request parameters directly into tag sort arguments, AND (2) those templates are accessible to unauthenticated users. Default Statamic configurations are not exploitable. Custom templates that explicitly use visitor input for sorting—such as e-commerce category pages allowing users to sort products—present the greatest risk.
Exploitability
Exploitation requires network access and does not demand authentication or user interaction. However, the practical attack surface is limited by template design: only sites with templates that bind user-supplied sort parameters to Statamic tags are vulnerable. An attacker would send crafted HTTP requests with malicious sort parameter values to trigger the vulnerability. The CVSS score of 7.4 (HIGH) reflects the severity of the impact (integrity and availability) tempered by the conditional nature of the vulnerability. No active exploitation in the wild has been reported, and the vulnerability is not tracked in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Remediation
Upgrade Statamic to version 5.73.23 or later for the stable branch, or version 6.20.0 or later for the current branch. These releases include the complete fix for in-memory collection sorting. After patching, verify that any custom templates using user-controlled sort parameters are reviewed and tested to ensure proper input validation and safe operation.
Patch guidance
Review your Statamic installation's current version by checking composer.json or the admin panel. If running version 5.x, update to 5.73.23 or higher. If running version 6.x, update to 6.20.0 or higher. Use composer update statamic/cms to apply the patch in your project environment. Test the patch in a staging environment first, particularly focusing on any custom templates that perform sorting operations. No breaking changes have been reported in these patch releases.
Detection guidance
Review your Statamic templates for any that accept and use visitor input (request parameters, query strings, form submissions) within sort directives or collection sorting operations. Search for patterns such as {{ entries:list sort="{request:sort}" }} or similar constructs. Monitor web server access logs for unusual sort parameter values—particularly those containing suspicious syntax or repeating patterns that suggest an attacker is probing for vulnerabilities. Once patched, test your vulnerable templates to confirm they now safely handle malicious input without data loss.
Why prioritize this
This vulnerability merits rapid patching because: (1) the impact is severe—permanent data loss—with high business consequences, (2) the network-accessible attack vector means any vulnerable template is a potential entry point, and (3) the incomplete nature of the prior fix suggests incomplete threat modeling. While template-specific exploitability reduces risk for some organizations, any site discovered to use dynamic sorting should be treated as critical priority. Organizations should patch within 1–2 weeks unless a thorough template audit proves no vulnerable patterns exist.
Risk score, explained
The CVSS 3.1 score of 7.4 (HIGH) is driven by high impact on integrity and availability (no confidentiality impact), network-based attack vector, and the absence of authentication requirements. The High complexity (AC:H) modifier reflects the conditional requirement that templates must be explicitly configured to pass user input to sort parameters. Organizations with no custom dynamic sorting are at negligible risk; those with such templates face critical risk. The score appropriately represents the worst-case scenario while acknowledging that not all Statamic installations are vulnerable.
Frequently asked questions
Does this vulnerability affect my Statamic site automatically?
Not necessarily. Statamic is only vulnerable if your custom front-end templates explicitly pass visitor-supplied values (like request parameters) into tag sort arguments. Default Statamic installations and templates that use hardcoded or safe sort values are not affected. Audit your templates for any dynamic sort parameters to determine your exposure.
What exactly can an attacker delete or corrupt?
An attacker can manipulate in-memory collection sorting to trigger unintended code execution during the sort process, leading to loss or corruption of any content or assets accessible within that collection—including pages, posts, product listings, media files, and related data. The scope depends on the collection being sorted and the site's data model.
Are there any workarounds if I cannot upgrade immediately?
Yes. If you cannot patch immediately, review your templates and remove or sanitize any user-controlled sort parameters. Hard-code safe sort values instead, or implement strict whitelist validation on sort parameter input before passing it to Statamic tags. This mitigates the vulnerability until you can upgrade. Still, patching should be your priority.
Is this vulnerability listed as actively exploited by CISA?
No. This vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning no public reports of active exploitation have been confirmed as of the vulnerability's publication date. However, that does not guarantee future exploitation, so timely patching remains critical.
This analysis is provided for informational purposes and based on publicly available vulnerability data current as of the publication date. SEC.co makes no warranty regarding the completeness or accuracy of this information. Organizations should verify patch availability and compatibility in their specific environment before deploying updates. Consult the official Statamic security advisory and release notes for authoritative details. If your Statamic deployment includes sensitive data or customer-facing content, conduct a thorough template audit and test patches in a non-production environment before production rollout. Source: NVD (public-domain), retrieved 2026-07-27. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-46718MEDIUMApache Calcite Unsafe Reflection Vulnerability – CVSS 6.5
- CVE-2026-48817MEDIUMStarlette HTTPEndpoint Method Reflection Bypass
- CVE-2016-20062HIGHSQL Injection in Simply Poll 1.4.1 WordPress Plugin - Unauthenticated Data Theft
- CVE-2016-20063HIGHSQL Injection in Single Personal Message 1.0.3 – Credential & Data Theft Risk
- CVE-2016-20065HIGHUnauthenticated SQL Injection in Product Catalog 8 WordPress Plugin
- CVE-2016-20066HIGHWordPress CP Polls 1.0.8 Persistent XSS Vulnerability
- CVE-2016-20068HIGHUnauthenticated SQL Injection in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2016-20069HIGHUnauthenticated SQL Injection in WordPress Booking Calendar Contact Form 1.0.23