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-12885: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in awsmin Embed Any Document – Embed PDF, Word, PowerPoint and Excel Files

0
Medium
VulnerabilityCVE-2025-12885cvecve-2025-12885cwe-79
Published: Thu Dec 18 2025 (12/18/2025, 01:51:13 UTC)
Source: CVE Database V5
Vendor/Project: awsmin
Product: Embed Any Document – Embed PDF, Word, PowerPoint and Excel Files

Description

The Embed Any Document – Embed PDF, Word, PowerPoint and Excel Files plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the sanitize_pdf_src function regex bypass in all versions up to, and including, 2.7.10 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

AILast updated: 12/18/2025, 04:08:10 UTC

Technical Analysis

CVE-2025-12885 is a stored cross-site scripting (XSS) vulnerability identified in the 'Embed Any Document – Embed PDF, Word, PowerPoint and Excel Files' WordPress plugin developed by awsmin. The vulnerability exists due to improper neutralization of input during web page generation, specifically in the sanitize_pdf_src function, which uses a regex that can be bypassed. This insufficiency allows authenticated users with Contributor-level privileges or higher to inject arbitrary JavaScript code into pages where documents are embedded. Because the malicious script is stored persistently, it executes every time a user accesses the affected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of the user. The vulnerability affects all plugin versions up to and including 2.7.10. The CVSS 3.1 base score is 6.4, reflecting a medium severity level, with the vector indicating network attack vector, low attack complexity, privileges required at the low level, no user interaction needed, and a scope change. The impact includes partial confidentiality and integrity loss but no availability impact. No patches or exploit code are currently publicly available, and no known exploitation in the wild has been reported. The vulnerability is significant because Contributor-level users are common in WordPress environments, and the plugin is widely used to embed various document types, increasing the attack surface. This vulnerability underscores the importance of rigorous input validation and output escaping in web applications, especially those handling user-generated content.

Potential Impact

For European organizations, this vulnerability poses a risk primarily to websites and intranet portals using the affected WordPress plugin to embed documents. Attackers with Contributor-level access can inject malicious scripts that execute in the context of other users, potentially leading to session hijacking, credential theft, unauthorized actions, or defacement. This can result in data breaches, loss of user trust, reputational damage, and compliance violations under GDPR if personal data is compromised. Since many European companies rely on WordPress for content management and collaboration, especially in sectors like media, education, and government, the impact can be widespread. The vulnerability does not affect availability but compromises confidentiality and integrity, which can disrupt business operations and lead to financial losses. The requirement for authenticated access limits exploitation to insiders or compromised accounts, but this is a common threat vector. The lack of known exploits suggests a window for proactive mitigation before widespread abuse occurs.

Mitigation Recommendations

European organizations should immediately audit their WordPress installations to identify the presence of the 'Embed Any Document – Embed PDF, Word, PowerPoint and Excel Files' plugin and verify the version in use. Until an official patch is released, administrators should restrict Contributor-level permissions to trusted users only and consider temporarily disabling the plugin or restricting document embedding capabilities. Implementing additional input validation and output escaping at the application or web server level can help mitigate injection risks. Monitoring web logs for unusual script injections or anomalous user behavior is advised. Organizations should also educate contributors about the risks of uploading untrusted documents or content. Once a vendor patch is available, prompt updating is critical. Employing web application firewalls (WAFs) with custom rules to detect and block suspicious payloads targeting this vulnerability can provide interim protection. Regular security assessments and penetration testing focused on plugin vulnerabilities should be integrated into security programs.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2025-11-07T17:24:29.931Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69437e144dbf28c5eab53ba6

Added to database: 12/18/2025, 4:07:48 AM

Last enriched: 12/18/2025, 4:08:10 AM

Last updated: 12/18/2025, 8:59:52 AM

Views: 14

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 enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats