CVE-2026-120643: CGI versions from 4.62 before 5.00 for Perl allow cross-site scripting via a raw apostrophe in URLs
Source GCVE Database
Not known to be exploited : upgrade to 5.00 soon.
Data as of 4 Nov 2026, 01:58 UTC
Rated High by Threat Radar's AI analysis · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in 5.00
Exploitation 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 3 Nov 2026.
What to do
Upgrade CGI (Perl module) to 5.00.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| CGI | Affected
| Fixed in
|
CPANCGIpkg:cpan/CGIOther 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
Users should avoid embedding URLs returned by the vulnerable methods directly into single-quoted HTML attributes or JavaScript strings without proper encoding or sanitization.
Description
CGI versions from 4.62 up to but not including 5.00 for Perl contain a cross-site scripting (XSS) vulnerability. This occurs because URLs returned by the url and self_url methods pass through URI's canonical method, which leaves apostrophes in the path raw and decodes %27 in query parameters. If an application inserts these URLs into single-quoted HTML attributes or JavaScript strings, it may be vulnerable to XSS attacks.