Vulnerabilities in pkg:npm/@siteboon/claudecodeui
PACKAGECVE-2026-31862 is a CRITICAL (CVSS 9.1) @siteboon/claude-code-ui is vulnerable to command vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting @siteboon/claudecodeui libraries in the npm ecosystem. The issue involves @siteboon/claude-code-ui is vulnerable to command injection via multiple parameters. Remediation is available by upgrading affected packages to version 1.24.0.
pkg:npm/@siteboon/claudecodeui
Vulnerability advisories affecting package pkg:npm/@siteboon/claudecodeui. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f2fc-vc88-6w7q | CVE-2026-31862 | CRITICAL | @siteboon/claude-code-ui is Vulnerable to Command Injection via Multiple Parameters |
CVE-2026-31862 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-31862
To remediate this vulnerability, upgrade all affected @siteboon/claudecodeui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @siteboon/claudecodeui@1.24.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @siteboon/claudecodeui
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-31862, inspect your project dependencies using npm:
npm ls @siteboon/claudecodeui
Analyze the terminal output to locate any version of @siteboon/claudecodeui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.24.0), your application is affected.
Note: The npm ls @siteboon/claudecodeui command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In @siteboon/claudecodeui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-31862 Affected @siteboon/claudecodeui Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@siteboon/claudecodeui
|
npm |
< 1.24.0
|
1.24.0
|
References
Frequently Asked Questions
What is CVE-2026-31862?
Which @siteboon/claudecodeui versions are affected?
What version fixes CVE-2026-31862?
Is @siteboon/claudecodeui affected?
What is the CVSS score of CVE-2026-31862?
What CWE is associated with CVE-2026-31862?
How can I check npm dependencies for CVE-2026-31862?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f2fc-vc88-6w7q",
"modified" : "2026-03-11T20:45:24Z",
"published" : "2026-03-11T00:25:43Z",
"aliases" : [ "CVE-2026-31862" ],
"summary" : "@siteboon/claude-code-ui is Vulnerable to Command Injection via Multiple Parameters",
"details" : "### Summary\nMultiple Git-related API endpoints use execAsync() with string interpolation of user-controlled parameters (file, branch, message, commit), allowing authenticated attackers to execute arbitrary OS commands.\n\n### Details\nThe claudecodeui application provides Git integration through various API endpoints. These endpoints accept user-controlled parameters such as file paths, branch names, commit messages, and commit hashes, which are directly interpolated into shell command strings passed to execAsync().\n\nThe application attempts to escape double quotes in some parameters, but this protection is trivially bypassable using other shell metacharacters such as:\n\nCommand substitution: $(command) or \\`command\\`\nCommand chaining: ;, &&, ||\nNewlines and other control characters\n\n### Affected Endpoints\n`GET /api/git/diff - file parameter`\n`GET /api/git/status - file parameter`\n`POST /api/git/commit - files array and message parameter`\n`POST /api/git/checkout - branch parameter`\n`POST /api/git/create-branch - branch parameter`\n`GET /api/git/commits - commit hash parameter`\n`GET /api/git/commit-diff - commit parameter`\n\n### Vulnerable Code\n\nFile: server/routes/git.js\n```\n// Line 205 - git status with file parameter\nconst { stdout: statusOutput } = await execAsync(\n `git status --porcelain \"${file}\"`, // INJECTION via file\n { cwd: projectPath }\n);\n```\n```\n// Lines 375-379 - git commit with files array and message\nfor (const file of files) {\n await execAsync(`git add \"${file}\"`, { cwd: projectPath }); // INJECTION via files[]\n}\nconst { stdout } = await execAsync(\n `git commit -m \"${message.replace(/\"/g, '\\\\\"')}\"`, // INJECTION via message (bypass with $())\n { cwd: projectPath }\n);\n```\n```\n// Lines 541-543 - git show with commit parameter (no quotes!)\nconst { stdout } = await execAsync(\n `git show ${commit}`, // INJECTION via commit\n { cwd: projectPath }\n);\n```\n\n### Impact\n- Remote Code Execution as the Node.js process user\n- Full server compromise\n- Data exfiltration\n- Supply chain attacks - modify committed code to inject malware\n\n---\n\n### Fix\n\n**Commit:** siteboon/claudecodeui@55567f4\n\n#### Root cause remediation\n\nAll vulnerable `execAsync()` calls have been replaced with the existing `spawnAsync()` helper (which uses `child_process.spawn` with `shell: false`). Arguments are passed as an array directly to the OS — shell metacharacters in user input are inert.\n\n**Endpoints patched in `server/routes/git.js`:**\n\n- `GET /api/git/diff` — `file` (4 calls)\n- `GET /api/git/file-with-diff` — `file` (3 calls)\n- `POST /api/git/commit` — `files[]`, `message`\n- `POST /api/git/checkout` — `branch`\n- `POST /api/git/create-branch` — `branch`\n- `GET /api/git/commits` — `commit.hash`\n- `GET /api/git/commit-diff` — `commit`\n- `POST /api/git/generate-commit-message` — `file`\n- `POST /api/git/discard` — `file` (3 calls)\n- `POST /api/git/delete-untracked` — `file`\n- `POST /api/git/publish` — `branch`\n\nA strict allowlist regex (`/^[0-9a-f]{4,64}$/i`) was also added to validate the `commit` parameter in `/api/git/commit-diff` before it reaches the git process.\n\n#### Before / After\n\n```js\n// BEFORE — shell interprets the string, injection possible\nconst { stdout } = await execAsync(`git show ${commit}`, { cwd: projectPath });\n\n// AFTER — no shell, args passed directly to the process\nconst { stdout } = await spawnAsync('git', ['show', commit], { cwd: projectPath });\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@siteboon/claudecodeui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.24.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.23.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/siteboon/claudecodeui/security/advisories/GHSA-f2fc-vc88-6w7q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-31862"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/siteboon/claudecodeui"
}, {
"type" : "WEB",
"url" : "https://github.com/siteboon/claudecodeui/releases/tag/v1.24.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77", "CWE-78" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-11T00:25:43Z",
"nvd_published_at" : "2026-03-11T18:16:25Z"
}
}