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.

Medium 6.1 Published Updated
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.

PackageAffectedFixed in
CGI cpan
pkg:cpan/CGI
From 4.625.00
Status by vendor (4)
WhoReleaseStatusPackages
Red Hat8deferredperl-CGI
Red Hat9deferredperl-CGI
Red Hat10deferredperl-CGI
Red Hatels/7deferredperl-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.

Is CVE-2026-120643 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free