CVE-2021-24310
WordPress vulnerability analysis and mitigation

Overview

The Photo Gallery by 10Web - Mobile-Friendly Image Gallery WordPress plugin before version 1.5.67 contained a stored Cross-Site Scripting (XSS) vulnerability. The issue was discovered and disclosed on May 12, 2021, and was assigned CVE-2021-24310. This vulnerability was due to improper sanitization of gallery titles and represented an incomplete fix of a previous vulnerability (CVE-2019-16117) (Wordfence, WPScan).

Technical details

The vulnerability allowed high-privilege users to create galleries with XSS payloads in their titles. The payload would be triggered when other users viewed either the gallery list or the affected gallery in the admin dashboard. A proof of concept exploit involved using a specially crafted payload as the gallery title: '" style="animation-name:rotation" onanimationstart="alert(/XSS/)'. The vulnerability received a CVSS score of 6.6 (medium severity) and was classified under CWE-79 (WPScan).

Impact

When exploited, this vulnerability could allow authenticated attackers to inject malicious JavaScript code that would execute in the browsers of other users when they viewed the affected gallery or gallery list in the WordPress admin dashboard (WPScan).

Exploitability

The vulnerability required an attacker to have high-privilege access to the WordPress installation to create or edit galleries. The exploit could be triggered when other users, including administrators, viewed the compromised gallery content in the admin dashboard (WPScan).

Mitigation and workarounds

The vulnerability was patched in version 1.5.67 of the Photo Gallery plugin. Users should update to this version or later to protect against this security issue (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-92541HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-92540HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-86785MEDIUM5.3
  • woo-to-facebook-shop
NoNoSep 20, 2026
CVE-2026-92965LOW3.7
  • tiktok-for-business
NoYesSep 20, 2026
CVE-2026-92423LOW2.7
  • meow-gallery
NoYesSep 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management