Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-27194 Overview
CVE-2024-27194 is a Cross-Site Request Forgery (CSRF) vulnerability in the Andrei Ivasiuc Fontific | Google Fonts WordPress plugin. The flaw allows an attacker to chain CSRF with Stored Cross-Site Scripting (XSS), persisting malicious script content through an authenticated administrator's browser session. The vulnerability affects all Fontific plugin versions up to and including 0.1.6. The underlying weakness is classified as CWE-352, Cross-Site Request Forgery.
Critical Impact
A remote attacker can trick an authenticated WordPress administrator into submitting a forged request that stores attacker-controlled JavaScript in plugin settings, which then executes in the browser of any user viewing affected pages.
Affected Products
- Andrei Ivasiuc Fontific | Google Fonts WordPress plugin
- All versions from n/a through 0.1.6
- WordPress sites with the vulnerable plugin activated
Discovery Timeline
- 2024-03-16 - CVE-2024-27194 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-27194
Vulnerability Analysis
The Fontific plugin exposes settings-handling endpoints that accept state-changing requests without validating a CSRF token. An attacker crafts a malicious page or link that submits a forged form to a targeted WordPress site. When an authenticated administrator visits the attacker-controlled page, the browser automatically includes valid session cookies with the forged request.
Because the plugin also fails to sanitize the submitted values, the attacker persists arbitrary JavaScript in the plugin's configuration storage. That script later executes in the DOM whenever the affected settings are rendered, producing Stored XSS. The chain elevates a client-side social engineering trigger into persistent script execution against site administrators and visitors.
Root Cause
The root cause is the absence of anti-CSRF protections on plugin request handlers, combined with missing output encoding or input sanitization on user-controlled configuration fields. WordPress provides wp_nonce_field() and check_admin_referer() primitives specifically to prevent this class of issue; the vulnerable code paths do not enforce them.
Attack Vector
Exploitation requires user interaction from a privileged WordPress user, typically an administrator with permission to modify plugin settings. The attacker hosts a page containing a hidden auto-submitting form or fetch() call targeting the plugin's settings endpoint. When the administrator visits the attacker-controlled page while logged into WordPress, the browser transmits the forged request with valid session cookies. The stored payload then fires in any subsequent page render that echoes the affected setting. Additional technical detail is available in the Patchstack CVE Analysis.
Detection Methods for CVE-2024-27194
Indicators of Compromise
- Unexpected <script> tags, event handlers, or obfuscated JavaScript strings inside Fontific plugin options in the wp_options table.
- WordPress access logs showing POST requests to Fontific admin endpoints originating from external Referer headers.
- New or modified administrator accounts, or unexpected outbound requests, following admin sessions on affected sites.
Detection Strategies
- Inventory WordPress installations and flag any host running Fontific plugin version 0.1.6 or earlier.
- Review plugin option values for HTML or JavaScript content that should not appear in a font-configuration field.
- Correlate administrator authentication events with off-site Referer headers on plugin admin-post.php or options.php requests.
Monitoring Recommendations
- Enable HTTP request logging on wp-admin endpoints and alert on state-changing requests with missing or foreign Referer values.
- Deploy a Content Security Policy (CSP) that blocks inline scripts and report violations centrally for triage.
- Monitor endpoint telemetry on administrator workstations for browser-launched processes that follow visits to untrusted sites.
How to Mitigate CVE-2024-27194
Immediate Actions Required
- Deactivate the Fontific plugin on any WordPress site running version 0.1.6 or earlier until a patched release is verified.
- Audit stored plugin settings and remove any unexpected HTML or JavaScript content.
- Force reauthentication for WordPress administrators and rotate session salts in wp-config.php.
Patch Information
At the time of publication, the Patchstack advisory lists all versions through 0.1.6 as affected with no fixed version identified. Consult the Patchstack CVE Analysis for updated remediation status and replace the plugin with a maintained alternative if a patched build is not available.
Workarounds
- Remove the Fontific plugin and migrate to an actively maintained Google Fonts integration.
- Enforce a strict Content Security Policy that disallows inline scripts to blunt Stored XSS execution.
- Restrict administrator sessions to dedicated browsers or profiles that do not browse untrusted content.
- Place the WordPress admin interface behind an IP allowlist or VPN to reduce CSRF exposure from arbitrary web pages.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

