CVE-2026-5118 Divi Form Builder <= 5.1.2 - Unauthenticated Privilege Escalation via 'role'

Critical 9.8 Published Updated

Unauthenticated attackers can create administrator accounts by tampering with the role parameter during registration in Divi Form Builder.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-5118?

CVE-2026-5118 is a critical vulnerability in Divi Form Builder, published on 21 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-269

Which versions are affected by CVE-2026-5118?

How do I fix CVE-2026-5118?

No fix has been published for CVE-2026-5118 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-5118 being exploited?

There is no known exploitation of CVE-2026-5118 in the wild and no public exploit code.

Public exploit code: 6 proofs of concept on GitHub.

Sources

Also known as GHSA-75vq-ppvv-frh3.

Is CVE-2026-5118 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free