Divi Engine Divi Form Builder
Divi Form Builder <= 5.1.2 - Unauthenticated Privilege Escalation via 'role'
The Divi Form Builder plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 5.1.2. This is due to the plugin accepting a user-controlled 'role' parameter from POST data during user registration without validating it against the form's configured default_user_role setting. This makes it possible for unauthenticated attackers to create administrator accounts by tampering with the role parameter during registration.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 5.1.2
Mitigation
The record names no fix. Check the vendor advisory below.
References
- Release notes diviengine.com/divi-form-builder-changelog
Timeline
Days relative to CVE publicationFirst public PoC 1 h before publication; not in CISA KEV. First PoC: zycoder0day/CVE-2026-5118 (created 21 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.6 PoCs
PoCs 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| zycoder0day/CVE-2026-5118 | 21 May 2026 −1 h | 5 | PoC via PoC Index |
| puj790201-lab/CVE-2026-5118 | 21 May 2026 +2 h | 1 | PoC |
| Jenderal92/CVE-2026-5118 | 21 May 2026 +11 h | 0 | PoC |
| Yucaerin/CVE-2026-5118 | 22 May 2026 +20 h | 0 | PoC |
| 1beelze/CVE-2026-5118 | 13 Jul 2026 +53 d | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| SangSenimanWartefak/CVE-2026-5118 | 22 Sep 2026 +125 d | 0 | PoC |
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 6 PoC reposPOST /wp-admin/admin-ajax.php
- Key headers
X-Requested-With: XMLHttpRequest- Body markers
------POC Content-Disposition: form-data; name="action"inmultipart/form-data; boundary={var}- PoC User-Agent
Mozilla/5.0- Seen in
- 4 repos: 1beelze/CVE-2026-5118, Jenderal92/CVE-2026-5118, SangSenimanWartefak/CVE-2026-5118, zycoder0day/CVE-2026-5118
- Evidence
- 1beelze/CVE-2026-5118/CVE-2026-5118.py:334 Jenderal92/CVE-2026-5118/CVE-2026-5118.py:101 SangSenimanWartefak/CVE-2026-5118/CVE-2026-5118.py:334 zycoder0day/CVE-2026-5118/README.md:133
GET /wp-json/wp/v2/pages
- Query
per_page=status=publish_fields=link,content- Seen in
- 2 repos: 1beelze/CVE-2026-5118, SangSenimanWartefak/CVE-2026-5118
- Evidence
- 1beelze/CVE-2026-5118/CVE-2026-5118.py:263 SangSenimanWartefak/CVE-2026-5118/CVE-2026-5118.py:263
GET /wp-json/wp/v2/users/me
- Query
context=edit- Seen in
- 2 repos: 1beelze/CVE-2026-5118, SangSenimanWartefak/CVE-2026-5118
- Evidence
- 1beelze/CVE-2026-5118/CVE-2026-5118.py:378 SangSenimanWartefak/CVE-2026-5118/CVE-2026-5118.py:378
GET /wp-login.php
POST /wp-login.php
- Body markers
log=pwd=wp-submit=Log Inredirect_to=testcookie=1inapplication/x-www-form-urlencoded- Seen in
- 2 repos: 1beelze/CVE-2026-5118, SangSenimanWartefak/CVE-2026-5118
- Evidence
- 1beelze/CVE-2026-5118/CVE-2026-5118.py:367 SangSenimanWartefak/CVE-2026-5118/CVE-2026-5118.py:367
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/wp-admin/admin-ajax\.php(?:[?#].*)?$
(?i)^/wp-json/wp/v2/pages\?(?:.*&)?per_page=.*status=publish.*_fields=link,content
(?i)^/wp-json/wp/v2/users/me\?(?:.*&)?context=edit
(?i)^/wp-login\.php(?:[?#].*)?$
(?i)^/wp-login\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5118 Divi Engine Divi Form Builder exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/wp-admin/admin-ajax.php"; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"------POC Content-Disposition: form-data|3b| name=|22|action|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-5118; classtype:web-application-attack; sid:9895917; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5118 Divi Engine Divi Form Builder exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wp-json/wp/v2/pages"; http.uri; content:"per_page="; http.uri; content:"status=publish"; http.uri; content:"_fields=link,content"; reference:url,poc.griffinguard.io/cve/CVE-2026-5118; classtype:web-application-attack; sid:9044019; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5118 Divi Engine Divi Form Builder exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wp-json/wp/v2/users/me"; http.uri; content:"context=edit"; reference:url,poc.griffinguard.io/cve/CVE-2026-5118; classtype:web-application-attack; sid:9516750; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5118 Divi Engine Divi Form Builder exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wp-login.php"; reference:url,poc.griffinguard.io/cve/CVE-2026-5118; classtype:web-application-attack; sid:9119828; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5118 Divi Engine Divi Form Builder exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/wp-login.php"; http.request_body; content:"log="; http.request_body; content:"pwd="; http.request_body; content:"wp-submit=Log In"; http.request_body; content:"redirect_to="; http.request_body; content:"testcookie=1"; reference:url,poc.griffinguard.io/cve/CVE-2026-5118; classtype:web-application-attack; sid:9503298; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Divi Engine Divi Form Builder exploit attempt (CVE-2026-5118)
id: gg-pocmon-cve-2026-5118-9895917
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5118. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5118
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/wp-admin/admin-ajax.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5118
title: Divi Engine Divi Form Builder exploit attempt (CVE-2026-5118)
id: gg-pocmon-cve-2026-5118-9044019
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5118. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5118
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/wp-json/wp/v2/pages'
cs-uri-query|contains|all:
- 'per_page='
- 'status=publish'
- '_fields=link,content'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5118
title: Divi Engine Divi Form Builder exploit attempt (CVE-2026-5118)
id: gg-pocmon-cve-2026-5118-9516750
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5118. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5118
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/wp-json/wp/v2/users/me'
cs-uri-query|contains|all:
- 'context=edit'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5118
title: Divi Engine Divi Form Builder exploit attempt (CVE-2026-5118)
id: gg-pocmon-cve-2026-5118-9119828
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5118. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5118
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/wp-login.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5118
title: Divi Engine Divi Form Builder exploit attempt (CVE-2026-5118)
id: gg-pocmon-cve-2026-5118-9503298
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5118. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5118
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/wp-login.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5118