Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-61791
Published:October 22, 2026
Updated:November 04, 2026
OCO-Server is a self-hosted endpoint management application for computer inventory, software deployment, and mobile device management. Prior to 1.2.1, "Html::commandButton()" in "lib/Html.class.php" embeds an action URL containing a stored computer hostname into a JavaScript string in an inline "onclick" handler, using "htmlspecialchars(ENT_QUOTES)" only for HTML escaping. Browsers decode the HTML entities before interpreting the handler as JavaScript, allowing a crafted hostname to escape the string and execute script in an administrator's authenticated session when an affected command button is activated. "frontend/views/computer-details.php" passes "$computer->hostname" to this helper using "Computer::DEFAULT_COMPUTER_COMMANDS" in "lib/Models/Computer.class.php", whose VNC, RDP, SSH, and Ping entries use "new_tab=false" and the vulnerable "window.location" branch. A remote attacker who possesses the shared "agent-registration-key" can use the "oco.agent.hello" handler in "frontend/api-agent.php" to store an unchecked hostname when "agent-self-registration-enabled" is enabled; self-registration is disabled by default. The vulnerable default command buttons require no custom command configuration. The injected script can abuse the administrator's privileges, including permission to deploy software jobs to managed computers. This issue is fixed in version 1.2.1.
Affected Packages
https://github.com/schorschii/OCO-Server.git (GITHUB):
Affected version(s) >=v0.4.0 <v1.2.1 || >=v1.0.0 <v1.2.1
Fix Suggestion:
Update to version v1.2.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
HIGH
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Script in Attributes in a Web Page
EPSS
Base Score:
0.29