Skip to main content

XianYuLauncher CVE-2026-48991

MEDIUM
Improper Authentication (CWE-287)
2026-06-17 GitHub_M
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Establish local process on victim machine
  2. Delivery
    Identify fixed localhost OAuth redirect port
  3. Exploit
    Bind listener before launcher during victim login
  4. Execution
    Receive authorization code via intercepted redirect
  5. Persist
    Exchange code at Microsoft token endpoint without PKCE
  6. Impact
    Access 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (GitHub_M) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.1%
Top 97% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:xianyulauncher:xianyulauncher:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy