Description
WordPress Plugin WP Code Highlight.js is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. WordPress Plugin WP Code Highlight.js version 0.6.3 is vulnerable; prior versions may also be affected.
Remediation
Edit the source code to ensure that input is properly sanitised or disable the plugin until a fix is available
References
https://github.com/owt5008137/WP-Code-Highlight.js/issues/28#issuecomment-546673026
https://wordpress.org/plugins/wp-code-highlightjs/#description
Related Vulnerabilities
WordPress Plugin Disqus Comment System Cross-Site Scripting (2.68)
Django Inefficient Regular Expression Complexity Vulnerability (CVE-2023-36053)
WordPress Plugin eBay Feeds for WordPress Cross-Site Scripting (1.0)
Jenkins Uncontrolled Resource Consumption Vulnerability (CVE-2012-0785)
WordPress Plugin Newsletters Multiple Vulnerabilities (4.6.5.3)