WP Attachments Security & Risk Analysis

wordpress.org/plugins/wp-attachments

A powerful solution to manage and display your WordPress media attachments in posts and pages.

3K active installs v5.3.4 PHP + WP 4.4+ Updated Mar 14, 2026
attachmentsclassicpressfilelistmedia
95
A · Safe
CVEs total5
Unpatched0
Last CVEDec 31, 2025
Safety Verdict

Is WP Attachments Safe to Use in 2026?

Generally Safe

Score 95/100

WP Attachments has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

5 known CVEsLast CVE: Dec 31, 2025Updated 2mo ago
Risk Assessment

The static analysis of wp-attachments v5.3.4 reveals a mixed security posture. On the positive side, the plugin has a zero attack surface for direct entry points like AJAX handlers, REST API routes, shortcodes, and cron events, and no identified dangerous functions or direct file operations. The use of prepared statements for all SQL queries is a strong security practice. However, there are significant concerns regarding output escaping, with only 77% properly escaped, indicating a potential for Cross-Site Scripting (XSS) vulnerabilities. Additionally, taint analysis shows two flows with unsanitized paths, which, while not rated as critical or high, are still a cause for concern as they could be leveraged for injection attacks if not properly handled downstream.

The plugin's vulnerability history is a major red flag. With a total of five known CVEs, all of which are medium severity, it indicates a pattern of past security weaknesses. The common vulnerability types being Missing Authorization, CSRF, and XSS further corroborate the potential risks identified in the static analysis, particularly concerning output escaping and the need for robust authorization checks. While there are currently no unpatched vulnerabilities, the history suggests a tendency for issues to arise. The last reported vulnerability date of December 31, 2025, while in the future, is unusual and might indicate a placeholder or an outdated record.

In conclusion, while wp-attachments v5.3.4 demonstrates good practices in areas like SQL handling and a lack of direct attack vectors, the significant number of past medium-severity vulnerabilities, coupled with potential XSS risks due to incomplete output escaping and unsanitized taint flows, presents a considerable security risk. Organizations using this plugin should exercise caution and ensure thorough security reviews and updates.

Key Concerns

  • Medium severity CVEs
  • Unsanitized paths in taint flows
  • Improper output escaping
Vulnerabilities
5 published

WP Attachments Security Vulnerabilities

CVEs by Year

2 CVEs in 2022
2022
1 CVE in 2023
2023
2 CVEs in 2025
2025
Patched Has unpatched

Severity Breakdown

Medium
5

5 total CVEs

CVE-2025-62888medium · 4.3Missing Authorization

Attachments <= 5.2 - Missing Authorization

Dec 31, 2025 Patched in 5.2.1 (28d)
CVE-2025-5082medium · 6.1Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Attachments <= 5.0.12 - Reflected Cross-Site Scripting via attachment_id Parameter

May 27, 2025 Patched in 5.1 (1d)
CVE-2023-45651medium · 4.3Cross-Site Request Forgery (CSRF)

WP Attachments <= 5.0.11 - Cross-Site Request Forgery

Oct 12, 2023 Patched in 5.0.12 (274d)
CVE-2022-4330medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Attachments <= 5.0.5 - Authenticated (Administrator+) Stored Cross-Site Scripting

Dec 21, 2022 Patched in 5.0.6 (398d)
CVE-2022-3469medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Attachments <= 5.0.4 - Authenticated (Administrator+) Stored Cross-Site Scripting

Oct 18, 2022 Patched in 5.0.5 (462d)
Version History

WP Attachments Release Timeline

Code Analysis
Analyzed Mar 16, 2026

WP Attachments Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
35
117 escaped
Nonce Checks
5
Capability Checks
11
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

77% escaped152 total outputs
Data Flows · Security
2 unsanitized

Data Flow Analysis

4 flows2 with unsanitized paths
wp_ajax_wpa_attach_media (inc\meta-box.php:385)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP Attachments Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 18
actionadmin_headinc\attach_unattach_reattach.php:83
filtermanage_upload_columnsinc\attach_unattach_reattach.php:84
actionmanage_media_custom_columninc\attach_unattach_reattach.php:85
actionadmin_menuinc\attach_unattach_reattach.php:122
filtermanage_media_columnsinc\counter.php:7
actionmanage_media_custom_columninc\counter.php:8
filtermanage_upload_sortable_columnsinc\counter.php:9
filterrequestinc\counter.php:10
actionadmin_headinc\counter.php:11
actionsave_postinc\meta-box.php:522
actionplugins_loadedinc\meta-box.php:540
actioninitwp-attachments.php:14
actiondeleted_postwp-attachments.php:47
actionadmin_initwp-attachments.php:61
actionwoocommerce_order_details_after_customer_detailswp-attachments.php:90
filterthe_contentwp-attachments.php:97
actionadmin_initwp-attachments.php:260
actionadmin_menuwp-attachments.php:268
Maintenance & Trust

WP Attachments Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedMar 14, 2026
PHP min version
Downloads106K

Community Trust

Rating90/100
Number of ratings42
Active installs3K
Developer Profile

WP Attachments Developer Profile

Marco Milesi

14 plugins · 12K total installs

76
trust score
Avg Security Score
96/100
Avg Patch Time
280 days
View full developer profile
Detection Fingerprints

How We Detect WP Attachments

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-attachments/styles/0/wpa.css/wp-content/plugins/wp-attachments/styles/1/wpa.css/wp-content/plugins/wp-attachments/styles/2/wpa.css/wp-content/plugins/wp-attachments/styles/3/wpa.css/wp-content/plugins/wp-attachments/styles/4/wpa.css/wp-content/plugins/wp-attachments/styles/5/wpa.css/wp-content/plugins/wp-attachments/styles/6/wpa.css/wp-content/plugins/wp-attachments/styles/7/wpa.css+2 more

HTML / DOM Fingerprints

CSS Classes
post-attachmentspost-attachment
HTML Comments
<!-- WP Attachments -->
Data Attributes
wpa-download
FAQ

Frequently Asked Questions about WP Attachments