CVE-2021-24935
WordPress vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-24935 affects the WP Google Fonts WordPress plugin versions below 3.1.5. This is a Reflected Cross-Site Scripting (XSS) vulnerability discovered and reported by ZhongFu Su(JrXnm) of Wuhan University. The vulnerability was publicly disclosed on November 3, 2021 (WPScan).

Technical details

The vulnerability exists because the plugin fails to properly escape the 'googlefont_ajax_name' and 'googlefont_ajax_family' parameters in the 'googlefont_action' AJAX action. This vulnerability is accessible to any authenticated user and has been assigned a CVSS score of 6.1 (medium severity). The vulnerability is classified as CWE-79: Cross-Site Scripting and falls under the OWASP Top 10 category A7: Cross-Site Scripting (XSS) (WPScan).

Impact

When exploited, the XSS vulnerability can be triggered in two ways: the XSS from the googlefont_ajax_name parameter is triggered when the mouse hovers over any checkbox, while the googlefont_ajax_family parameter triggers the XSS only in sections 1 and 4 (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in version 3.1.5 of the WP Google Fonts plugin. Users are advised to update to this version or later to mitigate the 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-10818HIGH8.1
  • wpforms
NoYesJul 25, 2026
CVE-2026-8789HIGH8.1
  • easy-appointments
NoYesJul 24, 2026
CVE-2026-14955MEDIUM6.5
  • woocommerce-checkout-field-editor-pro
NoYesJul 25, 2026
CVE-2026-15425MEDIUM6.4
  • wordpress-seo
NoYesJul 25, 2026
CVE-2026-15962NONEN/A
  • fluentformpro
NoYesJul 26, 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