CVE-2021-24357
WordPress vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-24357 affects the Best Image Gallery & Responsive Photo Gallery – FooGallery WordPress plugin versions before 2.0.35. The vulnerability was discovered and publicly disclosed on May 31, 2021, by security researcher avolume (WPScan).

Technical details

The vulnerability is classified as a Stored Cross-Site Scripting (XSS) issue with a CVSS score of 5.5 (medium severity). The security flaw exists in the Custom CSS field of each gallery, which lacks proper sanitization and validation before being output on pages where the gallery is embedded. This vulnerability is categorized under CWE-79 and falls into the OWASP Top 10 category A7: Cross-Site Scripting (WPScan).

Impact

When exploited, this vulnerability allows attackers to inject malicious scripts through the Custom CSS field, which are then stored and executed when users view the affected gallery pages. This can lead to potential client-side attacks against users viewing the compromised gallery (WPScan).

Exploitability

The vulnerability requires authentication to exploit, as an attacker needs access to the gallery's Custom CSS field. The exploit can be triggered by creating or editing a gallery and inserting malicious code in the Custom CSS field, which then executes when users view the embedded gallery containing at least one image (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in FooGallery version 2.0.35. Users are advised to update their FooGallery plugin to this version or later to mitigate the security risk (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-18044NONEN/A
  • estatik
NoYesAug 12, 2026
CVE-2026-17008NONEN/A
  • quick-paypal-payments
NoNoAug 12, 2026
CVE-2026-16990NONEN/A
  • wp-paypal
NoNoAug 12, 2026
CVE-2026-16747NONEN/A
  • kirki
NoYesAug 12, 2026
CVE-2026-16621NONEN/A
  • woo-paypal-gateway
NoYesAug 12, 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