Sploit.io - Search

Product: Z Companion, version: >= *, <= 1.1.1

CVE-2025-2575

Severity: MEDIUM

Description: The Z Companion plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 1.1.1 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. Note: This requires Royal Shop theme to be installed.

CVSS Score: 6.4

Priority

B

CISA Data

EPSS Data

  • EPSS: 0.001100000
  • Percentile: 0.288200000
  • Date: 2026-05-21

ExploitDB

No data available.

HackerOne Data

  • Rank: 9444
  • Reports submitted count: 0
  • Unknown: 0
  • None: 0
  • Low: 0
  • Medium: 0
  • High: 0
  • Critical: 0

GitHub PoCs

    Nuclei Templates

    No data available.

    VulnCheck Data

    Affected Products:

    • wpzita Z Companion - Versions: *

    References:

    Risk Assessment

    1. Risk Assessment
    The Z Companion plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability relating to SVG file uploads. This vulnerability, with a CVSS score of 6.4 (Medium), allows authenticated attackers with Author-level access or higher to inject malicious scripts into SVG files. These scripts execute whenever a user accesses the affected SVG file. The risk is moderate because exploitation requires authentication and the Royal Shop theme to be installed, limiting the scope of impact. The business impact could range from defacement of the website to potential theft of user cookies or redirection to malicious sites, depending on the injected script. The likelihood of exploitation is considered moderate, as attackers frequently target WordPress plugins. The ease of exploitation is also moderate, requiring an authenticated user with appropriate permissions. Confidentiality is impacted at a low level as the attacker may be able to steal cookies or session tokens. Integrity is impacted at a low to moderate level, as the attacker can modify the content displayed to users. Availability is currently not directly impacted, but a carefully crafted script could potentially lead to denial of service. The EPSS score of 0.001100000 suggests a relatively low, but not insignificant, probability of exploitation in the wild.

    2. Potential Attack Scenarios
    An authenticated attacker with Author-level access can upload a malicious SVG file containing embedded JavaScript code. Let’s say an attacker uploads an SVG image with a script that redirects all users accessing the image to a phishing website designed to steal WordPress credentials. The attacker first logs into the WordPress site as an Author or higher. Then they upload the crafted SVG file via the Z Companion plugin's functionality. When a user views a page containing the uploaded SVG image, the JavaScript code embedded in the SVG file executes, redirecting them to the phishing site. The attacker then collects the stolen credentials. This scenario impacts the confidentiality of user credentials and potentially the integrity of the WordPress installation if the credentials are used to further compromise the system.

    3. Mitigation Recommendations
    The primary mitigation is to update the Z Companion plugin to version 1.1.2 or later, which addresses the input sanitization and output escaping issue. This can be done through the WordPress admin panel (Plugins -> Installed Plugins). As a temporary workaround, if upgrading immediately is not possible, carefully review all uploaded SVG files for potentially malicious scripts. Ensure robust input validation is performed on SVG uploads, and output escaping is consistently applied when displaying SVG files. Regularly scan the WordPress site for vulnerabilities using a plugin like Wordfence. Refer to the official Wordfence advisory for more detailed information: https://www.wordfence.com/threat-intel/vulnerabilities/id/e0f7bba4-76c3-4904-bd96-2074147b33f5?source=cve. Finally, ensure users with Author-level access and above are aware of the potential for XSS attacks and practice safe upload habits.

    4. Executive Summary
    The Z Companion plugin for WordPress has a Medium-severity vulnerability that allows authenticated attackers to inject malicious scripts through SVG file uploads. This vulnerability could lead to website defacement, user redirection to phishing sites, or potential theft of user credentials. While the attack requires an authenticated user with Author-level access and the Royal Shop theme, the impact could be significant. We recommend immediately updating the Z Companion plugin to version 1.1.2 or later to address this vulnerability. Prompt action is crucial to protect our website and its users from potential attacks and maintain the integrity of our WordPress installation. The vulnerability poses a moderate risk, and addressing it will improve the overall security posture of our WordPress site.