CVE-2026-120643 CGI versions from 4.62 before 5.00 for Perl allow cross-site scripting via a raw apostrophe in URLs returned by url and self_url.
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-120643?
CVE-2026-120643 is a medium-severity vulnerability in CGI, published on 3 Nov 2026.
Official description
CGI versions from 4.62 before 5.00 for Perl allow cross-site scripting via a raw apostrophe in URLs returned by url and self_url.
Both pass the URL through URI's canonical method, which leaves an apostrophe in the path raw and decodes the %27 that query parameter escaping produces, so an apostrophe in the request path or a parameter appears raw in the result.
An application that places the URL in a single-quoted HTML attribute or JavaScript string is open to cross-site scripting.
Weakness: CWE-79
Which versions are affected by CVE-2026-120643?
1 open source package ship an affected version, including CGI.
| Package | Affected | Fixed in |
|---|---|---|
CGI cpanpkg:cpan/CGI | From 4.62 | 5.00 |
Status by vendor (4)
| Who | Release | Status | Packages |
|---|---|---|---|
| Red Hat | 8 | deferred | perl-CGI |
| Red Hat | 9 | deferred | perl-CGI |
| Red Hat | 10 | deferred | perl-CGI |
| Red Hat | els/7 | deferred | perl-CGI |
How do I fix CVE-2026-120643?
Upgrade CGI to 5.00 or later.
Is CVE-2026-120643 being exploited?
There is no known exploitation of CVE-2026-120643 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-120643, DHI-mmdy-ad3v-cu6k-gsj4, GHSA-c4m8-3x4v-gcxr, UBUNTU-CVE-2026-120643.