XianYuLauncher
CVE-2026-48991
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish local process on victim machine
-
DeliveryIdentify fixed localhost OAuth redirect port
-
ExploitBind listener before launcher during victim login
-
ExecutionReceive authorization code via intercepted redirect
-
PersistExchange code at Microsoft token endpoint without PKCE
-
ImpactAccess victim Microsoft and Minecraft accounts
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to have the ability to run an arbitrary process on the same local machine as the victim (AV:L) - this is the primary limiting condition. The victim must actively initiate a Microsoft login within XianYuLauncher (UI:R); passive presence of a logged-in session is insufficient. The specific technical condition is the launcher's reliance on a fixed, predictable localhost redirect URI without PKCE or state validation, enabling a racing process to capture the OAuth authorization code. No elevated privileges are required on the attacker's side (PR:N). The plaintext ClientToken exposure is a secondary, lower-barrier condition limited to file-system read access on the launcher's data directory. Exploitation is version-bound to XianYuLauncher prior to 1.5.5. Shared or multi-user operating system environments, or systems with existing malware presence, represent the highest-risk deployment contexts. |
| Impact | The CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) accurately reflects that exploitation is constrained to local access and requires the victim to initiate a login session. The local attack vector is the primary risk limiter: an attacker must already have code execution on the victim's machine, which is a significant prerequisite. High confidentiality impact is warranted because a successfully intercepted authorization code yields full Microsoft and Minecraft account token access. EPSS data was not provided. The vulnerability is not in CISA KEV and no public exploit code has been identified, indicating no observed widespread exploitation. The missing PKCE/state pattern is well-known (documented in RFC 8252 for native app OAuth) and conceptually straightforward to exploit, but the local execution prerequisite keeps real-world risk moderate. The plaintext ClientToken storage is an independent, lower-barrier path - requiring only file-system read access to the launcher data directory - that compounds exposure for any attacker who already has local access. Integrity and availability are not impacted. |
| Exploit ScenarioDerived | An attacker with a background process running on the victim's machine waits for the victim to click the Microsoft login button in XianYuLauncher. The attacker's process, knowing the fixed localhost redirect port, binds to it first; when Microsoft redirects the browser post-authentication, the attacker's listener receives the authorization code. Without a PKCE code_verifier to validate, the attacker sends the code to Microsoft's token endpoint and receives valid access and refresh tokens for the victim's Microsoft and Minecraft accounts. No public proof-of-concept exists, but this localhost port-racing technique against OAuth redirect flows is well-documented in IETF RFC 8252 Section 8.3. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
XianYuLauncher, a Minecraft Java Edition launcher, exposes Microsoft OAuth authentication tokens to local attackers in all versions prior to 1.5.5 due to an OAuth 2.0 Authorization Code flow implemented without PKCE or state parameter validation. A local attacker running a concurrent process on the same machine can race the launcher's fixed localhost redirect URI to intercept the authorization code, then exchange it for valid Microsoft and Minecraft access tokens without any special privileges. Compounding the exposure, ClientToken was stored on disk in plaintext and JWT/Bearer tokens could be leaked into log output. No public exploit has been identified and this vulnerability is not listed in CISA KEV.
RemediationAI
Upgrade to XianYuLauncher version 1.5.5, which resolves all facets of this issue: the Microsoft authentication service has been migrated to the MSAL library (Microsoft.Identity.Client) with native PKCE support, ClientToken is now encrypted at rest via TokenEncryption.Encrypt(), the encryption code path throws instead of silently returning plaintext on failure, and a new SensitiveDataSanitizer class redacts Bearer headers, JWT tokens, access/refresh tokens, and device codes from logs and error messages. The patch is documented at https://github.com/XianYuLauncher/XianYuLauncher/security/advisories/GHSA-q6r9-qxmf-8hfx and implemented in https://github.com/XianYuLauncher/XianYuLauncher/pull/213. If immediate upgrade is not possible, users should avoid initiating login on shared, multi-user, or potentially compromised machines, and restrict filesystem permissions on the launcher's account data directory to prevent unauthorized reads of the plaintext ClientToken.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-287 (Improper Authentication) arising from an incomplete OAuth 2.0 Authorization Code implementation. The launcher opened a fixed localhost redirect URI to receive the Microsoft authorization code after user login, but omitted both PKCE (RFC 7636) and the state parameter. Without PKCE, any local process that binds to the same port before the launcher receives the authorization code and can exchange it at Microsoft's token endpoint - the PKCE code_verifier that would normally bind the code to the originating client is absent. Without state validation, cross-site request forgery against the local redirect is also possible. Separately, the C
class TokenEncryption previously fell back to returning plaintext on encryption failure rather than throwing, and ClientToken was serialized to disk without encryption. The fix, visible in PR #213, migrates MicrosoftAuthService.cs to the MSAL library (Microsoft.Identity.Client), which handles PKCE natively, encrypts ClientToken via TokenEncryption.Encrypt() at save time, throws InvalidOperationException on encryption failure to block plaintext storage, and introduces SensitiveDataSanitizer.cs to redact Bearer tokens, JWTs, access/refresh tokens, and device codes from logs and error messages. Affected CPE: cpe:2.3:a:xianyulauncher:xianyulauncher:*:*:*:*:*:*:*:*.
Know when Xianyulauncher gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Local process required to race the OAuth redirect; victim must actively trigger login (UI:R); only confidentiality is impacted via token interception, with no integrity or availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
XianYuLauncher is a Minecraft Java Edition launcher. In versions prior to 1.5.5, sensitive authentication artifacts could be exposed during a user-initiated login under certain local attack conditions. Affected versions relied on a fixed localhost redirect URI without PKCE or state validation. Exploitation is most likely to occur when an attacker is able to observe, intercept, or otherwise interfere with the local authentication flow on the same device. This issue has been fixed in version 1.5.5.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB