Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-87760 Overview
CVE-2026-87760 is a stored Cross-Site Scripting (XSS) vulnerability in the Web Vitals Tracking WordPress plugin through version 5.4.2. The plugin fails to validate or escape performance measurements submitted by unauthenticated visitors. These unsanitized values are stored and later rendered inside a script context on an administrative page. An unauthenticated attacker can inject JavaScript that executes in the browser of any administrator viewing the affected admin page. The flaw is tracked under CWE-79 and documented in the WPScan Vulnerability Report.
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in administrator sessions, enabling account takeover, plugin installation, and full site compromise.
Affected Products
- Web Vitals Tracking WordPress plugin versions up to and including 5.4.2
- WordPress sites with the plugin installed and active
- Administrative users accessing the plugin's reporting page
Discovery Timeline
- 2026-10-11 - CVE-2026-87760 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-87760
Vulnerability Analysis
The Web Vitals Tracking plugin collects browser performance metrics such as Largest Contentful Paint, First Input Delay, and Cumulative Layout Shift. These measurements are submitted by unauthenticated site visitors through a public endpoint. The plugin stores the submitted payload directly without server-side validation or escaping. When an administrator later opens the plugin's reporting dashboard, the stored values are output inside a <script> block without context-appropriate encoding. An attacker who submits a crafted payload instead of a legitimate numeric metric can therefore break out of the intended data context and execute JavaScript in the administrator's authenticated session.
Root Cause
The root cause is missing input validation on untrusted visitor-supplied data and missing output escaping for a JavaScript context. The plugin treats inbound telemetry as trusted structured data rather than arbitrary attacker-controlled input. Numeric metrics should be cast to floats before storage, and any string output rendered inside <script> must be encoded using JSON-safe escaping.
Attack Vector
An attacker sends a crafted HTTP request to the plugin's metric collection endpoint, substituting JavaScript payloads for the expected performance values. No authentication is required. The payload persists in the WordPress database and triggers when a logged-in administrator visits the plugin's admin page. Successful execution allows the attacker to create new administrator accounts, modify plugin or theme files, exfiltrate session cookies, or install a web shell. See the WPScan advisory for additional technical context.
Detection Methods for CVE-2026-87760
Indicators of Compromise
- Unexpected new WordPress administrator accounts created shortly after admin logins
- Non-numeric values stored in Web Vitals Tracking database tables where only floats are expected
- Outbound requests from wp-admin sessions to unfamiliar external domains
- Modified plugin, theme, or wp-config.php files with recent timestamps
Detection Strategies
- Inspect HTTP POST bodies to the plugin's metric collection endpoint for characters such as <, >, ", or substrings like onerror= and <script>
- Query the plugin's storage tables for rows whose metric fields contain non-numeric content
- Review web server access logs for repeated submissions from a single IP targeting the Web Vitals endpoint
Monitoring Recommendations
- Enable WordPress audit logging to capture administrator account creation, role changes, and plugin or theme edits
- Alert on JavaScript execution from wp-admin pages that initiates unexpected outbound connections
- Monitor file integrity for the WordPress core, plugins, and themes directories
How to Mitigate CVE-2026-87760
Immediate Actions Required
- Deactivate the Web Vitals Tracking plugin until a patched version above 5.4.2 is confirmed available and installed
- Audit WordPress users and remove any administrator accounts that cannot be attributed to a known operator
- Rotate administrator credentials and invalidate active sessions through the WordPress user management interface
- Review recently modified files across the WordPress installation for signs of persistence
Patch Information
At the time of publication, the enriched data references the WPScan Vulnerability Report and lists the plugin as vulnerable through 5.4.2. Administrators should consult the plugin's official repository listing for a fixed release and upgrade immediately once available.
Workarounds
- Block or rate-limit unauthenticated POST requests to the plugin's metric collection endpoint at the WAF or reverse proxy
- Restrict access to /wp-admin/ by source IP for sites with a small administrative user base
- Deploy a Content Security Policy that disallows inline scripts on admin pages to reduce exploitation impact
# Example nginx rule to block the Web Vitals endpoint until the plugin is patched
location ~* /wp-json/web-vitals/ {
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

