This is a SQL Injection vulnerability in the MongoLite Aggregation Optimizer.
Any Cockpit CMS instance running version 2.13.4 or earlier with API access enabled is potentially affected.
Who is impacted:
/api/content/aggregate/{model} endpoint is publicly
accessible or reachable by untrusted users.What an attacker can do:
_state=1 published-content filter to access unpublished or restricted content.Confidentiality impact is High. Integrity and availability are not directly affected by this vulnerability.
This vulnerability has been patched in version 2.13.5.
All users running Cockpit CMS version 2.13.4 or earlier are strongly advised to upgrade to 2.13.5 or later immediately.
The fix applies the same field-name sanitization introduced in v2.13.3 for toJsonPath()
to the toJsonExtractRaw() method in lib/MongoLite/Aggregation/Optimizer.php,
closing the injection vector in the Aggregation Optimizer.
{
"cwe_ids": [
"CWE-89"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-17T17:07:41Z",
"nvd_published_at": "2026-03-18T04:17:19Z",
"severity": "HIGH"
}