Bug 2567302 - CVE-2026-120643 perl-CGI: perl-CGI: Cross-site scripting via unescaped apostrophes in generated URLs [fedora-all]
Summary: CVE-2026-120643 perl-CGI: perl-CGI: Cross-site scripting via unescaped apostr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-CGI
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["bf122acf-e77d-4d41-826a-7...
Depends On:
Blocks: CVE-2026-120643
TreeView+ depends on / blocked
 
Reported: 2026-11-05 13:48 UTC by Marian Rehak
Modified: 2026-11-10 01:32 UTC (History)
3 users (show)

Fixed In Version: perl-CGI-5.02-1.fc45 perl-CGI-5.02-1.fc44
Clone Of:
Environment:
Last Closed: 2026-11-10 01:08:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.