CVE-2024-5156: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in UX-themes Flatsome
The Flatsome theme for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's shortcode(s) in all versions up to, and including, 3.18.7 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
The Flatsome WordPress theme versions up to 3.18.7 contain a stored cross-site scripting vulnerability due to improper neutralization of input during web page generation (CWE-79). Authenticated attackers with contributor-level privileges can inject arbitrary JavaScript code via shortcode attributes that are not properly sanitized or escaped. This malicious code executes in the context of users visiting the compromised pages, potentially leading to session hijacking or other client-side attacks. The vulnerability is confirmed and published with a CVSS 3.1 score of 6.4 (medium severity). No patch or official remediation details have been disclosed yet.
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via shortcode attributes. These scripts execute in the browsers of users who view the infected pages, potentially compromising user sessions or performing unauthorized actions within the context of the victim's browser. The vulnerability does not affect availability but impacts confidentiality and integrity to a limited extent. There are no known active exploits reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or limiting the use of vulnerable shortcode features. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2024-5156: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in UX-themes Flatsome
Description
The Flatsome theme for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's shortcode(s) in all versions up to, and including, 3.18.7 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Flatsome WordPress theme versions up to 3.18.7 contain a stored cross-site scripting vulnerability due to improper neutralization of input during web page generation (CWE-79). Authenticated attackers with contributor-level privileges can inject arbitrary JavaScript code via shortcode attributes that are not properly sanitized or escaped. This malicious code executes in the context of users visiting the compromised pages, potentially leading to session hijacking or other client-side attacks. The vulnerability is confirmed and published with a CVSS 3.1 score of 6.4 (medium severity). No patch or official remediation details have been disclosed yet.
Potential Impact
An attacker with contributor-level or higher access can inject persistent malicious scripts into pages via shortcode attributes. These scripts execute in the browsers of users who view the infected pages, potentially compromising user sessions or performing unauthorized actions within the context of the victim's browser. The vulnerability does not affect availability but impacts confidentiality and integrity to a limited extent. There are no known active exploits reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or limiting the use of vulnerable shortcode features. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-05-20T22:43:03.796Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6bdeb7ef31ef0b55ba13
Added to database: 2/25/2026, 9:38:38 PM
Last enriched: 4/9/2026, 7:53:26 AM
Last updated: 4/12/2026, 2:38:33 PM
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.