DEBIAN-CVE-2026-120643: Debian/libcgi-pm-perl vulnerability

Published Nov 4, 2026
·
Updated

CGI versions from 4.62 before 5.00 for Perl allow cross-site scripting via a raw apostrophe in URLs returned by url and selfurl. 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.

Affected Software

3 affected components
debian/libcgi-pm-perl*
debian/libcgi-pm-perl*
debian/libcgi-pm-perl*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Perl CGI to a version that resolves this vulnerability.

    Fixed in 5.00

Event History

Nov 4, 2026
CVE Published
via OSV·12:17 AM
Data Sourced
via OSV·12:17 AM
DescriptionAffected Software

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using affected CGI versions and calling url or self_url are exposed only if they insert the returned URL into a single-quoted HTML attribute or JavaScript string without safe context-appropriate escaping.

2

What does an attacker need to do to exploit it?

An attacker needs to send a request containing an apostrophe in the URL path or in a parameter, and cause the application to reflect the value returned by url or self_url in a vulnerable single-quoted HTML or JavaScript context.

3

Are applications safe if they do not use single-quoted output contexts?

The described cross-site scripting condition specifically requires the returned URL to be placed in a single-quoted HTML attribute or JavaScript string. Applications that do not place these values in those contexts are not described as vulnerable by the available information.

4

What can be done if upgrading is not immediately possible?

Avoid placing values returned by url or self_url directly in single-quoted HTML attributes or JavaScript strings. Apply context-appropriate output escaping before rendering those values.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203