Flatsome <= 3.18.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2024-5156
CVSS 6.4 (Medium)
Publicly Published June 19, 2024
Last Updated June 20, 2024
Researcher stealthcopter

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Flatsome

Software Type Theme
Software Slug flatsome
Patched? Yes
Remediation Update to version 3.19.0, or a newer patched version
Affected Version
  • <= 3.18.7
Patched Version
  • 3.19.0

Recent vulnerabilities in Flatsome

# Title CVE ID CVSS Researchers Date
1 Flatsome <= 3.20.5 - Missing Authorization CVE-2026-57729 5.3 Bonds July 6, 2026
2 Flatsome <= 3.20.5 - Reflected Cross-Site Scripting CVE-2026-57728 6.1 Bonds July 6, 2026
3 Flatsome <= 3.20.5 - Missing Authorization CVE-2026-57730 4.3 Bonds July 1, 2026
4 Flatsome <= 3.20.5 - Missing Authorization CVE-2026-57731 4.3 Bonds July 1, 2026
5 Flatsome <= 3.20.5 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-28083 6.4 João Pedro Soares de Alcântara October 6, 2025
6 Flatsome <= 3.20.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode CVE-2025-8684 6.4 stealthcopter September 4, 2025
7 Flatsome <= 3.19.6 - Missing Authorization CVE-2026-31915 5.3 Ananda Dhakal October 24, 2024
8 Flatsome | Multi-Purpose Responsive WooCommerce Theme <= 3.18.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via Multiple Shortcodes CVE-2024-5346 6.4 wesley (wcraft) June 21, 2024
9 Flatsome <= 3.17.5 - Unauthenticated PHP Object Injection CVE-2023-40555 9.8 Rafie Muhammad September 5, 2023
10 Flatsome <= 3.16.8 - Reflected Cross-Site Scripting in UX Builder CVE-2023-28994 6.1 Rafie Muhammad April 25, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation