CVE-2024-2402
WordPress vulnerability analysis and mitigation

Overview

The Better Comments WordPress plugin before version 1.5.6 contains a security vulnerability identified as CVE-2024-2402. The vulnerability was discovered and publicly disclosed on April 3, 2024, affecting the plugin's settings functionality. This security issue specifically impacts WordPress installations using the Better Comments plugin versions prior to 1.5.6 (WPScan).

Technical details

The vulnerability is classified as a Stored Cross-Site Scripting (XSS) issue, identified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The CVSS v3.1 base score is 5.4 (Medium), with the following vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The core issue stems from inadequate sanitization and escaping of certain plugin settings (NVD).

Impact

The vulnerability allows high-privilege users such as administrators to perform Stored Cross-Site Scripting attacks, even in scenarios where the unfiltered_html capability is explicitly disallowed, such as in multisite setups. This could potentially lead to the execution of malicious scripts in users' browsers (WPScan).

Exploitability

The vulnerability can be exploited through the plugin's Form Options settings. An attacker with administrative access can inject malicious scripts through the Comment Policy feature, which will then be executed when users view WordPress posts. The attack vector requires the attacker to have high-privilege access to the WordPress installation (WPScan).

Mitigation and workarounds

The vulnerability has been patched in version 1.5.6 of the Better Comments plugin. Site administrators are strongly advised to update to this version or later to mitigate the security risk (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77115HIGH7.1
  • brave-popup-builder
NoYesAug 23, 2026
CVE-2026-77116MEDIUM4.3
  • brave-popup-builder
NoYesAug 23, 2026
CVE-2026-14853MEDIUM4.3
  • woocommerce-bookings
NoYesAug 23, 2026
CVE-2026-77003LOW2.7
  • content-mask
NoYesAug 23, 2026
CVE-2026-13598NONEN/A
  • restrictmate
NoYesAug 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management