Security Vulnerability Report
中文
CVE-2026-4142 CVSS 4.4 MEDIUM

CVE-2026-4142

Published: 2026-04-22 09:16:25
Last Modified: 2026-04-22 20:22:51

Description

The Sentence To SEO (keywords, description and tags) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Permanent keywords' field in all versions up to and including 1.0. This is due to insufficient input sanitization and output escaping. The plugin reads user input via filter_input_array(INPUT_POST) which applies no HTML sanitization (FILTER_DEFAULT), stores it unsanitized to the WordPress options table via update_option(), and then outputs the stored value directly into a textarea element without any escaping using PHP short echo tags (<?= ?>). An attacker can break out of the textarea element using a closing </textarea> tag and inject arbitrary HTML/JavaScript. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses the plugin's settings page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Sentence To SEO <= 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC Payload for the 'Permanent keywords' field. Inject the following string into the field and save settings. --> </textarea><script>alert('CVE-2026-4142_XSS');</script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4142", "sourceIdentifier": "[email protected]", "published": "2026-04-22T09:16:25.000", "lastModified": "2026-04-22T20:22:50.570", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Sentence To SEO (keywords, description and tags) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Permanent keywords' field in all versions up to and including 1.0. This is due to insufficient input sanitization and output escaping. The plugin reads user input via filter_input_array(INPUT_POST) which applies no HTML sanitization (FILTER_DEFAULT), stores it unsanitized to the WordPress options table via update_option(), and then outputs the stored value directly into a textarea element without any escaping using PHP short echo tags (<?= ?>). An attacker can break out of the textarea element using a closing </textarea> tag and inject arbitrary HTML/JavaScript. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses the plugin's settings page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/tags/1.0/index.php#L262", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/tags/1.0/index.php#L50", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/tags/1.0/index.php#L75", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/tags/1.0/index.php#L81", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/tags/1.0/index.php#L87", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/trunk/index.php#L262", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/trunk/index.php#L50", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/trunk/index.php#L75", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/trunk/index.php#L81", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sentence-to-seo/trunk/index.php#L87", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/7d11b2db-d097-433f-923c-f49ef2951c0e?source=cve", "source": "[email protected]"}]}}