NextGEN Gallery vulnerabilities
11 known CVE vulnerabilities in NextGEN Gallery, translated and rated.
- CVE-2026-9059Critical
SQL Injection vulnerability in NextGEN Gallery prior to version 4.2.1. An authenticated attacker with 'NextGEN Gallery overview' capability can inject arbitrary SQL into the ORDER BY clause via the 'orderby' parameter in REST API endpoints. Root cause is insufficient sanitization in '_clean_column()' using a blacklist approach.
- CVE-2026-135987High
The NextGEN Gallery plugin contains a Stored XSS vulnerability due to improper neutralization of input during web page generation. Malicious code stored in the application is executed in the user's browser. The issue affects versions before 4.6.0.
- CVE-2026-119611High
The NextGEN Gallery plugin for WordPress is vulnerable to stored XSS in versions up to and including 4.5.5 via the 'ajax_pagination_referrer' parameter on the /ngg_tag/<tag>/ taxonomy page. The plugin reads the pagination base URL from $_REQUEST, preserves the attacker-supplied host, and caches the rendered page for 1800 seconds keyed only on the request URI, allowing unauthenticated attackers to poison the cache and point pagination links to an attacker-controlled host.
- CVE-2026-116550High
The NextGEN Gallery plugin for WordPress is vulnerable to stored XSS via the 'comment' parameter in all versions up to and including 4.5.5 due to insufficient input sanitization and output escaping. Unauthenticated attackers can inject scripts that execute when users visit an injected page; exploitation requires the thumbEffectContext setting to be 'Try to apply to all images' or similar and the comment to be publicly rendered.
- CVE-2026-109387High
The NextGEN Gallery plugin for WordPress is vulnerable to stored XSS via the 'IPTC 2#120 (caption) / 2#005 (title)' metadata inside an image file in all versions up to and including 4.5.5 due to insufficient input sanitization and output escaping. This requires an authenticated user with image-edit permissions to import an attacker-supplied image file, which is the plugin's standard workflow.
- CVE-2026-118191High
The NextGEN Gallery plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the handle_job function in all versions up to and including 4.5.5. Authenticated attackers with custom-level access and above can delete arbitrary files on the server, which can lead to remote code execution when the right file is deleted (e.g. wp-config.php). The required 'NextGEN Manage gallery' capability is granted to administrators by default but can be delegated to lower-privileged roles.
- CVE-2026-76010High
The NextGEN Gallery plugin for WordPress (up to and including 4.4.1) is vulnerable to Remote Code Execution via the render_image function. This is due to unrestricted mass assignment of caller-supplied meta_data keys onto the image model, missing realpath containment in path construction, and a bypassable signature check on the public image delivery route. An authenticated attacker with custom-level access and above can execute code on the server.
- CVE-2026-116563Medium
The NextGEN Gallery plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.5.4 due to insufficient input sanitization and output escaping. This allows unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
- CVE-2026-94123High
The NextGEN Gallery plugin in versions up to and including 4.5.0 contains an Arbitrary File Download vulnerability exploitable by an unauthenticated attacker. This allows downloading arbitrary files from the server.
- CVE-2026-28141High
Unauthenticated Cross Site Scripting (XSS) vulnerability in NextGEN Gallery versions up to 4.2.3. An attacker can inject malicious script without authentication.
- CVE-2026-6566Medium
The NextGEN Gallery plugin for WordPress up to version 4.2.0 has an Insecure Direct Object Reference vulnerability in the image deletion REST API. Object-level authorization is missing – only 'NextGEN Manage gallery' permissions are checked, without gallery ownership verification. An authenticated attacker with Subscriber privileges and 'NextGEN Manage gallery' capability can delete other users' images and associated files from disk.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

