CVE-2026-133938 in JTL-Shop
Summary
by MITRE • 11/27/2026
The backend language switch action (quick_change_language) of the JTL-Shop administration backend is executed without a CSRF token check, and the supplied language value is neither validated against the installed backend languages nor encoded on output. The value is stored in the session and in the account data of the administrator and rendered without output encoding in JavaScript strings and HTML attributes of backend pages. An unauthenticated remote attacker can thereby cause script code to be executed in the browser of a logged-in administrator who opens a crafted web page; the code can perform actions with the privileges of that administrator.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified involves a critical failure in input validation and output encoding within the JTL-Shop administration backend, specifically affecting the quick_change_language action. This flaw allows an unauthenticated remote attacker to execute arbitrary JavaScript code in the browser context of any logged-in administrator. The root cause lies in two distinct security failures: the absence of Cross-Site Request Forgery protections on a state-changing operation and the lack of proper sanitization for user-supplied input that is subsequently rendered without encoding. These deficiencies create a pathway for Stored Cross-Site Scripting, where malicious payloads are persisted within the application's session data or administrator account records and later executed when an admin interacts with affected backend pages.
From a technical perspective, the quick_change_language endpoint accepts language identifiers provided by the client side but fails to verify these values against a whitelist of installed backend languages. This lack of validation means that arbitrary strings can be submitted as language codes. Furthermore, the application does not apply output encoding when storing or rendering this data. The malicious input is stored directly in the user's session and account profile database fields. When an administrator loads any page within the administration interface that references their own settings or preferences, the unencoded payload is injected into JavaScript string literals and HTML attributes. Because modern browsers interpret these contexts as executable code rather than plain text, the embedded script runs with the same privileges as the administrative user session.
The operational impact of this vulnerability is severe due to its potential for account takeover and full system compromise. Since the attack requires only that an administrator visit a crafted web page controlled by the attacker, it can be executed via social engineering tactics such as phishing links or malicious advertisements on third-party sites visited by the admin. Once triggered, the script operates within the context of the JTL-Shop backend, granting the attacker full access to administrative functions. This includes the ability to modify product listings, alter pricing structures, steal sensitive customer data including payment information and personal identifiable information, install unauthorized plugins or modules, and potentially escalate privileges further depending on the underlying server configuration. The persistence of the payload in session and account data means that every subsequent page load by the administrator can re-execute the malicious code until the vulnerability is patched or the affected accounts are cleared.
This flaw aligns with several well-known industry standards for categorizing security weaknesses. It primarily maps to CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. Specifically, this represents a Stored XSS variant because the malicious data is saved on the target server and later retrieved by other users. Additionally, the lack of CSRF protection corresponds to CWE-352, or Cross-Site Request Forgery, although in this case it serves primarily to facilitate the initial injection rather than being the sole vector for exploitation. In terms of offensive security frameworks, this vulnerability facilitates techniques associated with MITRE ATT&CK T1059, Command and Scripting Interpreter, allowing attackers to execute commands within the application environment through browser-based scripts.
Mitigation strategies must address both the input validation failure and the output encoding deficiency immediately. Developers should implement strict allow-list validation for all language codes submitted via the quick_change_language action, ensuring that only officially supported locale identifiers are accepted by the backend logic. Simultaneously, it is imperative to apply context-aware output encoding whenever user-controlled data is rendered into HTML attributes or JavaScript string literals. This involves using established libraries that encode special characters such as quotes, ampersands, and angle brackets based on their specific rendering context. Furthermore, implementing anti-CSRF tokens for all state-changing POST requests in the administration panel will prevent unauthorized actions from being executed by attackers leveraging social engineering techniques. Regular security audits focusing on data flow analysis can help identify similar patterns of unvalidated input propagation throughout the application architecture to ensure comprehensive remediation.