Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-5530: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpclever WPC Smart Compare for WooCommerce

0
Medium
VulnerabilityCVE-2025-5530cvecve-2025-5530cwe-79
Published: Fri Jul 11 2025 (07/11/2025, 07:23:00 UTC)
Source: CVE Database V5
Vendor/Project: wpclever
Product: WPC Smart Compare for WooCommerce

Description

The WPC Smart Compare for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'shortcode_btn' shortcode in all versions up to, and including, 6.4.6 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

AILast updated: 02/27/2026, 15:21:26 UTC

Technical Analysis

CVE-2025-5530 identifies a stored cross-site scripting (XSS) vulnerability in the WPC Smart Compare for WooCommerce plugin for WordPress, present in all versions up to and including 6.4.6. The vulnerability stems from improper neutralization of input during web page generation, specifically within the 'shortcode_btn' shortcode. This shortcode fails to adequately sanitize and escape user-supplied attributes, allowing authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages. Because the injected scripts are stored, they execute every time any user accesses the affected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability requires authentication at contributor level or above but does not require further user interaction to trigger. The CVSS 3.1 base score is 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, privileges required at low level, no user interaction, and scope changed due to impact on other components. No known public exploits have been reported yet. The vulnerability is classified under CWE-79, which covers improper input neutralization leading to XSS. The issue highlights the importance of rigorous input validation and output encoding in WordPress plugins, especially those handling shortcodes that accept user input. Since WooCommerce is widely used globally, and this plugin is popular for product comparison features, the vulnerability poses a significant risk to e-commerce sites relying on this plugin.

Potential Impact

The primary impact of CVE-2025-5530 is on the confidentiality and integrity of affected websites and their users. Exploitation allows an authenticated contributor or higher to inject persistent malicious scripts that execute in the context of any user visiting the compromised page. This can lead to session hijacking, theft of sensitive information such as cookies or credentials, unauthorized actions performed on behalf of users, and potential defacement or misinformation. While availability is not directly affected, the reputational damage and loss of customer trust can be significant for e-commerce businesses. The requirement for contributor-level authentication limits the attack surface but does not eliminate risk, especially in environments with multiple content editors or less stringent access controls. The scope of impact extends beyond the initial compromised user to all visitors of the injected page, increasing the potential damage. Organizations worldwide using WooCommerce with this plugin are at risk, particularly those with active contributor roles and public-facing product comparison pages. The absence of known exploits in the wild currently provides a window for remediation before widespread attacks occur.

Mitigation Recommendations

To mitigate CVE-2025-5530, organizations should take the following specific actions: 1) Immediately audit user roles and permissions to ensure only trusted users have contributor-level or higher access, minimizing the risk of malicious input injection. 2) Monitor and review all content created or edited using the 'shortcode_btn' shortcode for suspicious or unexpected scripts. 3) Apply patches or updates from the plugin vendor as soon as they become available; if no patch exists yet, consider temporarily disabling the plugin or the vulnerable shortcode functionality. 4) Implement web application firewall (WAF) rules to detect and block common XSS payloads targeting this shortcode. 5) Enforce strict input validation and output encoding practices in custom code or plugin extensions interacting with this shortcode. 6) Educate content contributors about the risks of injecting untrusted content and the importance of secure content creation practices. 7) Conduct regular security scans and penetration tests focusing on WordPress plugins and shortcode inputs to detect similar vulnerabilities early. These measures collectively reduce the risk of exploitation and limit the potential damage from any successful attacks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-06-03T14:41:48.604Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6870bdbba83201eaacacf6f6

Added to database: 7/11/2025, 7:31:07 AM

Last enriched: 2/27/2026, 3:21:26 PM

Last updated: 3/26/2026, 11:12:47 AM

Views: 132

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses