Skip to main content

claude-comfyui-mcp EUVDEUVD-2026-54958

| CVE-2026-19371 LOW
Path Traversal (CWE-22)
2026-08-09 VulDB GHSA-g57q-682f-hr5f
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local authenticated session on host
  2. Delivery
    Invoke comfy_upload_image MCP tool
  3. Exploit
    Supply traversal-crafted image_path argument
  4. Execution
    copyFileSync resolves path outside upload root
  5. Impact
    Read or overwrite arbitrary files within process permissions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a local authenticated session on the host running claude-comfyui-mcp (AV:L/PR:L per CVSS 4.0 vector) - no network exposure is needed or possible. The attacker must have the ability to invoke the comfy_upload_image MCP tool and supply a controlled image_path argument containing ../ traversal sequences. No non-default configuration is required beyond having the package installed and the MCP server running. Key limiting factors: the attack is entirely local, excluding remote or unauthenticated threat actors; impact is bounded to files accessible by the server process user account (VC:L/VI:L/VA:L); and the tool is typically deployed on individual developer workstations rather than shared multi-tenant infrastructure, further reducing realistic attacker opportunity.

Impact

The CVSS 4.0 score of 4.8 (Medium) accurately reflects the constrained real-world risk profile. The local attack vector (AV:L) and low-privilege requirement (PR:L) together mean exploitation is limited to users who already have an authenticated local session on the host running this tool - substantially narrowing the attacker pool compared to network-exploitable vulnerabilities. All three impact dimensions (VC:L/VI:L/VA:L) are rated Low, indicating bounded rather than complete filesystem compromise. The E:P supplemental metric confirms a proof-of-concept exists, which elevates urgency slightly over a purely theoretical flaw, but the absence of a CISA KEV listing and the niche deployment footprint keep aggregate risk moderate. The maintainer's non-response to disclosure is a risk-prolonging factor: without a patch, exposure duration is indefinite. No EPSS data was provided in the input; risk prioritization should weight the local-only vector heavily - this vulnerability does not represent a remote attack surface.

Exploit ScenarioDerived

A local user with a standard shell account on a developer workstation running claude-comfyui-mcp invokes the comfy_upload_image tool via the MCP interface, supplying image_path as ../../../../etc/cron.d/malicious pointing to a file they control. The unsanitized path is passed to copyFileSync, which copies the attacker-controlled image payload to an arbitrary filesystem location writable by the server process. A proof-of-concept has been submitted via the GitHub issue tracker, lowering the skill threshold for exploitation.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 09, 2026

Path traversal in claude-comfyui-mcp 1.0.0 enables local low-privileged users to escape the intended upload directory by supplying crafted ../ sequences as the image_path argument to the comfy_upload_image tool. The unsanitized input is passed directly to Node.js copyFileSync in src/tools/utils.ts, allowing reads or writes to arbitrary files accessible by the server process. A proof-of-concept exists (CVSS 4.0 E:P), and the project maintainer has not responded to responsible disclosure, leaving no vendor patch available at time of analysis.

RemediationAI

No vendor-released patch has been identified at time of analysis - the maintainer has not responded to the responsible disclosure filed at https://github.com/Nikolaibibo/claude-comfyui-mcp/issues/3. Monitor that issue and the repository for any patched release and apply it immediately upon availability. Until then, restrict local system access to trusted users only, since exploitation requires a local authenticated session. As a source-level compensating control, modify src/tools/utils.ts to resolve image_path to an absolute path using path.resolve() and then assert it starts with the permitted upload base directory before invoking copyFileSync; reject or sanitize any path that falls outside the allowed root. This change would need to be applied as a local fork. Trade-off: this manual patch requires maintaining a private fork and re-applying any upstream changes. Avoid running the MCP server under elevated privileges, as this limits the blast radius of a successful traversal to files readable/writable by the low-privilege process account. Full VulDB advisory: https://vuldb.com/cve/CVE-2026-19371.

Affected VersionsENISA

claude-comfyui-mcp 1.0.0

Affected Packages

euvd claude_comfyui_mcp no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

claude-comfyui-mcp is a Model Context Protocol (MCP) server that bridges Claude AI with ComfyUI, a node-based Stable Diffusion image generation interface. The vulnerable code path is in src/tools/utils.ts within the comfy_upload_image component, which calls Node.js's synchronous copyFileSync without first canonicalizing or bounding the caller-supplied image_path. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) is the root cause class: the application fails to resolve the path against an allowed base directory and reject traversal sequences before performing the filesystem operation. The CPE string cpe:2.3:a:nikolaibibo:claude-comfyui-mcp:*:*:*:*:*:*:*:* uses a wildcard version field, indicating NVD has not bounded the affected range to a specific version - all currently known releases are considered affected.

Know when Claude Comfyui Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 1.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.3 MEDIUM

Local-only attack requiring low privileges; all three impacts bounded to Low as traversal is constrained to files accessible by the server process account.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Aug 09, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
Aug 09, 2026 - 23:22 NVD
4.8 (MEDIUM) 1.9 (LOW)

DescriptionCVE.org

A vulnerability was identified in Nikolaibibo claude-comfyui-mcp 1.0.0. Affected is the function copyFileSync of the file src/tools/utils.ts of the component comfy_upload_image. Such manipulation of the argument image_path leads to path traversal. An attack has to be approached locally. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Rare
niche developer tool bridging Claude AI and ComfyUI locally
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy