Technical impact
The CGI library for Perl contains a flaw where unescaped text containing the sequence --> inside HTML comments allows an attacker to terminate a comment prematurely and inject arbitrary HTML into the rendered page. This injection enables cross‑site scripting attacks, potentially allowing malicious scripts, phishing, or other malicious content to be displayed to users who view the affected page.
Affected Systems
The vulnerability exists in CGI.pm versions prior to 5.00. Any Perl application that incorporates the CGI library below that version and accepts user input into comment sections of its output is affected.
Risk and Exploitability
A CVSS score of 6.1 and an unavailable EPSS score indicate a moderate likelihood of exploitation, while the straightforward path to inject malformed input keeps the XSS risk high. The vulnerability is not listed in CISA’s KEV catalog, and the lack of mitigation in affected applications still poses a significant risk to confidentiality and integrity of user sessions.