WP Upload Restriction Security & Risk Analysis

wordpress.org/plugins/wp-upload-restriction

This plugin allows you to control upload of files based on file types and sizes.

2K active installs v2.3.0 PHP + WP + Updated Jul 6, 2025
developer-toolmediaupload
99
A · Safe
CVEs total3
Unpatched0
Last CVEJul 7, 2021
Safety Verdict

Is WP Upload Restriction Safe to Use in 2026?

Generally Safe

Score 99/100

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

3 known CVEsLast CVE: Jul 7, 2021Updated 10mo ago
Risk Assessment

The "wp-upload-restriction" v2.3.0 plugin exhibits a mixed security posture. On the positive side, the code analysis reveals a strong adherence to secure coding practices, with no dangerous functions, all SQL queries using prepared statements, and a significant percentage of output being properly escaped. The presence of nonce and capability checks on all identified AJAX entry points is also commendable. However, the plugin's vulnerability history presents a notable concern. With three past medium-severity CVEs, specifically related to Cross-Site Scripting, Missing Authorization, and Improper Access Control, it indicates a pattern of past security weaknesses that users should be aware of. While there are no currently unpatched vulnerabilities, the historical prevalence of these types of issues suggests that vigilance is still necessary. The lack of critical or high-severity past vulnerabilities and the current secure coding practices are strengths, but the historical context warrants caution.

Key Concerns

  • Past medium severity CVEs
  • Past CVEs indicate common vulnerability types
  • 78% output escaping (implies 22% not)
Vulnerabilities
3 published

WP Upload Restriction Security Vulnerabilities

CVEs by Year

3 CVEs in 2021
2021
Patched Has unpatched

Severity Breakdown

Medium
3

3 total CVEs

CVE-2021-34625medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Upload Restriction <= 2.2.4 – Authenticated (Subscriber+) Stored Cross-Site Scripting

Jul 7, 2021 Patched in 2.2.5 (930d)
CVE-2021-34626medium · 4.3Missing Authorization

WP Upload Restriction <= 2.2.4 - Missing Authorization Checks

Jul 2, 2021 Patched in 2.2.5 (934d)
CVE-2021-34627medium · 4.3Improper Access Control

WP Upload Restriction <= 2.2.4 - Missing Authorization Checks

Jul 2, 2021 Patched in 2.2.5 (934d)
Code Analysis
Analyzed Mar 16, 2026

WP Upload Restriction Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
4
14 escaped
Nonce Checks
4
Capability Checks
2
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

78% escaped18 total outputs
Attack Surface

WP Upload Restriction Attack Surface

Entry Points4
Unprotected0

AJAX Handlers 4

authwp_ajax_get_selected_mimes_by_rolewp-upload-restriction.php:54
authwp_ajax_save_selected_mimes_by_rolewp-upload-restriction.php:55
authwp_ajax_save_custom_typewp-upload-restriction.php:56
authwp_ajax_delete_custom_typewp-upload-restriction.php:57
WordPress Hooks 8
actioninitwp-upload-restriction.php:50
actionadmin_initwp-upload-restriction.php:51
actionadmin_menuwp-upload-restriction.php:52
actionadmin_enqueue_scriptswp-upload-restriction.php:53
filterplugin_action_linkswp-upload-restriction.php:65
filterupload_mimeswp-upload-restriction.php:66
filterupload_size_limitwp-upload-restriction.php:67
filterwpur_mime_typeswp-upload-restriction.php:68
Maintenance & Trust

WP Upload Restriction Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJul 6, 2025
PHP min version
Downloads27K

Community Trust

Rating74/100
Number of ratings15
Active installs2K
Developer Profile

WP Upload Restriction Developer Profile

Sajjad Hossain

2 plugins · 3K total installs

78
trust score
Avg Security Score
99/100
Avg Patch Time
595 days
View full developer profile
Detection Fingerprints

How We Detect WP Upload Restriction

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-upload-restriction/css/wp-upload-restrictions-styles.css/wp-content/plugins/wp-upload-restriction/js/wp-upload-restriction.js
Script Paths
/wp-content/plugins/wp-upload-restriction/js/wp-upload-restriction.js
Version Parameters
wp-upload-restriction/css/wp-upload-restrictions-styles.css?ver=wp-upload-restriction/js/wp-upload-restriction.js?ver=

HTML / DOM Fingerprints

CSS Classes
wp-upload-restriction
Data Attributes
data-row
JS Globals
wp_upload_restriction_ajax_object
FAQ

Frequently Asked Questions about WP Upload Restriction