CVE-2026-120636: CGI versions before 5.00 for Perl allow open redirects and script injection via URLs built from REQUEST_URI in url and start_form
Stig Palmquist 03 Nov 2026 23:49 UTC
========================================================================
CVE-2026-120636 CPAN Security Group
========================================================================
CVE ID: CVE-2026-120636
Distribution: CGI
Versions: before 5.00
MetaCPAN: https://metacpan.org/dist/CGI
VCS Repo: https://github.com/leejo/CGI.pm
CGI versions before 5.00 for Perl allow open redirects and script
injection via URLs built from REQUEST_URI in url and start_form
Description
-----------
CGI versions before 5.00 for Perl allow open redirects and script
injection via URLs built from REQUEST_URI in url and start_form.
url(-absolute=>1), url(-relative=>1) and the default start_form action
are built from the client-supplied REQUEST_URI without validation. The
result can be protocol-relative (//evil.example), absolute-form
(http://evil.example/) or contain backslashes, and url(-relative=>1)
can return a javascript: URL. Links and form posts built from these
URLs can go to another host.
Problem types
-------------
- CWE-601 URL Redirection to Untrusted Site ('Open Redirect')
- CWE-79 Improper Neutralization of Input During Web Page Generation
('Cross-site Scripting')
Solutions
---------
Upgrade to CGI 5.00 or later.
References
----------
https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm
https://metacpan.org/release/LEEJO/CGI-5.00/changes
https://github.com/leejo/CGI.pm/commit/9405ef3909ee94991a3474167aa53b9051bd8765.patch