CVE-2024-12517 MEDIUM

CVE-2024-12517: WooCommerce Cart Count Shortcode <= 1.0.4 - Authenticated (Contributor+) Stored Cross-Site Scripting

Vendor Prontotools
Product WooCommerce Cart Count Shortcode
Weakness CWE-79 · XSS
Published December 14, 2024
Last update April 8, 2026

CVSS base score

6.4/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

The WooCommerce Cart Count Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'cart_button' shortcode in all versions up to, and including, 1.0.4 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.

Explanation of Vulnerability in Simple Terms

02Summary

The WooCommerce Cart Count Shortcode plugin through version 1.0.4 contains a cross-site scripting (XSS) vulnerability in its shortcode output. An authenticated user with low privileges can inject malicious scripts that execute in other users' browsers, potentially stealing session data or performing actions on their behalf. The vulnerability affects all site visitors due to scope change.

What an attacker can do

03Attacker Capabilities

Inject malicious JavaScript that runs in other users' browsers and steals their session data or performs actions as them.

Potential impact on your site

04Site Impact

Authenticated attackers can compromise visitor sessions and perform unauthorized actions across your site without additional user clicks.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege account (e.g., subscriber or contributor) on the site; no user interaction required.

Key dates

06Disclosure timeline

December 14, 2024 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE