Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-79627 Overview
CVE-2026-79627 is a stored Cross-Site Scripting (XSS) vulnerability in the Advanced File Manager WordPress plugin versions prior to 6.0.0. The plugin fails to correctly determine whether an uploaded file is a Scalable Vector Graphics (SVG) file before applying sanitization. Users with file-manager access granted by an administrator can upload a file containing script content that bypasses the sanitizer. The script executes in the browser of any user who opens the file, including administrators. This flaw is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
An authenticated low-privileged user can store malicious script content that executes against administrators, enabling session hijacking, account takeover, and full site compromise.
Affected Products
- Advanced File Manager WordPress plugin versions prior to 6.0.0
- WordPress sites that grant file-manager access to non-administrator users
- Any administrator browser session interacting with uploaded files on affected installations
Discovery Timeline
- 2026-10-21 - CVE-2026-79627 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-79627
Vulnerability Analysis
The Advanced File Manager plugin exposes a file upload and management interface that administrators can delegate to other WordPress users. When a file is uploaded, the plugin attempts to sanitize SVG content to strip embedded script elements. The sanitization gate relies on an incorrect file-type check. An attacker can submit a file that the plugin does not classify as SVG while the browser still renders it as SVG. The sanitizer is skipped, and the embedded <script> payload survives into storage.
When an administrator later opens the stored file through the plugin interface or a direct URL, the browser parses the SVG and executes the embedded JavaScript in the context of the WordPress origin. This grants the payload access to administrator cookies, nonces, and the WordPress REST API.
Root Cause
The root cause is improper input validation of the file MIME type and extension prior to invoking the SVG sanitizer. The plugin trusts a check that attackers can evade through crafted file extensions, content-type headers, or polyglot content. Because the sanitizer is conditional, any bypass of the detection logic results in unsanitized storage of attacker-controlled markup.
Attack Vector
Exploitation requires an authenticated account that an administrator has granted file-manager access. The attacker uploads a crafted SVG file containing JavaScript, structured so the plugin does not identify it as SVG. The file is stored without sanitization. When an administrator or other user navigates to the file, the browser renders the SVG and executes the script. The payload can create new administrator accounts, modify plugin or theme files, or exfiltrate session data to an attacker-controlled server. User interaction is required, which is why the complexity is elevated, but phishing an administrator link is straightforward in multi-user WordPress environments.
See the WPScan Vulnerability Detail for additional technical references.
Detection Methods for CVE-2026-79627
Indicators of Compromise
- Uploaded files with .svg, .svgz, or ambiguous extensions containing <script> tags or on* event handlers in the WordPress uploads directory
- Unexpected administrator account creation or role changes following file uploads by lower-privileged users
- Outbound HTTP requests from administrator browser sessions to unknown domains after visiting file manager URLs
- New or modified PHP files in wp-content/plugins/ or wp-content/themes/ without corresponding plugin updates
Detection Strategies
- Scan the WordPress uploads directory for SVG files containing <script, javascript:, or event handler attributes such as onload= and onerror=
- Review WordPress audit logs for file uploads performed by users with file-manager capability but without administrator role
- Correlate upload events with subsequent administrator authentication activity and privileged configuration changes
Monitoring Recommendations
- Enable file integrity monitoring on wp-content/uploads/ and alert on SVG files containing executable markup
- Log and review all actions performed through the Advanced File Manager plugin, including file previews opened by administrator accounts
- Monitor WordPress REST API calls originating from administrator sessions for anomalous user creation or option updates
How to Mitigate CVE-2026-79627
Immediate Actions Required
- Update the Advanced File Manager plugin to version 6.0.0 or later on all WordPress installations
- Audit the list of users granted file-manager access and revoke permissions that are not business-required
- Inspect existing uploaded SVG files for embedded script content and remove any suspicious files
- Rotate administrator passwords and invalidate active sessions if signs of exploitation are present
Patch Information
The vendor addressed the issue in Advanced File Manager 6.0.0 by correcting the SVG detection logic so that sanitization is applied to all files that browsers may render as SVG. Site administrators should apply the update through the WordPress plugin dashboard or by replacing the plugin files manually. Refer to the WPScan Vulnerability Detail for the full advisory.
Workarounds
- Restrict SVG uploads at the web server or WAF layer until the plugin is updated
- Limit the file-manager capability to administrator accounts only, removing delegation to lower-privileged roles
- Serve the uploads directory with a Content-Security-Policy header that blocks inline script execution on user-supplied content
# Example Apache configuration to block script execution in uploads
<Directory "/var/www/html/wp-content/uploads">
<FilesMatch "\.svgz?$">
Header set Content-Security-Policy "default-src 'none'; style-src 'unsafe-inline'"
Header set Content-Disposition "attachment"
Header set X-Content-Type-Options "nosniff"
</FilesMatch>
</Directory>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

