# CVE-2022-50959: WordPress Contact Form Builder 1.6.1 Cross-Site Scripting via code_generator.php

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-10T12:12:53.644Z
- Modified: 2026-07-24T12:10:00.210Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- wpdevart Contact Form Builder: 1.6.1

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://www.exploit-db.com/exploits/50734> (exploit)
- <https://wordpress.org/plugins/contact-forms-builder/> (product)
- <https://www.vulncheck.com/advisories/wordpress-contact-form-builder-cross-site-scripting-via-code-generator-php> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-50959](https://www.cve.org/CVERecord?id=CVE-2022-50959), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2022-50959](https://nvd.nist.gov/vuln/detail/CVE-2022-50959), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2022-50959 · Whole record: https://cve.day/CVE-2022-50959.json · Rebuilt by cve.day 2026-11-25T22:58:21.436Z
