Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-10166: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in tw2113 Social Media Shortcodes

0
Medium
VulnerabilityCVE-2025-10166cvecve-2025-10166cwe-79
Published: Wed Sep 17 2025 (09/17/2025, 01:49:14 UTC)
Source: CVE Database V5
Vendor/Project: tw2113
Product: Social Media Shortcodes

Description

The Social Media Shortcodes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'twitter' shortcode in all versions up to, and including, 1.3.1 due to insufficient input sanitization and output escaping on user supplied attributes. 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

AILast updated: 02/27/2026, 18:12:05 UTC

Technical Analysis

CVE-2025-10166 identifies a stored cross-site scripting vulnerability in the Social Media Shortcodes plugin for WordPress, specifically in the 'twitter' shortcode functionality. This vulnerability stems from insufficient sanitization and escaping of user-supplied attributes, which allows authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages. When other users access these pages, the injected scripts execute in their browsers, potentially compromising session tokens, redirecting users, or performing unauthorized actions on behalf of victims. The vulnerability affects all versions up to and including 1.3.1 of the plugin. The CVSS 3.1 base score is 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, requiring privileges (contributor or above), no user interaction, and a scope change due to impact on other users. No public exploits have been reported yet, but the vulnerability poses a risk in multi-user WordPress environments where contributors can add content. The lack of patch links suggests a fix may not yet be released, emphasizing the need for interim mitigations. This vulnerability is categorized under CWE-79, which covers improper neutralization of input during web page generation leading to cross-site scripting.

Potential Impact

The primary impact of this vulnerability is the compromise of confidentiality and integrity for users visiting affected WordPress sites. Malicious scripts injected by contributors can steal session cookies, enabling account takeover, or perform actions on behalf of users, such as changing site content or stealing sensitive information. Although availability is not directly impacted, the trustworthiness and reputation of affected websites can be severely damaged. Organizations with multiple contributors or user-generated content are at higher risk, as attackers can leverage contributor accounts to embed persistent malicious code. This can lead to widespread exploitation if popular sites are targeted, affecting visitors globally. Additionally, attackers might use this vector as a foothold for further attacks within the network or to distribute malware. The medium severity score reflects that exploitation requires some level of access but can have significant consequences once exploited.

Mitigation Recommendations

Immediate mitigation steps include restricting contributor-level access to trusted users only and implementing strict content moderation policies to review shortcode usage before publishing. Site administrators should disable or remove the Social Media Shortcodes plugin until a security patch is released. Employing a Web Application Firewall (WAF) with rules to detect and block suspicious shortcode inputs or script injections can reduce risk. Additionally, enabling Content Security Policy (CSP) headers can limit the impact of injected scripts by restricting script execution sources. Monitoring site content for unexpected script tags or unusual shortcode behavior is recommended. Once a patch is available from the vendor, promptly update the plugin to the fixed version. Educating contributors about secure content practices and limiting the use of shortcodes that accept user input can further reduce exposure. Regular backups and incident response plans should be in place to recover from potential compromises.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-09-09T13:30:02.851Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68ca1a3d571b2840ff0172e4

Added to database: 9/17/2025, 2:17:33 AM

Last enriched: 2/27/2026, 6:12:05 PM

Last updated: 3/24/2026, 3:11:40 PM

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses