Media Restriction Security & Risk Analysis

wordpress.org/plugins/media-restriction

Restrict media library access by user role — with activity logging, and REST API protection.

40 active installs v2.1.0 PHP 7.4+ WP 5.0+ Updated May 21, 2026
activity-logmediamedia-libraryrestrictionroles
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Media Restriction Safe to Use in 2026?

Generally Safe

Score 100/100

Media Restriction has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 2mo ago
Risk Assessment

The "media-restriction" v1.0.3 plugin exhibits a strong security posture based on the provided static analysis. The absence of AJAX handlers, REST API routes, shortcodes, and cron events with unprotected entry points significantly limits the plugin's attack surface. Furthermore, the code signals show no dangerous functions, file operations, or external HTTP requests, indicating a cautious approach to potentially risky operations. The use of prepared statements for SQL queries and the presence of nonce and capability checks are excellent security practices.

The taint analysis revealing zero flows with unsanitized paths, especially critical or high severity ones, is a very positive indicator. The vulnerability history also shows a clean slate with no known CVEs, which suggests diligent security development or a lack of past exploits. However, a minor concern is the 74% output escaping rate, leaving 26% of outputs potentially unescaped, which could lead to XSS vulnerabilities if user-supplied data is not handled properly in those instances. Despite this small area for improvement, the plugin appears to be well-secured.

Key Concerns

  • Output escaping not 100%
Vulnerabilities
None known

Media Restriction Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Media Restriction Release Timeline

v2.1.0Current
v2.0.0
v1.0.3
v1.0.2
v1.0.1
v1.0.0
Code Analysis
Analyzed Mar 16, 2026

Media Restriction Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
1 prepared
Unescaped Output
7
20 escaped
Nonce Checks
1
Capability Checks
1
File Operations
0
External Requests
0
Bundled Libraries
1

Bundled Libraries

Select2

SQL Query Safety

100% prepared1 total queries

Output Escaping

74% escaped27 total outputs
Attack Surface

Media Restriction Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 10
actionadmin_initincludes\class-media-filter.php:42
filterajax_query_attachments_argsincludes\class-media-filter.php:47
actionpre_get_postsincludes\class-media-filter.php:48
filterposts_whereincludes\class-media-filter.php:49
actionadmin_menuincludes\class-media-restriction.php:83
actionadmin_initincludes\class-media-restriction.php:84
actionadmin_enqueue_scriptsincludes\class-media-restriction.php:85
filterajax_query_attachments_argsincludes\class-media-restriction.php:96
actionpre_get_postsincludes\class-media-restriction.php:99
actionplugins_loadedmedia-restriction.php:51
Maintenance & Trust

Media Restriction Maintenance & Trust

Maintenance Signals

WordPress version tested7.0.2
Last updatedMay 21, 2026
PHP min version7.4
Downloads970

Community Trust

Rating0/100
Number of ratings0
Active installs40
Developer Profile

Media Restriction Developer Profile

Upluggit

4 plugins · 140 total installs

94
trust score
Avg Security Score
100/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Media Restriction

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/media-restriction/assets/css/admin.css/wp-content/plugins/media-restriction/assets/js/admin.js
Script Paths
/wp-content/plugins/media-restriction/assets/js/select2.min.js/wp-content/plugins/media-restriction/assets/js/admin.js
Version Parameters
media-restriction/assets/css/admin.css?ver=media-restriction/assets/js/admin.js?ver=

HTML / DOM Fingerprints

CSS Classes
media-restriction-settings
Data Attributes
data-plugin-name="media-restriction"data-option-name="media_restriction_options"
JS Globals
mediaRestrictionAdmin
FAQ

Frequently Asked Questions about Media Restriction