CVE-2026-138372 in Embed Lottie Player Plugin
Summary
by MITRE • 11/29/2026
Embed Lottie Player before 1.4.0 contains a stored cross-site scripting vulnerability that allows Contributor-level attackers to inject scripts via the lpb/lottie-player block link attribute. Attackers can set the link to a javascript: URL that build/view.js renders as an anchor href, executing script when victims click the player.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/29/2026
The Lottie Player plugin for WordPress versions prior to 1.4.0 contains a critical stored cross-site scripting vulnerability within its block editor integration. This flaw specifically affects the lpb/lottie-player block configuration, where user-supplied input is not adequately sanitized before being rendered in the browser context. The vulnerability arises because the application accepts and stores link attributes provided by users with Contributor-level permissions or higher without implementing sufficient validation to prevent malicious script execution. When an attacker constructs a payload using a javascript: URL scheme within this attribute, the data persists in the database as part of the post content or block settings.
From a technical perspective, the core issue lies in how the frontend JavaScript files, specifically build.js and view.js, handle the rendering of these attributes. Instead of escaping special characters or validating that the href property contains only safe protocols like http or https, the application directly injects the stored value into an anchor element's href attribute. This behavior allows any script embedded within a javascript: URL to be executed in the context of the victim’s browser session when they interact with the player component on the frontend. The execution is triggered by user interaction, typically clicking the lottie animation or its associated link area, which causes the browser to interpret and run the injected code as if it were part of the original page source.
The operational impact of this vulnerability is significant because it enables persistent attacks that do not require immediate access to the victim's session at the time of injection. An attacker with Contributor-level privileges can plant these malicious scripts in published content, meaning every user who views and interacts with the affected post becomes a potential target. Successful exploitation allows for account takeover through cookie theft or session hijacking, redirection to phishing sites designed to steal credentials, defacement of the website by modifying DOM elements, or installation of keyloggers to capture sensitive information entered on other pages during the same browsing session. This represents a severe risk to data integrity and confidentiality within WordPress environments where multiple users have editing capabilities.
This vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. Specifically, it falls under stored XSS variants where the malicious payload is saved on the target server rather than being reflected in a single request. In terms of offensive security frameworks such as MITRE ATT&CK for Enterprise or Mobile, this behavior corresponds to techniques involving Client-side Injection and potentially Account Manipulation if used to escalate privileges further after initial access via cookie theft. The attack vector leverages social engineering by embedding the malicious code within seemingly legitimate content that users trust based on their relationship with the site owner.
Mitigation strategies must focus on immediate remediation through software updates as well as defensive coding practices for developers maintaining similar applications. Users running Lottie Player versions earlier than 1.4.0 should upgrade to the latest patched version immediately, which includes proper input validation and output encoding mechanisms that neutralize javascript: URLs before they reach the browser rendering engine. For organizations unable to update instantly, implementing a Web Application Firewall rule to block requests containing javascript: schemes in post content or block attributes can provide temporary protection. Additionally, enforcing strict Content Security Policy headers can help mitigate the impact by restricting script execution sources and preventing inline scripts from running unless explicitly allowed through nonces, thereby reducing the effectiveness of any successfully injected payloads even if they bypass other controls.