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/25/2025, 04:39:09 UTC

Technical Analysis

CVE-2025-12885 is a stored Cross-Site Scripting vulnerability identified in the WordPress plugin 'Embed Any Document – Embed PDF, Word, PowerPoint and Excel Files' developed by awsmin. The vulnerability stems from improper neutralization of input during web page generation, specifically due to a regex bypass in the sanitize_pdf_src function that fails to adequately sanitize and escape user input. This flaw allows authenticated attackers with at least Contributor-level privileges to inject arbitrary JavaScript code into pages where documents are embedded. When other users access these pages, the malicious scripts execute in their browsers, potentially compromising session tokens, redirecting users, or performing unauthorized actions on their behalf. 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 with network attack vector, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change. Although no public exploits have been reported, the risk is significant given the common use of this plugin in WordPress environments. The vulnerability is particularly concerning because Contributor-level users are often trusted content creators, making exploitation feasible without elevated administrative rights. The flaw highlights the importance of robust input validation and output encoding in web applications, especially those handling embedded content. Organizations relying on this plugin should monitor for updates and consider temporary mitigations such as restricting Contributor permissions or disabling document embedding until patched.

Potential Impact

For European organizations, this vulnerability poses a risk of unauthorized script execution on websites using the affected plugin, potentially leading to session hijacking, data theft, defacement, or unauthorized actions performed in the context of legitimate users. Since the attack requires authenticated Contributor-level access, insider threats or compromised contributor accounts could be leveraged to exploit this vulnerability. The impact is heightened for organizations with public-facing WordPress sites that embed documents for clients, partners, or employees, as malicious scripts could affect a broad user base. Confidentiality and integrity of user data and site content may be compromised, undermining trust and potentially leading to reputational damage and regulatory consequences under GDPR if personal data is exposed. Availability is not directly impacted, but indirect effects such as site defacement or user lockout could occur. The medium severity score suggests a moderate but actionable risk, especially for sectors with high web presence like e-commerce, media, education, and government services in Europe.

Mitigation Recommendations

1. Monitor the plugin vendor’s official channels for security updates and apply patches immediately once available. 2. Until a patch is released, restrict Contributor-level permissions to trusted users only and audit existing Contributor accounts for suspicious activity. 3. Implement Web Application Firewall (WAF) rules to detect and block suspicious script injection patterns related to document embedding URLs. 4. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected pages. 5. Conduct regular security reviews and code audits of customizations involving document embedding. 6. Consider disabling the 'Embed Any Document' plugin temporarily if the risk is unacceptable and no patch is available. 7. Educate content contributors about the risks of uploading or embedding untrusted documents or scripts. 8. Use security plugins that provide XSS protection and input sanitization enhancements for WordPress. 9. Monitor logs for unusual activities related to document embedding or Contributor user actions. 10. Maintain regular backups of website content to enable recovery in case of compromise.

Need more detailed analysis?Upgrade to Pro Console

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/25/2025, 4:39:09 AM

Last updated: 2/7/2026, 8:17:51 AM

Views: 98

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 in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats