MEDIUM 6.6

CVE-2025-11977: Happyforms Plugin Local File Inclusion Vulnerability – WordPress Security

The Happyforms WordPress plugin contains a vulnerability in its form handling function that allows administrators to include and execute arbitrary PHP files from the server. An attacker with administrator credentials could exploit this to run malicious code, potentially compromising the entire WordPress installation. The vulnerability affects all versions up to and including 1.26.12.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.6 MEDIUM · CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-98
Affected products
0 configuration(s)
Published / Modified
2026-07-10 / 2026-07-10

NVD description (verbatim)

The Happyforms – Form Builder for WordPress: Drag & Drop Contact Forms, Surveys, Payments & Multipurpose Forms plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.26.12 via the happyforms_get_form_partial() function. This makes it possible for authenticated attackers, with Administrator-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2025-11977 is a Local File Inclusion (LFI) vulnerability in the happyforms_get_form_partial() function within the Happyforms – Form Builder for WordPress plugin. The function fails to properly validate file inclusion paths, enabling authenticated administrators to specify arbitrary PHP file paths that are subsequently executed on the server. The attack vector is network-based with high attack complexity due to the requirement for administrator-level credentials. The vulnerability maps to CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program), a well-known PHP-specific weakness that enables remote code execution when user input influences file inclusion logic.

Business impact

Exploitation of this vulnerability would grant an attacker with administrative access the ability to execute arbitrary PHP code on the web server. This can lead to data exfiltration, modification of website content, installation of backdoors, or lateral movement within the hosting environment. For organizations relying on Happyforms for contact collection, surveys, or payment processing, a compromised installation could expose customer data, payment information, or internal communications. The impact is particularly severe because it affects sites where the attacker has already obtained administrator credentials, suggesting a multi-stage attack or insider threat scenario.

Affected systems

The Happyforms – Form Builder for WordPress plugin in all versions up to and including 1.26.12 is vulnerable. Any WordPress installation using this plugin is affected if an administrator account has been compromised or if an insider threat with administrative privileges exists. The plugin's widespread use in the WordPress ecosystem means a significant number of websites may be exposed, particularly those managing customer inquiries, survey data, or online payments through Happyforms.

Exploitability

Exploitation requires administrator-level credentials, which substantially raises the barrier to attack. However, the attack complexity is high, and the vector is network-accessible, meaning remote exploitation is possible if credentials are obtained through phishing, credential stuffing, password reuse, or insider access. The vulnerability does not require user interaction once an attacker has administrative access. Organizations should assess their administrator account security posture, including password policies, multi-factor authentication enforcement, and access control reviews.

Remediation

Update the Happyforms plugin to the latest version beyond 1.26.12 as soon as a patched release becomes available. Verify the patch details against the plugin's official release notes and security advisories. In the interim, restrict administrator account creation, enforce strong password policies, and enable multi-factor authentication for all administrative users. Consider limiting administrator role access to trusted personnel only and monitor for unauthorized login attempts. If the plugin's administrative functionality is not essential, disable or remove it until a patch is confirmed and tested.

Patch guidance

Monitor the Happyforms plugin repository and the plugin vendor's security advisories for a patched version above 1.26.12. When a patch is released, test it in a staging environment before deploying to production to ensure compatibility with your WordPress configuration and other installed plugins. Verify the patch version against the official vendor advisory to confirm it addresses CVE-2025-11977 specifically. After patching, audit administrator account logs to identify any suspicious file inclusion activity or unauthorized PHP execution.

Detection guidance

Monitor web server logs for unusual GET or POST requests to the happyforms_get_form_partial() function with suspicious file path parameters. Look for patterns attempting to include files outside the expected plugin directory structure or attempts to load .php files from upload directories. Check PHP error logs for include/require statements that fail or execute unexpected files. Implement file integrity monitoring on the WordPress directory to detect unauthorized PHP files or modifications to existing ones. Review administrator account login logs for unusual access patterns, failed authentication attempts, or logins from unexpected geographic locations. Examine server access logs for POST requests to the plugin containing path traversal sequences (../) or absolute file paths.

Why prioritize this

Although this vulnerability carries a CVSS 3.1 score of 6.6 (Medium), the practical risk to most WordPress administrators is moderate to low due to the requirement for existing administrator access. However, organizations should prioritize patching if they have: (1) a history of administrator account compromises, (2) shared hosting environments with multiple users, (3) high-value data managed through Happyforms, or (4) payment processing functionality. The medium severity score reflects the high impact potential (code execution) balanced against the elevated attack complexity (administrator credentials required). For organizations with strong administrator access controls, this is lower priority than critical vulnerabilities; for those with weaker credential hygiene, it warrants faster remediation.

Risk score, explained

The CVSS 3.1 score of 6.6 reflects a Medium severity due to the combination of: (1) High impact across confidentiality, integrity, and availability if exploited; (2) Network-accessible attack vector; (3) High attack complexity, primarily driven by the requirement for administrator-level privileges (PR:H); (4) No user interaction needed once credentials are obtained (UI:N); (5) Unchanged scope (S:U), meaning the impact is limited to the vulnerable component and the web server it runs on. Organizations with robust administrator account security (MFA, strong passwords, access restrictions) should experience lower practical risk than those with weaker controls.

Frequently asked questions

Does this vulnerability affect WordPress sites using older versions of Happyforms?

Yes, all versions up to and including 1.26.12 are vulnerable. Sites must update to a patched version beyond 1.26.12 once released. If you cannot upgrade immediately, implement strict administrator access controls and monitor for suspicious activity.

Can this vulnerability be exploited without administrator credentials?

No. The vulnerability explicitly requires administrator-level access to exploit. This significantly limits the attack surface, though it does not eliminate risk if administrator accounts are compromised through phishing, weak passwords, or credential reuse.

What types of files could an attacker include and execute?

An attacker could include and execute any .php file accessible to the web server process, including files in upload directories, plugin directories, theme directories, or elsewhere on the server. This allows for remote code execution as long as the attacker can predict or control the file path.

How should I check if my site has been compromised?

Review administrator account login logs for unfamiliar access. Check your web server and PHP error logs for unusual include/require statements or unexpected PHP file executions. Use file integrity monitoring to detect unauthorized .php files or modifications. If compromise is suspected, isolate the site, change all administrator passwords, and conduct a forensic investigation before bringing it back online.

This analysis is based on the CVE-2025-11977 record as published. No exploit code or detailed attack steps are provided in this advisory. Organizations should verify patch availability and version numbers against the official Happyforms plugin repository and vendor security advisories before deploying updates. The risk assessment provided is general in nature and should be tailored to your specific infrastructure, access controls, and data sensitivity. SEC.co does not provide exploit development services or weaponized proof-of-concepts. Always test security patches in a staging environment before production deployment. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).