Skip to main content

CVE-2026-61791: CWE-83: Improper Neutralization of Script in Attributes in a Web Page in schorschii OCO-Server

0
High
VulnerabilityCVE-2026-61791cvecve-2026-61791cwe-83
Published: 10/22/2026 (10/22/2026, 14:55:54 UTC)
Source: CVE Database V5
Vendor/Project: schorschii
Product: OCO-Server

Description

CVE-2026-61791 is a stored cross-site scripting (XSS) vulnerability in schorschii OCO-Server prior to version 1.2.1. The vulnerability arises from improper neutralization of script in HTML attributes, specifically in the Html::commandButton() function, which embeds a stored computer hostname into a JavaScript inline onclick handler with insufficient escaping. An attacker with access to the shared agent-registration-key and with self-registration enabled can inject malicious script via a crafted hostname. This script executes in an administrator's authenticated session when activating certain command buttons, potentially allowing abuse of administrative privileges such as deploying software jobs. The issue is fixed in version 1.2.1.

CVSS v3.1

Score 7.4high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

Affected software

schorschii

OCO-Server

Affected versions
<1.2.1
GitHub Actionsmore threats →ai
schorschii/OCO-Server
pkg:github/schorschii/OCO-Server
Affected versions
<1.2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/22/2026, 15:30:20 UTC

Technical Analysis

OCO-Server versions before 1.2.1 contain a stored XSS vulnerability (CWE-83) in the Html::commandButton() function located in lib/Html.class.php. This function embeds a computer hostname into an inline JavaScript onclick handler using only htmlspecialchars(ENT_QUOTES) for HTML escaping, which browsers decode before executing the JavaScript. This allows a crafted hostname to break out of the string context and execute arbitrary script in the administrator's session. The hostname is stored via the oco.agent.hello API handler when agent self-registration is enabled (disabled by default), and the default command buttons (VNC, RDP, SSH, Ping) use the vulnerable code path. Exploitation requires possession of the shared agent-registration-key and self-registration enabled. The vulnerability is resolved in version 1.2.1.

Potential Impact

An attacker who can register an agent with a crafted hostname can inject malicious JavaScript that executes in the context of an administrator's authenticated session. This can lead to abuse of administrative privileges, including unauthorized deployment of software jobs to managed computers. The vulnerability does not affect confidentiality or availability directly but impacts integrity and administrative control. Exploitation requires specific conditions: possession of the shared agent-registration-key and enabled agent self-registration.

Mitigation Recommendations

Upgrade OCO-Server to version 1.2.1 or later, where this vulnerability is fixed. If upgrading is not immediately possible, ensure that agent self-registration is disabled (the default setting) to prevent attackers from injecting malicious hostnames. No other specific mitigations are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-10T20:06:05.617Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ada28cd4d27ba8daa606cea

Added to database: 10/22/2026, 15:16:29 UTC

Last enriched: 10/22/2026, 15:30:20 UTC

Last updated: 10/22/2026, 15:35:14 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses