CVE-2026-7653
Command Injection in MCP Server Rijksmuseum
Publication date: 2026-05-02
Last updated on: 2026-05-05
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| r-huijts | mcp-server-rijksmuseum | to 1.0.4 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-77 | The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. |
| CWE-78 | 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. |
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
This vulnerability allows remote attackers to execute arbitrary operating system commands with the privileges of the MCP server process, potentially leading to full host compromise.
Such a compromise can result in unauthorized data exposure, loss of data integrity, and service disruption.
These impacts can negatively affect compliance with common standards and regulations like GDPR and HIPAA, which require protection of sensitive data confidentiality, integrity, and availability.
Failure to protect against such vulnerabilities could lead to violations of these regulations due to potential data breaches or service outages.
Can you explain this vulnerability to me?
CVE-2026-7653 is a command injection vulnerability in the mcp-server-rijksmuseum tool, specifically in the function open_image_in_browser. The vulnerability occurs because the tool accepts a user-supplied imageUrl parameter, performs only a basic type check, and then passes it unsanitized into a shell command executed via child_process.exec.
An attacker with network access to the MCP interface can inject shell metacharacters through the imageUrl parameter to execute arbitrary operating system commands with the privileges of the server process. This means the attacker can run any command on the server remotely.
The vulnerability exists due to insufficient validation of the imageUrl input and unsafe use of shell command execution functions. No fixed version is available yet, and exploitation requires the ability to invoke the open_image_in_browser tool on a server running an OS with commands like open, xdg-open, or start.
How can this vulnerability impact me? :
This vulnerability can have a high impact on confidentiality, integrity, and availability of the affected system.
- An attacker can execute arbitrary OS commands with the privileges of the MCP server process.
- This can lead to full host compromise, including unauthorized data exposure.
- Attackers can modify or delete data, affecting data integrity.
- Service disruption is possible by terminating processes or consuming system resources.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by attempting to invoke the open_image_in_browser tool with a crafted payload that includes shell metacharacters in the imageUrl parameter. Successful execution of arbitrary commands such as 'id' indicates the presence of the vulnerability.
Detection can be performed by sending a JSON-RPC request to the MCP server with a malicious imageUrl value containing shell metacharacters (e.g., "; id #"). If the server executes the injected command, it confirms the vulnerability.
Static analysis tools like CodeQL and source-code audits can also help identify the vulnerability in the source code, especially in the use of child_process.exec with unsanitized input.
- Example command to test via JSON-RPC (conceptual): send a request with imageUrl set to something like "http://example.com/image.jpg; id #" and observe if the 'id' command output is returned or logged.
- Monitor network traffic for suspicious JSON-RPC calls invoking open_image_in_browser with unusual or suspicious imageUrl parameters containing shell metacharacters.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include restricting access to the MCP server and the open_image_in_browser tool to trusted clients only.
Disable the browser-opening functionality in deployments where the MCP server is exposed to untrusted networks.
Run the MCP server process under a low-privilege operating system account to limit the impact of any potential exploitation.
- Do not expose the MCP server to untrusted clients or networks.
- Restrict or disable the open_image_in_browser tool usage.
- Apply strict input validation on the imageUrl parameter to reject embedded quotes, control characters, shell metacharacters, and non-HTTP(S) schemes.
- Await and apply official patches or updates that replace child_process.exec with safer alternatives and enforce strict validation.