PoC Monitor
← All CVEs
CVE-2026-8832published 27 May 2026 06:46 UTCData: JSON · API

Smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

WPCode <= 2.3.5 - Authenticated (Author+) Remote Code Execution via CPT Capability Bypass via XML-RPC wp.newPost

The WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 2.3.5 This is due to the 'wpcode' custom post type being registered without a custom capability_type or capability restrictions in the wpcode_register_post_type() function, allowing WordPress core to fall back to standard post capabilities for all creation paths including XML-RPC. This makes it possible for authenticated attackers, with author-level access and above, to create and publish executable PHP snippet posts via XML-RPC wp.newPost, which are then executed server-side via eval() in the run_eval() function when the snippet is rendered through the [wpcode] shortcode.

First public PoC 1.6 daysafter publication · 28 May 2026
Public PoCs11 on GitHub
CVSS8.8high · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager
  • <= 2.3.5

Mitigation

The record names no fix. Check the vendor advisory below.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published27 May 2026 · t = 0First public PoC28 May 2026 · t+1.6d

First public PoC 1.6 days after publication; not in CISA KEV. First PoC: funixone/EXPLOIT-CVE-2026-8832 (created 28 May 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs · 1 informational

PoCs 1
RepositoryCreatedStarsAssessment
funixone/EXPLOIT-CVE-2026-8832 28 May 2026 +1.6 d 1 PoC
Informational 1
RepositoryCreatedStarsAssessment
funixone/EXPLOIT-CVE-2026-8832- 28 May 2026 +1.5 d 0 Informational · write-up

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

GET /wp-content/plugins/insert-headers-and-footers/readme.txt

Seen in
1 repo: funixone/EXPLOIT-CVE-2026-8832
Evidence
funixone/EXPLOIT-CVE-2026-8832/wpcode_rce_tester.py:208

POST /xmlrpc.php

Body markers
<?xml version="1.0" encoding="UTF-8"?> in text/xml
Seen in
1 repo: funixone/EXPLOIT-CVE-2026-8832
Evidence
funixone/EXPLOIT-CVE-2026-8832/wpcode_rce_tester.py:248 funixone/EXPLOIT-CVE-2026-8832/wpcode_rce_tester.py:277

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /
(?i)^/\?(?:.*&)?p=
GET /wp-content/plugins/insert-headers-and-footers/readme.txt
(?i)^/wp-content/plugins/insert-headers-and-footers/readme\.txt(?:[?#].*)?$
POST /xmlrpc.php
(?i)^/xmlrpc\.php(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-8832 smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"p="; reference:url,poc.griffinguard.io/cve/CVE-2026-8832; classtype:web-application-attack; sid:9146747; rev:1;)
GET /wp-content/plugins/insert-headers-and-footers/readme.txt
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-8832 smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wp-content/plugins/insert-headers-and-footers/readme.txt"; reference:url,poc.griffinguard.io/cve/CVE-2026-8832; classtype:web-application-attack; sid:9296188; rev:1;)
POST /xmlrpc.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-8832 smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/xmlrpc.php"; http.request_body; content:"<?xml version=|22|1.0|22| encoding=|22|UTF-8|22|?>"; reference:url,poc.griffinguard.io/cve/CVE-2026-8832; classtype:web-application-attack; sid:9253683; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /
title: smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager exploit attempt (CVE-2026-8832)
id: gg-pocmon-cve-2026-8832-9146747
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-8832. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-8832
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-query|contains|all:
      - 'p='
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.8832
GET /wp-content/plugins/insert-headers-and-footers/readme.txt
title: smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager exploit attempt (CVE-2026-8832)
id: gg-pocmon-cve-2026-8832-9296188
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-8832. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-8832
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/wp-content/plugins/insert-headers-and-footers/readme.txt'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.8832
POST /xmlrpc.php
title: smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager exploit attempt (CVE-2026-8832)
id: gg-pocmon-cve-2026-8832-9253683
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-8832. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-8832
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/xmlrpc.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.8832