CVE-2026-31891: Cockpit CMS has SQL Injection in MongoLite Aggregation Optimizer via toJsonExtractRaw()

CVE-2026-31891 · Severity: low · CVSS 3.1 · Published 2026-03-17

Cockpit CMS has SQL Injection in MongoLite Aggregation Optimizer via toJsonExtractRaw()

Technologies: cockpit-hq/cockpit (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2026-31891 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-31891 being exploited in the wild.
How severe is CVE-2026-31891?
Low severity, with a CVSS score of 3.1, published 17 March 2026.
Which products and versions are affected?
cockpit-hq/cockpit (Packagist) ECOSYSTEM:introduced=0,fixed=2.13.5.
Is there a fix for CVE-2026-31891?
Yes. cockpit-hq/cockpit (Packagist): upgrade to 2.13.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-31891?
Check whether you run cockpit-hq/cockpit (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • cockpit-hq/cockpit (Packagist): upgrade to 2.13.5 or later
    composer require cockpit-hq/cockpit:^2.13.5

Affected products

  • cockpit-hq/cockpit (Packagist) ECOSYSTEM:introduced=0,fixed=2.13.5

Identifiers

  • CVE-2026-31891
  • GHSA-7x5c-vfhj-9628

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.