CVE-2026-109387: Photo Gallery, Sliders, Proofing and Themes <= 4.5.5 - Unauthenticated Stored Cross-Site Scripting via IPTC/EXIF Image Metadata
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'IPTC 2#120 (caption) / 2#005 (title) inside the image file' parameter in all versions up to, and including, 4.5.5 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires an authenticated user with image-edit permissions to import an attacker-supplied image file, which is the plugin's standard workflow for photographer uploads, client galleries, and contest submissions.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Sites using Imagely NextGEN Gallery version 4.5.5 or earlier are exposed when users with image-edit permissions import images from untrusted sources. The described standard workflows include photographer uploads, client galleries, and contest submissions.
Can an unauthenticated attacker exploit this without access to WordPress?
An attacker does not need WordPress authentication, but they need an image-edit-capable authenticated user to import an attacker-supplied image file. The malicious payload is carried in the image's IPTC caption or title metadata.
What happens after a malicious image is imported?
The injected script is stored and can execute when a user accesses a page containing the affected image. The reported impact includes compromise of confidentiality and integrity, with no availability impact indicated.
What can be done if updating is not immediately possible?
Do not import images from untrusted sources through workflows available to image-edit-capable users. Restrict image import permissions and review uploaded image IPTC 2#120 caption and 2#005 title metadata before importing files.