function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nagarajan CNagarajan C 

Client DOM Code Injection

Facing issue in chexmarx-Client DOM Code Injection
The attacker can inject the malicious payload into the victim's browser, via external input flowStatus. This is
read by the browser in the window.addEventListener method,

My code in lwc
window.addEventListener("message", (event) => {
   detail: {
                    flowStatus: event.data.flowStatus,
                    
            }

             });

Kindly help to resolve this