Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-10135 Overview
CVE-2025-10135 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP ViewSTL plugin for WordPress. The flaw affects all versions up to and including 1.0. The plugin fails to sanitize user-supplied attributes passed to the viewstl shortcode and does not escape those values on output. Authenticated users holding contributor-level access or higher can inject arbitrary JavaScript into posts or pages. The injected script executes in the browser of any visitor who loads the affected page, enabling session theft, redirection, or unauthorized administrative actions when triggered by a privileged user. The issue is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Contributor-level accounts can persist JavaScript in published content and execute it in the context of any visiting user, including administrators.
Affected Products
- WP ViewSTL plugin for WordPress — all versions up to and including 1.0
- WordPress sites permitting contributor-level user registration
- WordPress installations using the viewstl shortcode in author-controlled content
Discovery Timeline
- 2025-10-15 - CVE-2025-10135 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-10135
Vulnerability Analysis
The WP ViewSTL plugin registers a viewstl shortcode that renders 3D STL model viewers inside WordPress posts and pages. The shortcode handler accepts user-controlled attributes and embeds them directly into the generated HTML output. Because the plugin performs neither input sanitization nor output escaping on these attributes, an authenticated user can supply values containing HTML or JavaScript payloads. When the shortcode is rendered, the payload becomes part of the page markup and executes in the browser of every visitor.
Stored XSS carries higher operational risk than reflected XSS because the payload persists in the database and triggers automatically without requiring social engineering. In a WordPress context, execution in an administrator's browser can lead to account takeover, plugin installation, or arbitrary content modification. The stored payload also runs across any user role that views the affected post.
Root Cause
The root cause is missing sanitization on shortcode attributes and missing escaping when those attributes are written into HTML. WordPress provides helper functions such as sanitize_text_field(), esc_attr(), and esc_html() for exactly this purpose, but the shortcode handler in WP ViewSTL 1.0 and earlier does not apply them to attacker-controlled input.
Attack Vector
An authenticated attacker with contributor privileges or above authors a post that includes the viewstl shortcode with a malicious attribute value. After the post is published or previewed by a higher-privileged user, the injected script executes in that user's browser session. No user interaction beyond loading the page is required. Refer to the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-10135
Indicators of Compromise
- Posts or pages containing viewstl shortcode attributes with values containing <script>, onerror=, onload=, or javascript: substrings
- Unexpected outbound requests from administrator browser sessions to attacker-controlled domains after viewing plugin-rendered content
- New administrator accounts or modified user roles created shortly after contributor activity
- WordPress audit log entries showing contributor-authored posts using viewstl with unusually long or encoded attribute values
Detection Strategies
- Query the wp_posts table for post_content entries containing the viewstl shortcode and inspect attribute values for HTML or script content
- Deploy a web application firewall rule that inspects POST requests to wp-admin/post.php for shortcode attributes containing script-like payloads
- Monitor plugin version inventory across WordPress estates and flag installations of WP ViewSTL at version 1.0 or earlier
Monitoring Recommendations
- Alert on privilege changes and new administrator account creation in WordPress
- Log and review all contributor and author post submissions before publication
- Enable Content Security Policy reporting to surface inline script execution originating from post content
How to Mitigate CVE-2025-10135
Immediate Actions Required
- Disable or remove the WP ViewSTL plugin until a patched version is confirmed by the vendor
- Audit existing posts and pages for viewstl shortcode usage and remove any suspicious attribute values
- Review contributor, author, and editor accounts for signs of abuse and rotate credentials where necessary
- Restrict user registration and revoke unnecessary contributor-level accounts
Patch Information
No fixed version is listed in the NVD record at the time of publication. Monitor the WordPress Plugin Page and the Wordfence Vulnerability Report for a patched release and apply it immediately upon availability.
Workarounds
- Uninstall WP ViewSTL entirely if 3D model viewing is not required
- Restrict shortcode usage by removing the viewstl shortcode registration via a mu-plugin using remove_shortcode('viewstl')
- Enforce a strict Content Security Policy that blocks inline JavaScript on WordPress front-end pages
- Require editorial review of all contributor-submitted content before publishing
# Configuration example: disable the vulnerable shortcode via a must-use plugin
# File: wp-content/mu-plugins/disable-viewstl.php
<?php
add_action('init', function () {
if (shortcode_exists('viewstl')) {
remove_shortcode('viewstl');
}
}, 20);
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

