CVE-2022-40191 MEDIUM

CVE-2022-40191: WordPress Contact Form By Mega Forms plugin <= 1.2.4 - Authenticated Stored Cross-Site Scripting (XSS) vulnerability

Vendor Ali Khallad
Product Contact Form By Mega Forms (WordPress plugin)
Weakness CWE-79 · XSS
Published September 9, 2022
Last update April 28, 2026

CVSS base score

5.4/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

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

What the vulnerability does

01Description

Authenticated (subscriber+) Stored Cross-Site Scripting (XSS) vulnerability in Ali Khallad's Contact Form By Mega Forms plugin <= 1.2.4 at WordPress.

Explanation of Vulnerability in Simple Terms

02Summary

Contact Form By Mega Forms versions up to 1.2.4 contain a stored cross-site scripting (XSS) vulnerability. An authenticated user with low privileges can inject malicious scripts into form fields. When other users view the affected form or its submissions, the injected code executes in their browser, potentially allowing the attacker to steal session tokens, redirect users, or perform actions on their behalf.

What an attacker can do

03Attacker Capabilities

Inject malicious JavaScript that executes when other users view forms or submissions.

Potential impact on your site

04Site Impact

Attackers with user accounts can compromise other users' sessions or steal sensitive data submitted through forms.

Conditions required to exploit

05Prerequisites

Attacker must be logged in with low-level user privileges and the victim must view the affected form or submission.

Key dates

06Disclosure timeline

September 9, 2022 CVE published
April 28, 2026 Record updated

Related vulnerabilities

08Related CVE