With react:18.3.1 getting security vulnerability issue while scanning my project.
Reason Could be: The react package is vulnerable to Cross-Site Scripting (XSS). User data that is spread in the rendering code of a React component is not properly validated. An attacker can exploit this behavior to execute arbitrary JavaScript in a victim's browser instance.
Note: Following the DOMPurify pattern while using the dangerouslySetInnerHTML
Expectation: Want my project to run with out the vulnerabilities on scan