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-11826 Overview
CVE-2025-11826 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting the WP Company Info plugin for WordPress. The flaw resides in the class attribute of the social-networks shortcode and results from insufficient input sanitization and output escaping. All plugin versions up to and including 1.9.0 are affected. Authenticated users with contributor-level access or above can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who loads the affected page, enabling session theft, redirects, or arbitrary actions in the victim's authenticated context.
Critical Impact
Authenticated contributors can persist JavaScript payloads on WordPress pages, executing in the browser context of every subsequent visitor, including administrators.
Affected Products
- WP Company Info plugin for WordPress, versions 1.9.0 and prior
- WordPress sites permitting contributor-level or higher registration
- Any WordPress installation using the social-networks shortcode from this plugin
Discovery Timeline
- 2025-11-21 - CVE-2025-11826 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-11826
Vulnerability Analysis
The vulnerability exists in the shortcode handler for social-networks inside class-wp-company-info-social-links.php. The plugin accepts a class attribute from the shortcode arguments and emits it into the rendered HTML without proper sanitization or escaping. An attacker with contributor privileges can embed the shortcode with a crafted class value that breaks out of the attribute context and injects script content. Because the payload is stored in post content, it persists across page loads and executes for every visitor rendering the post.
Exploitation requires only authenticated contributor access, a low bar on sites that allow open registration or guest contributions. The scoped impact affects browsers of other users, including administrators who preview or review submitted content, enabling account takeover through session cookie theft or authenticated request forgery.
Root Cause
The root cause is missing input sanitization on the shortcode class attribute combined with absent output escaping when the value is rendered into the HTML class attribute. WordPress provides esc_attr() for exactly this context, but the plugin does not apply it before echoing the attribute value.
Attack Vector
An authenticated contributor submits a post or page containing the social-networks shortcode with a malicious class attribute. When the post is rendered, the unsanitized attribute breaks out of the HTML context and executes attacker-controlled JavaScript in the visitor's browser. The vulnerability requires low privileges, no user interaction beyond loading the page, and can pivot to administrator account compromise. Refer to the WordPress Plugin Source Code and the Wordfence Vulnerability Report for further technical detail.
Detection Methods for CVE-2025-11826
Indicators of Compromise
- Post or page content containing the [social-networks] shortcode with unusual class attribute values, especially with quote characters, angle brackets, or event handlers such as onmouseover=.
- Unexpected outbound requests from visitor browsers to attacker-controlled domains sourced from WordPress pages.
- New administrator accounts or role changes following contributor-submitted content review.
Detection Strategies
- Scan the wp_posts table for shortcode instances of social-networks and inspect the class argument for HTML metacharacters.
- Review WordPress access logs for unusual POST requests to /wp-admin/post.php from contributor accounts followed by administrator page views.
- Deploy a web application firewall (WAF) rule to flag shortcode attributes containing <script, javascript:, or common XSS payload markers.
Monitoring Recommendations
- Monitor Content-Security-Policy violation reports for inline script executions on pages containing the shortcode.
- Alert on WordPress user role escalations and new administrator account creation events.
- Track plugin version inventory and flag installations running WP Company Info 1.9.0 or earlier.
How to Mitigate CVE-2025-11826
Immediate Actions Required
- Update the WP Company Info plugin to a version later than 1.9.0 once released by the vendor.
- Audit existing posts and pages for the social-networks shortcode and remove or sanitize suspicious class attributes.
- Restrict contributor-level and higher registration to trusted users and enforce content review workflows.
Patch Information
At the time of publication, no fixed version is referenced in the available advisories. Monitor the Wordfence Vulnerability Report and the plugin's WordPress.org page for a patched release.
Workarounds
- Deactivate and remove the WP Company Info plugin until a patched version is available.
- Deploy a WAF rule that blocks shortcode submissions containing HTML metacharacters in attribute values.
- Implement a strict Content-Security-Policy header that disallows inline script execution on public pages.
- Temporarily downgrade contributor accounts or require editorial approval before publishing contributor content.
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

