CVE-2026-16942

WP Custom HTML Pages <= 0.6.2 - Author+ Stored XSS

Published Aug 5, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
The WP Custom HTML Page WordPress plugin through 0.6.2 does not sanitise HTML stored through one of its custom page handlers, nor restrict it to users allowed to post unfiltered HTML, allowing users with the Author role to store JavaScript that is served unescaped at a public URL and executes for any visitor, including administrators.

Analysis

AI-generated

Technical impact

The WP Custom HTML Page plugin, up to version 0.6.2, fails to sanitize or filter stored HTML in its page handlers. Users with the Author role can store arbitrary JavaScript that is served unescaped from a public URL. The unsanitized code then runs in the browsers of any site visitor, including site administrators. This stored cross‑site scripting flaw can be used to hijack sessions, steal cookies, deface the site, or redirect users to malicious sites. The vulnerability directly maps to the classic stored XSS weakness (CWE‑79).

Affected Systems

The affected product is the WordPress plugin “WP Custom HTML Page” version 0.6.2 and earlier. No specific vendor name is published, but all installations of this plugin running those versions are vulnerable if the Author role has access to the custom page editor.

Risk and Exploitability

The CVSS score is 5.4, indicating a moderate severity. The EPSS score is below 1%, suggesting a low probability of observation, but the flaw is not listed in CISA’s KEV catalog. Nonetheless, the flaw permits arbitrary JavaScript execution to any authenticated user with Author permissions, which is a high‑risk vector that can be easily exercised with minimal effort. The exploit conditions are straightforward: an attacker with Author privileges must submit a page containing malicious script, and the resulting URL is publicly accessible. Because the threat does not require additional software or network access, the likelihood of exploitation remains high for sites that have retained insecure versions of the plugin.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WP Custom HTML Page plugin to the latest version that includes HTML sanitization for pages created by Authors; if no newer version exists, remove the plugin entirely.
  • If removal is not viable, disable or limit the capability that allows Authors to create or edit posts that can contain unfiltered HTML, either by configuring user role settings or by applying a role‑management plugin to strip the "unfiltered_html" capability from Authors.
  • Implement a strong Content‑Security‑Policy on the WordPress site that disallows inline scripts and restricts script sources, reducing the impact of any malicious content that may surface via the plugin.

Generated by OpenCVE AI on August 5, 2026 at 17:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wordpress-extensions
Wordpress-extensions wp Custom Html Page
Vendors & Products Wordpress-extensions
Wordpress-extensions wp Custom Html Page
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-79
Type Values Removed Values Added
Description The WP Custom HTML Page WordPress plugin through 0.6.2 does not sanitise HTML stored through one of its custom page handlers, nor restrict it to users allowed to post unfiltered HTML, allowing users with the Author role to store JavaScript that is served unescaped at a public URL and executes for any visitor, including administrators.
Title WP Custom HTML Pages <= 0.6.2 - Author+ Stored XSS
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
WPScan
Published
Updated
Aug 5, 2026, 3:11 PM
Reserved
Jul 24, 2026, 7:54 AM
Status
Deferred
Published
Aug 5, 2026, 7:16 AM
Modified
Aug 26, 2026, 4:31 PM