MEDIUM 5.4

CVE-2026-56696: OpenHarness Remote Slash Command Injection via Missing Invocation Controls

OpenHarness contains a vulnerability in its slash command handlers that allows authenticated remote users to inject malicious content into project configuration files. When a user issues /issue or /pr_comments commands, the system fails to validate that these commands come from trusted sources. An attacker with channel access can craft commands that write arbitrary Markdown into sensitive files (.openharness/issue.md and .openharness/pr_comments.md) that get loaded into AI agent system prompts. This creates a persistent injection attack where the agent's behavior is influenced by attacker-controlled instructions on every subsequent run.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.4 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weaknesses (CWE)
CWE-862
Affected products
0 configuration(s)
Published / Modified
2026-06-23 / 2026-06-23

NVD description (verbatim)

OpenHarness /issue and /pr_comments slash commands lack remote_invocable=False protection, allowing remote channel senders to write attacker-controlled Markdown into project context files. Admitted remote attackers can inject malicious content into .openharness/issue.md and .openharness/pr_comments.md files, which are subsequently injected into runtime system prompts, persistently influencing local agent behavior.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability stems from missing remote_invocable=False protection on OpenHarness slash command implementations. The /issue and /pr_comments endpoints accept input from any authenticated channel participant without validating the command origin or enforcing invocation restrictions. Attacker-supplied Markdown is written directly into project context files that are later parsed and injected into runtime system prompts for local AI agents. Because these files persist in the repository, the injection remains active across multiple agent invocations until manually remediated. The attack chain requires authenticated channel access but no elevated privileges, making it accessible to any workspace member.

Business impact

This vulnerability creates an insidious persistent attack surface for organizations using OpenHarness with AI-assisted development workflows. An insider threat or compromised account can silently alter how AI agents interpret tasks and respond to requests, potentially leading to code generation flaws, security bypass recommendations, or compliance violations. The stealthy nature—injected instructions live in configuration files rather than in-band communications—means the manipulation may go undetected across multiple development cycles. Teams relying on agent outputs for critical decisions face both direct code quality risk and potential liability if malicious suggestions influence production deployments.

Affected systems

OpenHarness installations with active /issue and /pr_comments slash commands are affected. The vulnerability applies to all versions lacking the remote_invocable=False protection on these endpoints. Any workspace or organization channel where OpenHarness bots are configured to respond to these commands is at risk. The impact scales with the number of developers interacting with poisoned context files and the criticality of systems influenced by agent recommendations.

Exploitability

Exploitation requires authenticated access to a channel where OpenHarness commands are active—a low barrier for insider threats or compromised user accounts. No special tools, complexity, or user interaction are needed beyond issuing standard slash commands. The attacker's crafted Markdown is immediately written to project files without validation. The CVSS 3.1 score of 5.4 (MEDIUM) reflects the requirement for prior authentication, but the persistent nature and potential for widespread behavioral manipulation elevate practical risk above the base score suggests.

Remediation

Organizations should immediately patch OpenHarness to a version that implements remote_invocable=False protection on the /issue and /pr_comments slash command handlers. This restricts these commands to local, trusted invocations only. As an interim control, limit slash command access via workspace IAM policies and audit who can trigger these commands. Review existing .openharness/issue.md and .openharness/pr_comments.md files across all projects for suspicious Markdown or unusual agent prompt injections. Remove or revert any compromised configuration files.

Patch guidance

Verify against the vendor advisory for the specific version that resolves this issue. Once patched, verify that /issue and /pr_comments command handlers have been updated to enforce remote_invocable=False. Test in a non-production environment to confirm that slash commands no longer accept remote invocations before rolling out to production. Audit existing configuration files as part of the deployment to detect and clean any prior injections.

Detection guidance

Monitor for unusual slash command usage, particularly /issue and /pr_comments invocations followed by file modifications to .openharness/issue.md or .openharness/pr_comments.md. Review git history for unexpected changes to these configuration files, especially modifications that include Markdown or instructions that don't correspond to legitimate project issues or pull requests. Inspect system prompt logs if available to identify evidence of injected content influencing agent behavior. Alert on any Markdown containing suspicious directives, prompt-injection patterns, or content from unexpected sources.

Why prioritize this

While the CVSS score is MEDIUM, the vulnerability warrants elevated priority due to its persistent nature and the subtle risks posed to AI-driven development workflows. The injection affects multiple downstream processes and may remain undetected for prolonged periods. Organizations with high reliance on AI agents for code generation, security recommendations, or compliance tasks should treat this as HIGH priority. Those with strict access controls limiting slash command usage to specific roles or users may lower priority accordingly, but should still remediate.

Risk score, explained

CVSS 3.1 score of 5.4 reflects low attack complexity, network accessibility, and requirement for low-privilege authentication (CWE-862: Improper Authorization). The MEDIUM severity excludes confidentiality or integrity of protected systems but acknowledges the injection of attacker-controlled content into system prompts. The persistent nature of the attack—files remain poisoned across sessions—elevates practical risk beyond the base score, warranting business-level context in prioritization decisions.

Frequently asked questions

Can an unauthenticated attacker exploit this vulnerability?

No. The vulnerability requires prior authentication and channel access. An attacker must be a member of the workspace or channel where OpenHarness is deployed.

Are the injected files visible in the repository to other developers?

Yes. The configuration files (.openharness/issue.md and .openharness/pr_comments.md) are typically stored in version control and visible to other project members. This provides an opportunity for detection if developers review file history or configuration changes.

Does patching remove existing injections?

Patching prevents future injections by blocking unauthorized remote command invocations. However, you must manually audit and remove existing malicious content from configuration files as part of remediation.

How does this differ from a standard prompt injection?

This attack is persistent and file-based rather than in-band. The injected Markdown is written to configuration files that are loaded on every agent invocation, creating a lasting attack surface that survives session restarts.

This analysis is provided for informational purposes to aid in vulnerability management and risk assessment. No exploit code or weaponized proof-of-concept is included. Patch versions and timelines should be verified against the official vendor advisory. The CVSS score is derived from the published CVE record; business risk may vary based on organizational context and system dependencies. Always test patches in non-production environments before deployment. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).