Jupiter X Core <= 4.14.1 - Authenticated (Subscriber+) Stored Cross-Site Scripting
Description
The Jupiter X Core plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 4.14.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
CVSS Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NTechnical Details
<=4.14.1Source Code
WordPress.org SVNThis plan outlines the research and exploitation process for **CVE-2026-39491** (Stored XSS) in the **Jupiter X Core** plugin. ### 1. Vulnerability Summary The **Jupiter X Core** plugin (versions <= 4.14.1) contains a stored cross-site scripting vulnerability. The issue stems from an AJAX handler i…
Show full research plan
This plan outlines the research and exploitation process for CVE-2026-39491 (Stored XSS) in the Jupiter X Core plugin.
1. Vulnerability Summary
The Jupiter X Core plugin (versions <= 4.14.1) contains a stored cross-site scripting vulnerability. The issue stems from an AJAX handler intended for theme or layout settings that fails to verify administrative capabilities and does not sanitize input before saving it to the database. Specifically, a subscriber-level user can trigger an AJAX action to update plugin settings or metadata. When these settings are rendered on the frontend or in the admin dashboard, the malicious script executes.
2. Attack Vector Analysis
- Endpoint:
wp-admin/admin-ajax.php - Action:
jupiterx_core_cp_save_settingsorjupiterx_core_save_layout_settings(inferred from common Jupiter X Core AJAX patterns). - Vulnerable Parameter: Likely a nested array within a
settingsordataparameter (e.g.,settings[breadcrumb_text]orsettings[footer_content]). - Authentication: Required (Subscriber-level or higher).
- Preconditions: The plugin must be active, and the attacker must have valid subscriber credentials.
3. Code Flow (Inferred)
- Registration: The plugin registers an AJAX action for authenticated users:
add_action( 'wp_ajax_jupiterx_core_cp_save_settings', 'jupiterx_core_cp_save_settings_callback' ); - Entry Point:
jupiterx_core_cp_save_settings_callback()(inincludes/control-panel/2.0/includes/ajax.php) is called. - Verification Gap: The function likely checks a nonce but fails to call
current_user_can( 'manage_options' ). - Source: The function retrieves raw data from
$_POST['settings']. - Sink (Storage): The data is passed to
update_option( 'jupiterx_settings', $settings )orupdate_post_meta()without sanitization. - Sink (Output): When a page is loaded, the plugin retrieves the setting and echoes it:
echo get_option( 'jupiterx_settings' )['vulnerable_field'];(missingesc_htmloresc_attr).
4. Nonce Acquisition Strategy
Jupiter X Core typically localizes nonces for its Control Panel (CP) in a global JavaScript object.
- Identify Script Loading: The Control Panel scripts load on the Jupiter X dashboard page.
- Setup: Create a Subscriber user and log in.
- Navigation: Navigate to
/wp-admin/admin.php?page=jupiterx(or the default plugin landing page accessible to users). - Extraction: Use
browser_evalto extract the nonce:- Variable Name:
window.jupiterx_core_cp(inferred). - Key:
nonce. - Command:
browser_eval("window.jupiterx_core_cp?.nonce").
- Variable Name:
5. Exploitation Strategy
- Login: Authenticate as a Subscriber user via the
http_requesttool. - Nonce Retrieval: Navigate to the Jupiter X dashboard and extract the
jupiterx_core_cp.nonceas described above. - Craft Payload: Create a JSON or URL-encoded payload that targets a setting reflected on the site header or breadcrumbs.
- Payload:
<img src=x onerror=alert("XSS_EXPLOITED")>
- Payload:
- Submit Request: Use
http_requestto send a POST request toadmin-ajax.php.POST /wp-admin/admin-ajax.php HTTP/1.1 Content-Type: application/x-www-form-urlencoded action=jupiterx_core_cp_save_settings&nonce=[EXTRACTED_NONCE]&settings[breadcrumb_custom_text]=<img src=x onerror=alert('XSS_EXPLOITED')> - Trigger: Navigate to the site's homepage or any post where breadcrumbs/settings are displayed.
6. Test Data Setup
- Users:
admin(Administrator)attacker(Subscriber)
- Plugin Configuration: Ensure the "Breadcrumbs" or "Custom Layouts" feature is enabled in Jupiter X settings so the injected meta/option is actually rendered on the frontend.
- Content: Create at least one public post to view the breadcrumb/header output.
7. Expected Results
- Success Response: The AJAX request should return a JSON success message (e.g.,
{"success": true}). - Persistence: The malicious payload should be visible in the database under the
jupiterx_settingsoption. - Execution: When viewing the frontend, a JavaScript alert box with "XSS_EXPLOITED" should appear.
8. Verification Steps
- Database Check: Use WP-CLI to verify the stored value:
wp option get jupiterx_settings - Frontend Check: Use
http_request(GET) on the homepage and check if the raw payload exists in the HTML:grep "XSS_EXPLOITED" response_body.html - Admin Check: Log in as an Administrator and navigate to the plugin settings page to see if the script executes in the admin context (more critical impact).
9. Alternative Approaches
- Elementor Widget Settings: If the
cp_save_settingsaction is not the culprit, investigate thejupiterx_core_save_elementor_templateaction. This often allows users to save widget configurations. A subscriber might be able to save a "Custom HTML" widget to a global section. - Meta Injection: Try the action
jupiterx_core_save_post_meta(inferred) if the plugin allows subscribers to edit theme-specific metadata for their own posts, which then fails to escape on output. - Payload Variations:
"><script>alert(1)</script>(to break out of attribute quotes).javascript:alert(1)(if the payload is injected into a URL/href field).
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.