CVE-2025-13899: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pntrinh TR Timthumb
The TR Timthumb plugin for WordPress is vulnerable to Stored Cross-Site Scripting via shortcode attributes in all versions up to, and including, 1.0.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI Analysis
Technical Summary
CVE-2025-13899 is a stored cross-site scripting (XSS) vulnerability identified in the TR Timthumb plugin for WordPress, affecting all versions up to and including 1.0.4. The root cause is insufficient sanitization and escaping of shortcode attributes during web page generation, which allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into pages. This malicious code is stored persistently and executed in the context of any user who views the compromised page, potentially leading to session hijacking, privilege escalation, or redirection to malicious sites. The vulnerability requires no user interaction but does require authenticated access, limiting exploitation to users who can log in with at least Contributor privileges. The CVSS 3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and partial impact on confidentiality and integrity but no impact on availability. No patches or fixes have been linked yet, and no known exploits have been reported in the wild. Given the popularity of WordPress and the plugin, this vulnerability poses a significant risk to websites using TR Timthumb, especially those allowing multiple contributors or editors. Attackers could leverage this flaw to compromise site visitors or administrators by injecting persistent malicious scripts.
Potential Impact
The impact of CVE-2025-13899 is primarily on the confidentiality and integrity of affected WordPress sites and their users. Successful exploitation allows attackers to execute arbitrary JavaScript in the context of the victim’s browser, which can lead to theft of session cookies, user credentials, or other sensitive information. It may also enable attackers to perform actions on behalf of users, deface websites, or distribute malware. Since the vulnerability is stored XSS, the malicious payload persists and affects all visitors to the compromised pages, amplifying the potential damage. Organizations relying on TR Timthumb for image handling or other functionality risk reputational damage, data breaches, and loss of user trust. The requirement for authenticated access limits the attack surface but does not eliminate risk, especially in environments with multiple contributors or weak account controls. The vulnerability does not affect availability but can indirectly cause service disruptions if exploited for further attacks or site defacement.
Mitigation Recommendations
To mitigate CVE-2025-13899, organizations should immediately upgrade the TR Timthumb plugin to a version that addresses this vulnerability once available. In the absence of an official patch, administrators should restrict Contributor-level access to trusted users only and audit existing user roles to minimize exposure. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections in shortcode attributes can provide temporary protection. Site owners should also sanitize and validate all user inputs rigorously, particularly shortcode attributes, by applying strict input validation and output encoding in custom code. Regularly scanning the website for injected scripts or unusual content can help detect exploitation attempts early. Additionally, enforcing strong authentication policies, including multi-factor authentication for all users with elevated privileges, reduces the risk of unauthorized exploitation. Monitoring logs for suspicious activities related to shortcode usage or content changes is recommended to identify potential attacks.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, India, Brazil, Japan, Netherlands, Italy, Spain
CVE-2025-13899: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pntrinh TR Timthumb
Description
The TR Timthumb plugin for WordPress is vulnerable to Stored Cross-Site Scripting via shortcode attributes in all versions up to, and including, 1.0.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-13899 is a stored cross-site scripting (XSS) vulnerability identified in the TR Timthumb plugin for WordPress, affecting all versions up to and including 1.0.4. The root cause is insufficient sanitization and escaping of shortcode attributes during web page generation, which allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into pages. This malicious code is stored persistently and executed in the context of any user who views the compromised page, potentially leading to session hijacking, privilege escalation, or redirection to malicious sites. The vulnerability requires no user interaction but does require authenticated access, limiting exploitation to users who can log in with at least Contributor privileges. The CVSS 3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and partial impact on confidentiality and integrity but no impact on availability. No patches or fixes have been linked yet, and no known exploits have been reported in the wild. Given the popularity of WordPress and the plugin, this vulnerability poses a significant risk to websites using TR Timthumb, especially those allowing multiple contributors or editors. Attackers could leverage this flaw to compromise site visitors or administrators by injecting persistent malicious scripts.
Potential Impact
The impact of CVE-2025-13899 is primarily on the confidentiality and integrity of affected WordPress sites and their users. Successful exploitation allows attackers to execute arbitrary JavaScript in the context of the victim’s browser, which can lead to theft of session cookies, user credentials, or other sensitive information. It may also enable attackers to perform actions on behalf of users, deface websites, or distribute malware. Since the vulnerability is stored XSS, the malicious payload persists and affects all visitors to the compromised pages, amplifying the potential damage. Organizations relying on TR Timthumb for image handling or other functionality risk reputational damage, data breaches, and loss of user trust. The requirement for authenticated access limits the attack surface but does not eliminate risk, especially in environments with multiple contributors or weak account controls. The vulnerability does not affect availability but can indirectly cause service disruptions if exploited for further attacks or site defacement.
Mitigation Recommendations
To mitigate CVE-2025-13899, organizations should immediately upgrade the TR Timthumb plugin to a version that addresses this vulnerability once available. In the absence of an official patch, administrators should restrict Contributor-level access to trusted users only and audit existing user roles to minimize exposure. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections in shortcode attributes can provide temporary protection. Site owners should also sanitize and validate all user inputs rigorously, particularly shortcode attributes, by applying strict input validation and output encoding in custom code. Regularly scanning the website for injected scripts or unusual content can help detect exploitation attempts early. Additionally, enforcing strong authentication policies, including multi-factor authentication for all users with elevated privileges, reduces the risk of unauthorized exploitation. Monitoring logs for suspicious activities related to shortcode usage or content changes is recommended to identify potential attacks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-12-02T16:14:03.217Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6933c72011163305efef427d
Added to database: 12/6/2025, 6:03:12 AM
Last enriched: 2/27/2026, 10:30:08 AM
Last updated: 3/24/2026, 10:53:58 AM
Views: 115
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.