Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112148 Overview
CVE-2026-112148 is a DOM-based cross-site scripting (XSS) vulnerability in the LINE Front-end Framework (LIFF) SDK versions 2.20.0 through 2.31.0. An attacker can craft a URL that, when opened by a user in an external browser, executes arbitrary JavaScript in the origin of the affected LIFF application's endpoint. Successful exploitation can disclose JavaScript-accessible authentication tokens or application data and allow unauthorized actions using the victim's session. The flaw is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Attackers who trick a user into opening a crafted URL can execute arbitrary JavaScript in the LIFF app origin, exposing session tokens and enabling unauthorized actions.
Affected Products
- LINE LIFF SDK version 2.20.0
- LINE LIFF SDK versions 2.21.0 through 2.30.x
- LINE LIFF SDK version 2.31.0
Discovery Timeline
- 2026-10-20 - CVE CVE-2026-112148 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-112148
Vulnerability Analysis
The vulnerability is a DOM-based XSS flaw in the LIFF SDK, a JavaScript library used to build web applications that run inside the LINE messaging client. The issue is triggered when a user opens a specially crafted URL in an external browser rather than the in-app LIFF browser. The SDK processes attacker-controlled URL parameters and injects them into the DOM without sufficient neutralization. The injected JavaScript executes in the origin of the LIFF application endpoint, inheriting access to all client-side state within that origin.
Because execution occurs in the LIFF app origin, the attacker's script can read authentication tokens stored in localStorage, sessionStorage, or JavaScript-accessible cookies. The script can also issue authenticated requests against the LIFF application's APIs using the active user session.
Root Cause
The root cause is improper neutralization of untrusted input used to construct DOM content within the LIFF SDK. Values parsed from the URL are reflected into the document without proper encoding or validation, allowing an attacker to break out of the intended data context and introduce executable JavaScript.
Attack Vector
Exploitation requires user interaction. The attacker distributes a crafted link through chat messages, email, or other social channels. When the victim opens the link in an external browser pointed at an affected LIFF application endpoint, the embedded payload executes. No authentication is required for the attacker, and the attack is delivered over the network. See the GitHub Security Advisory GHSA-wppr-qmp4-w627 and the LINE Security Advisory Blog entry for additional context.
Detection Methods for CVE-2026-112148
Indicators of Compromise
- Unusual URL parameters directed at LIFF application endpoints containing HTML, <script> tags, javascript: URIs, or encoded JavaScript payloads.
- Outbound requests from user browsers to attacker-controlled domains immediately after a LIFF app page load.
- Unexpected API calls from legitimate user sessions that deviate from normal LIFF application workflow patterns.
Detection Strategies
- Inventory web properties and dependencies to identify applications bundling LIFF SDK versions 2.20.0 through 2.31.0.
- Inspect web server and CDN access logs for LIFF endpoint requests containing suspicious query strings or fragment identifiers.
- Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution attempts originating from LIFF app pages.
Monitoring Recommendations
- Monitor browser error telemetry and CSP violation reports from the LIFF application origin for anomalous script sources.
- Alert on authentication token use from geolocations or user agents that do not match the originating session.
- Review LINE login and LIFF access API audit trails for session reuse patterns consistent with token theft.
How to Mitigate CVE-2026-112148
Immediate Actions Required
- Upgrade the LIFF SDK to a fixed version above 2.31.0 as published in the vendor advisory.
- Rebuild and redeploy any LIFF applications that statically bundle the SDK so patched code is served to end users.
- Invalidate active LIFF access tokens and require re-authentication for sessions that may have interacted with the vulnerable endpoint.
Patch Information
LINE has issued a security advisory for the LIFF SDK. Refer to GHSA-wppr-qmp4-w627 for the fixed version information and to the LINE Security Advisory Blog for vendor commentary. Application owners must update the SDK dependency and ship a new build; a server-side change alone is not sufficient.
Workarounds
- Enforce a strict Content Security Policy on LIFF application endpoints to block inline script execution and restrict allowed script sources.
- Validate and sanitize all URL parameters consumed by application code before passing them to the DOM or SDK APIs.
- Store authentication tokens in HttpOnly cookies where feasible so that JavaScript-based exfiltration is not possible.
# Update the LIFF SDK dependency to the fixed release
npm install @line/liff@latest
# Verify the installed version is above 2.31.0
npm ls @line/liff
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

