WordPress · Wp Attachments · CVE-2025-5082
**Name of the Vulnerable Software and Affected Versions**
WP Attachments plugin for WordPress versions up to, and including, 5.0.12
**Description**
The issue is related to Reflected Cross-Site Scripting, which allows unauthenticated attackers to inject arbitrary web scripts in pages. This is possible due to insufficient input sanitization and output escaping of the `attachment id` parameter. Attackers can exploit this by tricking a user into performing an action, such as clicking on a link.
**Recommendations**
For versions up to, and including, 5.0.12, update to a version later than 5.0.12 to resolve the issue.
As a temporary workaround, consider restricting access to the `attachment id` parameter to minimize the risk of exploitation.