All reports
Medium

perl-CGI: perl-CGI: HTML injection via unescaped comment delimiter

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120648

Probability of exploitation in the next 30 days: 0.26%

FIRST EPSS · 2026-11-22

Description

CGI versions before 5.00 for Perl allow HTML injection via text containing --> in comment. Arguments are placed between without escaping, so text containing --> closes the comment early. An application that passes request data to comment can be made to inject HTML into the page.

A flaw was found in perl-CGI. When generating HTML comments, input is placed directly into comment tags without proper escaping. A remote attacker could exploit this flaw by submitting input that prematurely terminates the comment block, enabling the injection of arbitrary HTML or client-side scripts into the rendered web page.