CVE-2026-31861: @siteboon/claude-code-ui shell command injection in git config endpoint

CVE-2026-31861 · Severity: medium · CVSS 4 · Published 2026-03-10

@siteboon/claude-code-ui is a Node.js-based code editor interface that allows users to configure Git settings. The application's /api/user/git-config endpoint is vulnerable to shell command injection, allowing authenticated attackers to execute arbitrary OS commands on the server. An attacker could read sensitive files, install backdoors, or pivot to other systems on the network.

Technologies: @siteboon/claude-code-ui (npm), Siteboon Claude-Code-Ui. Vendors: npm, Siteboon.

Quick answers

Is CVE-2026-31861 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-31861 being exploited in the wild.
How severe is CVE-2026-31861?
Medium severity, with a CVSS score of 4, published 10 March 2026.
Which products and versions are affected?
@siteboon/claude-code-ui (npm) SEMVER:introduced=0,fixed=1.24.0; Siteboon Claude-Code-Ui <= 1.23.0.
Is there a fix for CVE-2026-31861?
Yes. @siteboon/claude-code-ui (npm): upgrade to 1.24.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-31861 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-31861?
Check whether you run @siteboon/claude-code-ui (npm) or Siteboon Claude-Code-Ui 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

  • @siteboon/claude-code-ui (npm): upgrade to 1.24.0 or later
    npm install @siteboon/claude-code-ui@1.24.0

Technical details

The vulnerability exists in server/routes/user.js (lines 58–59), where user-supplied gitName and gitEmail values are interpolated directly into bash command strings passed to child_process.exec(). Although double quotes are escaped, backticks (`) and $() command substitution syntax are still evaluated by the shell, allowing arbitrary command execution. The attack requires JWT authentication, though a separate hardcoded JWT flaw (VULN-01) can bypass this. An authenticated attacker can inject commands via the gitName or gitEmail parameters to achieve remote code execution as the Node.js process user. The fix involves replacing exec() with spawn() and passing arguments as an array to prevent shell interpretation.

Affected products

  • siteboon claude-code-ui <= 1.23.0

Identifiers

  • CVE-2026-31861
  • GHSA-7fv4-fmmc-86g2

Timeline

  • 2026-03-10: disclosed
  • 2026-03-10: patched: Fixed in v1.24.0

References

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