LW Enable WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
Enable WordPress features: SVG uploads and more
★ 0stars
35release downloads
174composer installs
v1.1.4latest · 19d ago
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/lwplugins/lw-enable/releases/download/v1.1.4/lw-enable-1.1.4.zipOn Packagist as lwplugins/lw-enable:
composer require lwplugins/lw-enableNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Lightweight Enable
Enable WordPress features: SVG uploads and more.

Features
Media
- SVG Uploads - Allow SVG file uploads with comprehensive security sanitization
- MIME type registration
- Script/XSS detection and blocking
- XXE (XML External Entity) protection
- Event handler detection
- Obfuscation detection (Unicode/hex escapes, entity encoding)
- Automatic SVG dimension extraction (width/height and viewBox)
- 5MB file size limit
- Post-upload re-validation
Installation
composer require lwplugins/lw-enable
Or download and upload to /wp-content/plugins/.
Usage
Admin UI
- Go to LW Plugins → Enable
- Check the features you want to enable
- Save
WP-CLI
# List all features and their status
wp lw-enable list
# Enable a feature
wp lw-enable enable svg
# Disable a feature
wp lw-enable disable svg
# Enable all features at once
wp lw-enable enable-all
# Disable all features (restore defaults)
wp lw-enable disable-all
Available features:
| Feature | Description |
|---|---|
svg |
SVG file uploads with security sanitization |
Security
SVG files can contain malicious code. This plugin performs comprehensive sanitization before allowing uploads:
- 34 dangerous patterns detected (scripts, event handlers, external entities, data URIs, etc.)
- Entity decoding to catch obfuscated payloads
- XML validation via DOMDocument
- Post-upload verification - files are re-checked after WordPress processes them
- Automatic cleanup - invalid files are deleted immediately
Links
Sponsor
Supported by Sinann
Releases
20 releases. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads