CVE-2026-61791
Last modified
CVE-2026-61791 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| schorschii | OCO-Server | < 1.2.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-61791?
How severe is CVE-2026-61791?
How do I fix CVE-2026-61791?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-61783Wazuh is an open-source security platform providing unified …6.5
- CVE-2026-61784xhtml-purifier is a Node.js library to take in raw/unknown/u…6.1
- CVE-2026-61788DBHub is a database MCP server for Postgres, MySQL, SQL Serv…7.4
- CVE-2026-61789DBHub is a database MCP server for Postgres, MySQL, SQL Serv…6.1
- CVE-2026-6179Stored Cross Site Scripting in NightWolf Penetration Testing…5.4
- CVE-2026-61790Weblate is a web-based continuous localization platform used…4.4
- CVE-2026-61792Weblate is a web-based continuous localization platform used…7.7
- CVE-2026-61793Nuxt OG Image generates OG Images with Vue templates in Nuxt…6.9
- CVE-2026-61794Capsule is a multi-tenancy and policy-based framework for Ku…6.8
- CVE-2026-61795Capsule is a multi-tenancy and policy-based framework for Ku…6.8
- CVE-2026-6180A race condition exists in PaperCut MF when processing badge…8.1
- CVE-2026-61800Wazuh is an open-source security platform providing unified …9.1
Are you affected by CVE-2026-61791?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
