WP Attachments <= 5.0.12 - Reflected Cross-Site Scripting via attachment_id Parameter
Vulnerability 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.
Impact Analysis
Refer to official advisory for detailed impact metrics.
Remediation
Ensure systems are updated to the latest vendor-supplied patch levels.
Am I Vulnerable?
Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-5082
Credits & Attribution
The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:
- Antonio Francesco Sardella
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/bdc33ecc-da54-4852-8426-bfafe0dca41b?source=cve
- https://wordpress.org/plugins/wp-attachments/#developers
- https://plugins.trac.wordpress.org/browser/wp-attachments/tags/5.0.12/inc/html/attachmentEditIframe.php
- https://plugins.trac.wordpress.org/browser/wp-attachments/tags/5.0.12/inc/ij-post-attachments.php#L274
- https://plugins.trac.wordpress.org/changeset/3300269/
More from milmor
View All →Affected Vendor
milmor
View all reports →