Junglewise Threat Intelligence

CVE-2025-11977: Happyforms WordPress plugin Local File Inclusion in happyforms_get_form_partial

CVE-2025-11977 · Severity: medium · CVSS 6.6 · Published 2026-07-10

Executive brief

Happyforms, a popular WordPress plugin used for creating contact forms and surveys, contains a security flaw that could allow an administrator to execute malicious code on the website's server. By exploiting this vulnerability, an attacker with high-level access could potentially take full control of the site, access sensitive data, or disrupt operations. This issue is particularly dangerous if the attacker is also able to upload files to the server.

Technical details

The Happyforms plugin for WordPress is vulnerable to Local File Inclusion (LFI) in all versions up to and including 1.26.12. The vulnerability exists within the `happyforms_get_form_partial()` function, which fails to properly validate file paths before inclusion. An authenticated attacker with Administrator-level privileges can exploit this to include and execute arbitrary .php files already present on the server. If combined with a file upload vulnerability or a method to place malicious PHP files on the file system, this can lead to remote code execution (RCE). The attack requires network access and high privileges, and is mitigated by the complexity of needing a target file to include.

Affected products

  • happyforms Happyforms – Form Builder for WordPress: Drag & Drop Contact Forms, Surveys, Payments & Multipurpose Forms <= 1.26.12

Timeline

  • 2026-07-10: advisory: Advisory published by Wordfence/NVD

References

Related threats