Advisory record · GHSA-7x5c-vfhj-9628

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

CVSS 7.7 HighEPSS 0.0044 · 38th percentile

Published by the GitHub Advisory Database at 17 Mar 2026, 17:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
cockpit-hq/cockpitPackagist<2.13.52.13.5
Identifiers
GHSA-7x5c-vfhj-9628 · CVE-2026-31891 · PKSA-rm9w-whnt-2jgw
Weakness (CWE)
CWE-89
Published
17 Mar 2026
Updated
19 Mar 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Cockpit CMS versions 2.13.4 and earlier are vulnerable to SQL injection in the MongoLite Aggregation Optimizer, reached through the aggregation API endpoint. An attacker with a valid read-only API key, or any untrusted user where that endpoint is reachable, can inject SQL to read unpublished content and other data from the SQLite database. Upgrade to Cockpit CMS 2.13.5 or later, which fixes the issue.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.7 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0044, the 38th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:26 UTC First seen by agentprime
  2. 31 Oct 2026, 14:26 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.