CVE-2019-16117
Description
Cross site scripting (XSS) in the photo-gallery (10Web Photo Gallery) plugin before 1.5.35 for WordPress exists via admin/models/Galleries.php.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Stored XSS in 10Web Photo Gallery plugin before 1.5.35 for WordPress allows admin users to inject arbitrary JavaScript via unsanitized image alt text.
Vulnerability
A stored cross-site scripting (XSS) vulnerability exists in the 10Web Photo Gallery plugin (photo-gallery) for WordPress in versions prior to 1.5.35. The issue resides in admin/models/Galleries.php, where the alt parameter (image alt text) is not properly sanitized or escaped before being returned to the administrative panel. Specifically, the plugin uses WDWLibrary::spider_replace4byte($alt) and later WDWLibrary::escape('', $row->alt) which fails to prevent execution of injected HTML or JavaScript in the admin context [1][2].
Exploitation
An authenticated attacker with access to the WordPress admin panel (at minimum a user role capable of editing galleries, typically Administrator) can inject a malicious payload into the alt field of an image within a gallery. By simply saving the gallery, the crafted alt text is stored and rendered unsafely in the gallery management interface. When other admin users view or manage the gallery, the injected script executes in their browser session [2][3].
Impact
Successful exploitation leads to arbitrary JavaScript execution within the context of the WordPress admin panel. Attackers could hijack administrative sessions, steal cookies or nonces, modify plugin settings, create new privileged users, or upload malicious files, effectively achieving full compromise of the WordPress site [3].
Mitigation
The issue is fixed in version 1.5.35 of the plugin. Users should update to at least this version immediately. No workaround is available, as the vulnerability stems from core input handling in the admin gallery editor. The plugin is actively maintained and no EOL notice exists.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- WordPress/photo-gallerydescription
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
4- packetstormsecurity.com/files/154433/WordPress-Photo-Gallery-1.5.34-Cross-Site-Scripting.htmlmitrex_refsource_MISC
- plugins.trac.wordpress.org/changeset/2150912/photo-gallery/trunk/admin/models/Galleries.phpmitrex_refsource_MISC
- wordpress.org/plugins/photo-gallery/mitrex_refsource_MISC
- wpvulndb.com/vulnerabilities/9872mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.