CVE-2026-120643: Libcgi pm perl · CGI versions from 4.62 before 5.00 for Perl allow cross-site scripting via a raw
Affects libcgi-pm-perlSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium.
Data as of 12 Nov 2026, 22:19 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 6.1 |
|---|
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10libcgi-pm-perlpkg:deb/ubuntu/libcgi-pm-perl?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSlibcgi-pm-perlpkg:deb/ubuntu/libcgi-pm-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibcgi-pm-perlpkg:deb/ubuntu/libcgi-pm-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlibcgi-pm-perlpkg:deb/ubuntu/libcgi-pm-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSlibcgi-pm-perlpkg:deb/ubuntu/libcgi-pm-perl?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSlibcgi-pm-perlpkg:deb/ubuntu/libcgi-pm-perl?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is applied, avoid embedding URLs returned by url and self_url methods directly into single-quoted HTML attributes or JavaScript strings without proper escaping.
Description
A cross-site scripting (XSS) vulnerability exists in libcgi-pm-perl versions from 4.62 before 5.00. The issue arises because the url and self_url methods pass URLs through URI's canonical method, which leaves apostrophes in the path raw and decodes %27 in query parameters. This causes apostrophes to appear unescaped in the output, enabling XSS if the URL is embedded in single-quoted HTML attributes or JavaScript strings.
References
- ubuntu.com/security/CVE-2026-120643 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-120643 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/44874955/ (opens in a new tab)
- github.com/leejo/CGI.pm/commit/851430be84c4d0f350681814e1d7718b9959f2c2 (opens in a new tab)
- github.com/leejo/CGI.pm/commit/851430be84c4d0f350681814e1d7718b9959f2c2.patch (opens in a new tab)
- metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm (opens in a new tab)
- metacpan.org/release/LEEJO/CGI-5.00/changes (opens in a new tab)