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-5082: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in milmor WP Attachments

0
Medium
VulnerabilityCVE-2025-5082cvecve-2025-5082cwe-79
Published: Wed May 28 2025 (05/28/2025, 07:23:57 UTC)
Source: CVE Database V5
Vendor/Project: milmor
Product: WP Attachments

Description

The WP Attachments plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘attachment_id’ parameter in all versions up to, and including, 5.0.12 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 15:03:24 UTC

Technical Analysis

CVE-2025-5082 is a reflected Cross-Site Scripting (XSS) vulnerability identified in the WP Attachments plugin for WordPress, maintained by milmor. The vulnerability exists in all versions up to and including 5.0.12 due to insufficient sanitization and escaping of the 'attachment_id' parameter during web page generation. This improper neutralization of input (CWE-79) allows unauthenticated attackers to craft malicious URLs containing executable scripts. When a victim clicks such a link, the injected script executes in their browser context, potentially leading to theft of session cookies, redirection to malicious sites, or other client-side attacks. The vulnerability does not require authentication but does require user interaction (clicking a link). The CVSS v3.1 base score is 6.1, reflecting network attack vector, low attack complexity, no privileges required, but user interaction needed, and impacts on confidentiality and integrity with no impact on availability. No patches or official fixes are currently linked, and no exploits have been reported in the wild, but the vulnerability is publicly disclosed and should be considered a moderate risk. The scope is limited to websites using the vulnerable plugin, which is a subset of WordPress sites. The vulnerability affects the confidentiality and integrity of user data and session information but does not directly affect server availability or integrity.

Potential Impact

The primary impact of CVE-2025-5082 is on the confidentiality and integrity of users interacting with affected WordPress sites. Successful exploitation can lead to session hijacking, credential theft, or unauthorized actions performed in the context of the victim's browser session. This can compromise user accounts, lead to unauthorized access to sensitive information, or facilitate further attacks such as phishing or malware distribution. For organizations, this can result in reputational damage, loss of customer trust, and potential regulatory penalties if user data is compromised. Since the vulnerability is reflected XSS, it requires user interaction, which may limit large-scale automated exploitation but does not eliminate risk, especially in targeted phishing campaigns. The lack of known exploits in the wild currently reduces immediate risk but does not preclude future exploitation. The vulnerability is particularly impactful for websites with high user engagement or those handling sensitive user data via the WP Attachments plugin.

Mitigation Recommendations

1. Immediate mitigation involves updating the WP Attachments plugin to a patched version once available from the vendor. Since no patch links are currently provided, monitor official channels for updates. 2. Implement Web Application Firewall (WAF) rules to detect and block malicious payloads targeting the 'attachment_id' parameter. 3. Employ Content Security Policy (CSP) headers to restrict script execution sources, mitigating the impact of injected scripts. 4. Sanitize and validate all user inputs on the server side, especially parameters used in page generation, to prevent injection of malicious code. 5. Apply output encoding/escaping on all dynamic content rendered in web pages to neutralize potentially harmful input. 6. Educate users and administrators about phishing risks and encourage caution when clicking on suspicious links. 7. Conduct regular security audits and vulnerability scans focusing on WordPress plugins to identify and remediate similar issues proactively. 8. Consider temporarily disabling the WP Attachments plugin if immediate patching is not feasible and the risk is deemed unacceptable.

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-05-22T08:37:13.219Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6836be9b182aa0cae23cee24

Added to database: 5/28/2025, 7:43:23 AM

Last enriched: 2/27/2026, 3:03:24 PM

Last updated: 3/21/2026, 11:22:00 PM

Views: 55

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