WordPress Google Fonts Plugin at Risk

Vulnerability Alert: WordPress Google Fonts Plugin at Risk

In a recent development, a high-rated vulnerability has been identified in a widely used Google Fonts optimization plugin for WordPress, potentially affecting over 300,000 websites. This flaw allows unauthenticated attackers to delete entire directories and stage Cross-Site Scripting (XSS) attacks, posing a significant threat to website security.

Read More: Critical Vulnerability Exposes 50K WordPress Sites To RCE Attacks In Backup Plugin

The Vulnerability

Unauthenticated Access

The vulnerability is particularly alarming because it grants unauthenticated attackers access to the website. In this context, “unauthenticated” means that an attacker doesn’t need to be registered on the website or possess any level of credentials to exploit the vulnerability.

Directory Deletion and XSS

The flaw facilitates unauthenticated directory deletion and enables the upload of Cross-Site Scripting (XSS) payloads. XSS is a malicious technique where a harmful script is injected into a website, allowing attackers to compromise the browsers of visitors. This could lead to unauthorized access to user cookies or session information, potentially allowing the attacker to assume the privileges of the user.

Read More: The Right Way To Switch Web Hosting Companies

Cause of Vulnerability

The vulnerability, as identified by researchers at Wordfence, is attributed to a lack of capability checks within the plugin. Specifically, the absence of a capability check on the update_settings() function, hooked via admin_init in all plugin versions up to and including 5.7.9, renders it vulnerable to unauthorized modification of data and Stored Cross-Site Scripting.

Wordfence suggests that previous updates attempted to address the security gap but emphasizes version 5.7.10 as the most secure iteration of the plugin.

Prevention and Secure Practices

WordPress developers are reminded of the importance of capability checks in their plugins to ensure the security of user data. Proper capability checks help verify if a user has the necessary permissions for specific plugin features, preventing unauthorized access.

Read More: How To Earn A Free SSL Certificate For Your WordPress Website

Frequently Asked Questions

Q1: How can I protect my WordPress site from this vulnerability?

A1: Ensure your Google Fonts optimization plugin is updated to at least version 5.7.10, the most secure release according to Wordfence. Additionally, regularly update all plugins and themes, and consider implementing a web application firewall.

Q2: Are there any signs that my site has been exploited through this vulnerability?

A2: Signs of exploitation may include unexpected changes in site content, suspicious activities in server logs, or reports of unauthorized access from users. Regularly monitoring these aspects can help identify potential issues.

Q3: What should I do if my site has been compromised?

A3: If your site has been compromised, take immediate action by isolating the affected server, removing malicious code, and restoring a clean backup. Conduct a thorough security audit to identify and address any remaining vulnerabilities.


Given the severity of this vulnerability, website administrators must act promptly to secure their WordPress installations. Updating the affected plugin to version 5.7.10 and following best security practices are crucial steps in safeguarding against potential threats.

Feature Image Source: Nathana Rebou├žas

Similar Posts