LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 6.1Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

A vulnerable WordPress plugin can let an unauthenticated attacker make a specially crafted link that runs JavaScript in a victim’s browser. This is not server takeover by itself, but it can support phishing, session abuse, or unwanted actions if a logged-in user follows the link.

Executive priority

Treat as a moderate web application risk. It is unlikely to be an immediate infrastructure compromise, but public exploit information and unauthenticated reachability make timely plugin review and remediation appropriate for internet-facing WordPress sites.

Technical view

CVE-2022-50959 is reflected cross-site scripting in wpdevart Contact Form Builder 1.6.1. The issue is tied to the form_id parameter in code_generator.php. CVSS 3.1 is 6.1 with network access, low complexity, no privileges, and required user interaction.

Likely exposure

Exposure is limited to WordPress sites using wpdevart Contact Form Builder version 1.6.1 where the affected code_generator.php path is reachable. Risk rises when administrators or authenticated users can be induced to open attacker-controlled links.

Exploitation context

The bundle cites an ExploitDB entry, so public exploit information exists. The CVE is not listed as KEV, and the provided sources do not show active exploitation. Successful abuse requires user interaction through a crafted URL.

Researcher notes

The provided evidence identifies reflected XSS, CWE-79, affected version 1.6.1, and the vulnerable parameter/path. It does not provide a fixed version, vendor patch statement, or evidence of active exploitation. Avoid assuming other versions are affected without vendor confirmation.

Mitigation direction

  • Inventory WordPress sites for Contact Form Builder by wpdevart version 1.6.1.
  • Check the vendor plugin page and advisory sources for supported upgrade or remediation guidance.
  • If no supported fix is available, consider disabling or removing the plugin after business approval.
  • Prioritize remediation on public WordPress sites and sites used by privileged administrators.
  • Educate administrators not to open untrusted links targeting WordPress plugin paths.

Validation and detection

  • Confirm whether Contact Form Builder 1.6.1 is installed on any WordPress property.
  • Review web logs for requests to code_generator.php with unusual form_id values.
  • Verify whether the affected endpoint is reachable by unauthenticated users.
  • Check whether administrative users accessed suspicious links or sessions near relevant log entries.
  • Document plugin version, exposure status, and remediation decision for each site.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-50959 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
3Timeline events
1ADP providers
4Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.1CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N2.82.7VulnCheck
5.1CVSS 4.0MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NVulnCheck

Vulnerability scoring details

Base CVSS 4.0 score

5.1Medium
CVSS 4.0 vector shape for CVE-2022-50959Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
wpdevartContact Form Builder1.6.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.