# CVE-2026-120648: CGI versions before 5.00 for Perl allow HTML injection via text containing --> in comment

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-11-03T23:41:09.606Z
- Modified: 2026-11-09T19:16:44.477Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## Description

CGI versions before 5.00 for Perl allow HTML injection via text containing --> in comment.

Arguments are placed between <!-- and --> 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.

(As written by CVE List.)

## Affected

- CGI: before 5.00

## References

- <https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm> (technical-description)
- <https://metacpan.org/release/LEEJO/CGI-5.00/changes> (release-notes)
- <https://github.com/leejo/CGI.pm/commit/6a17eb84703d84bca86b0079f5870ca9c921ffd4.patch> (patch)

## Sources

- CVE List: [CVE-2026-120648](https://www.cve.org/CVERecord?id=CVE-2026-120648), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-120648](https://nvd.nist.gov/vuln/detail/CVE-2026-120648), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-120648 · Whole record: https://cve.day/CVE-2026-120648.json · Rebuilt by cve.day 2026-11-25T22:59:48.947Z
