VYPR
Unrated severityNVD Advisory· Published Nov 5, 2024· Updated Apr 8, 2026

XT Floating Cart for WooCommerce <= 2.8.2 - Authenticated (Author+) Stored Cross-Site Scripting via SVG File Upload

CVE-2024-9178

Description

The XT Floating Cart for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 2.8.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses the SVG file.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

1

Patches

Vulnerability mechanics

Root cause

"Insufficient input sanitization and output escaping in SVG file upload handling allows stored cross-site scripting."

Attack vector

An authenticated attacker with at least Author-level access uploads a crafted SVG file containing embedded JavaScript (e.g., via `<script>` tags or event handlers) through the plugin's media upload functionality. The plugin's insufficient input sanitization and output escaping [ref_id=1] allow the SVG to be stored on the server. When any user (including administrators) views the uploaded SVG file, the injected script executes in their browser, leading to stored cross-site scripting.

Affected code

The vulnerability resides in the XT Floating Cart for WooCommerce plugin's customizer component, specifically in the file `xt-framework/includes/customizer/class-customizer.php` around line 1012. The plugin fails to properly sanitize SVG file uploads and escape output, allowing authenticated attackers with Author-level access or higher to upload malicious SVG files containing arbitrary JavaScript.

What the fix does

The advisory does not include a published patch diff, but the recommended fix is to add proper input sanitization and output escaping for SVG file uploads. Specifically, the plugin should validate SVG files by stripping executable content (e.g., `<script>` tags, event handler attributes) and ensure that when SVG files are served, the Content-Type header is set correctly and any user-supplied content is escaped before rendering. Without these changes, an attacker can inject arbitrary web scripts that execute in the context of any user viewing the uploaded SVG.

Preconditions

  • authAttacker must have an authenticated WordPress account with at least Author-level capabilities.
  • configThe plugin must be installed and active in a version up to and including 2.8.2.
  • inputThe attacker must be able to upload SVG files through the WordPress media uploader or a plugin-specific upload mechanism.

Generated on Jun 16, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.