CVE-2022-50959

MEDIUM

WordPress Contact Form Builder 1.6.1 Cross-Site Scripting via code_generator.php

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2022-50959. PoCs published by Milad karimi.

AI-analyzed exploit summary The exploit demonstrates a reflected XSS vulnerability in WordPress Plugin Contact Form Builder 1.6.1 via the 'form_id' parameter in 'code_generator.php'. The PoC shows how arbitrary JavaScript can be injected and executed in the context of the victim's browser.

Description

WordPress Contact Form Builder 1.6.1 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts by exploiting the form_id parameter. Attackers can craft malicious URLs to code_generator.php with script payloads in the form_id parameter to execute arbitrary JavaScript in victim browsers.

Exploits (1)

exploitdb WORKING POC
by Milad karimi · textwebappsphp
https://www.exploit-db.com/exploits/50734

The exploit demonstrates a reflected XSS vulnerability in WordPress Plugin Contact Form Builder 1.6.1 via the 'form_id' parameter in 'code_generator.php'. The PoC shows how arbitrary JavaScript can be injected and executed in the context of the victim's browser.

Classification
Working Poc 90%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: WordPress Plugin Contact Form Builder 1.6.1
No auth needed
Prerequisites: Access to the vulnerable endpoint
devstral-2 · analyzed May 10, 2026 Full analysis →

References (3)

Core 3
Core References
Exploit exploit
ExploitDB-50734
https://www.exploit-db.com/exploits/50734
Product product
Product Reference
https://wordpress.org/plugins/contact-forms-builder/
Third Party Advisory third-party-advisory
VulnCheck Advisory: WordPress Contact Form Builder 1.6.1 Cross-Site Scripting via code_generator.php
https://www.vulncheck.com/advisories/wordpress-contact-form-builder-cross-site-scripting-via-code-generator-php

Scores

CVSS v3 6.1
EPSS 0.0021
EPSS Percentile 10.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-79
Status published
Products (1)
wpdevart/Contact Form Builder 1.6.1
Published May 10, 2026
Tracked Since May 10, 2026