SCA: security update for cockpit-hq/cockpit (GHSA-7x5c-vfhj-9628)

medium Tenable Self-Hosted Container Security Plugin ID 438884

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Cockpit is a headless content management system. Any Cockpit CMS instance running version 2.13.4 or
earlier with API access enabled is potentially affected by a a SQL Injection vulnerability in the
MongoLite Aggregation Optimizer. Any deployment where the `/api/content/aggregate/{model}` endpoint is
publicly accessible or reachable by untrusted users may be vulnerable, and attackers in possession of a
valid read-only API key (the lowest privilege level) can exploit this vulnerability — no admin access is
required. An attacker can inject arbitrary SQL via unsanitized field names in aggregation queries, bypass
the `_state=1` published-content filter to access unpublished or restricted content, and extract
unauthorized data from the underlying SQLite content database. This vulnerability has been patched in
version 2.13.5. 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. (CVE-2026-31891)

Solution

Update the cockpit-hq/cockpit library and its related packages to version 2.13.5 or later.

See Also

https://github.com/advisories/GHSA-7x5c-vfhj-9628

Plugin Details

Severity: Medium

ID: 438884

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 3/17/2026

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.36

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:N/A:N

CVSS Score Source: CVE-2026-31891

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/17/2026

Vulnerability Publication Date: 3/17/2026

Reference Information

CVE: CVE-2026-31891

cwe: CWE-89