CVE-2025-8685
BaseFortify
Publication date: 2025-08-12
Last updated on: 2025-08-12
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| emilien_laborde | wp_chart_generator | 1.0.4 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2025-8685 is a Stored Cross-Site Scripting (XSS) vulnerability in the Wp chart generator WordPress plugin (up to version 1.0.4). It occurs because the plugin does not properly sanitize or escape user-supplied attributes in its wpchart shortcode. This allows authenticated users with contributor-level access or higher to inject malicious scripts into pages. These scripts execute whenever any user views the infected page, potentially compromising user data or site integrity.
How can this vulnerability impact me? :
This vulnerability can allow attackers with contributor-level access to inject arbitrary JavaScript into pages, which will execute in the browsers of users who view those pages. This can lead to theft of user credentials, session hijacking, defacement, or other malicious actions performed on behalf of the victim user. Since the attack requires authenticated access, it primarily impacts sites where contributors or higher roles are not fully trusted or where user input is not carefully controlled.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
Detection of this vulnerability involves identifying the presence of the vulnerable Wp chart generator plugin version 1.0.4 or earlier installed on your WordPress site. Since the vulnerability is a Stored Cross-Site Scripting via the wpchart shortcode, you can search for usage of this shortcode in posts or pages. Commands to detect the plugin and shortcode usage include: 1) Check installed plugins and their versions via WP-CLI: `wp plugin list | grep wp-chart-generator` 2) Search for the shortcode usage in the WordPress database (assuming access to MySQL): `SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%[wpchart%'` 3) Monitor HTTP requests for suspicious payloads or script injections in pages using the shortcode. These steps help detect if the vulnerable plugin is present and if the shortcode is used in content, which could be exploited. [1]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include: 1) Disable or uninstall the Wp chart generator plugin version 1.0.4 or earlier from your WordPress installation to prevent exploitation. 2) Since the plugin has been temporarily closed and removed from the official repository pending a security review, avoid reinstalling it until a patched version is released. 3) Review and sanitize any content using the wpchart shortcode to remove potentially malicious scripts. 4) Limit contributor-level access and above to trusted users only, as the vulnerability requires authenticated contributor-level access. 5) Monitor your site for suspicious activity or injected scripts in pages using the shortcode. These steps reduce the risk of exploitation until a secure plugin version is available. [1]