Security Alert Summary
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress contains a stored cross-site scripting (XSS) vulnerability in the handling of IPTC metadata (caption and title) inside image files. Insufficient input sanitization and missing output escaping can allow attacker-supplied scripts embedded in image metadata to execute when a user views the affected gallery pages. The plugin workflow for importing images is part of normal operations for photographers, clients, and contest submissions.
CVE Details
- CVE ID: CVE-2026-109387
- Affected component: Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress
- Affected versions: All versions up to and including 4.5.5
- Published: November 20, 2026 at 10:17:06 AM (UTC)
- Last modified: November 20, 2026 at 10:17:07 AM (UTC)
- CVSS v3.1: Base score 7.2 – HIGH; vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Authentication / Privileges / User interaction (from CVSS): Authentication required: None; Privileges required: None (PR:N); User interaction: None (UI:N)
- Primary impact: Confidentiality: Low; Integrity: Low; Availability: None
- CWE / weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation – Cross-site Scripting)
Technical Details
The vulnerability is a stored cross-site scripting (XSS) issue caused by insufficient input sanitization and missing output escaping for IPTC metadata fields embedded in image files, specifically the IPTC 2#120 (caption) and 2#005 (title) fields. When an attacker supplies an image file containing malicious script in these metadata fields and that file is imported through the plugin’s image import workflow, the metadata can be stored and later rendered in gallery pages without proper escaping, allowing the injected script to execute in the context of users who view the page.
The CVE description indicates the problem arises during metadata processing and gallery output. The references point to plugin source locations related to metadata handling and gallery rendering (see References). Exploitation results in arbitrary script execution in visitors’ browsers when they access an injected page; impact is limited to what can be achieved via client-side script execution (for example, revealing data accessible to the page or performing actions available to the viewing user), and does not by itself indicate direct server-side code execution.
How This Could Impact Your Website
Consider a site where the site owner manages galleries, an internal staff member or contributor uploads images, and an external photographer or contractor supplies files. If an attacker provides an image with malicious IPTC metadata and a user with image-import or edit permissions imports that image, the stored script can run when other users (administrators, editors, or site visitors) view the gallery page. Practical consequences include exposure of information available to the viewing user and context, such as user-visible profile data or session tokens accessible to client-side scripts, and increased risk of targeted phishing or social engineering against staff and contributors.
If youre unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review your setup.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Review and reduce unnecessary user roles and capabilities, especially users who can import or edit images.
- Enforce strong passwords and two-factor authentication for editors and administrators.
- Remove unused or unmaintained plugins.
- Monitor site activity and logs for unusual behavior related to gallery uploads or unexpected content in galleries.
If youd like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.2/src/Legacy/admin/functions.php#L382
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.2/src/Legacy/lib/meta.php#L310
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.2/src/Legacy/view/gallery.php#L55
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.2/static/Lightbox/shutter/shutter.js#L140
- https://plugins.trac.wordpress.org/changeset/3773860/nextgen-gallery/trunk/static/Lightbox/shutter/shutter.js
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3793265%40nextgen-gallery&old=3773861%40nextgen-gallery
- https://www.wordfence.com/threat-intel/vulnerabilities/id/8726b508-475d-41cf-b366-83eb3f67c0ed?source=cve