Bug 2567302

Summary: CVE-2026-120643 perl-CGI: perl-CGI: Cross-site scripting via unescaped apostrophes in generated URLs [fedora-all]
Product: [Fedora] Fedora Reporter: Marian Rehak <mrehak>
Component: perl-CGIAssignee: Jitka Plesnikova <jplesnik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jplesnik, mspacek, perl-devel
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["bf122acf-e77d-4d41-826a-7e61a9ce8f31"]}
Fixed In Version: perl-CGI-5.02-1.fc45 perl-CGI-5.02-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-10 01:08:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2566596    

Description Marian Rehak 2026-11-05 13:48:45 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Fedora Update System 2026-11-06 09:52:48 UTC
FEDORA-2026-a04615c725 (perl-CGI-5.02-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a04615c725

Comment 2 Fedora Update System 2026-11-06 09:53:46 UTC
FEDORA-2026-516e427bac (perl-CGI-5.02-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-516e427bac

Comment 3 Fedora Update System 2026-11-10 01:08:08 UTC
FEDORA-2026-a04615c725 (perl-CGI-5.02-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2026-11-10 01:32:11 UTC
FEDORA-2026-516e427bac (perl-CGI-5.02-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.