p PatchFirst

CVE-2026-120643

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

CVSS 6.1 · Medium · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libcgi-pm-perl"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • libcgi-pm-perl Debian 12

    Versions
    • 4.55-1
    • 4.57-1
    • 4.59-1
    • 4.60-1
    • 4.61-1
    • 4.62-1
    All versions (16)
    • 4.63-1
    • 4.64-1
    • 4.65-1
    • 4.66-1
    • 4.67-1
    • 4.68-1
    • 4.70-1
    • 4.71-1
    • 4.72-1
    • 5.02-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Debian 13

    Versions
    • 4.68-1
    • 4.70-1
    • 4.71-1
    • 4.72-1
    • 5.02-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Debian 14

    Versions
    • 4.68-1
    • 4.70-1
    • 4.71-1
    • 4.72-1
    Affected ranges
    • ECOSYSTEM: < 5.02-1

    Update to 5.02-1

  • libcgi-pm-perl Ubuntu 16.04 LTS

    Versions
    • 4.21-1
    • 4.22-1
    • 4.25-1
    • 4.26-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Ubuntu 18.04 LTS

    Versions
    • 4.36-1
    • 4.37-1
    • 4.38-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Ubuntu 20.04 LTS

    Versions
    • 4.44-1
    • 4.45-1
    • 4.46-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Ubuntu 22.04 LTS

    Versions
    • 4.51-1
    • 4.53-1
    • 4.54-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Ubuntu 24.04 LTS

    Versions
    • 4.57-1
    • 4.60-1
    • 4.61-1
    • 4.62-1
    • 4.63-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Ubuntu 26.10

    Versions
    • 4.71-1build1
    • 4.72-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-pm-perl Ubuntu 26.04 LTS

    Versions
    • 4.68-1
    • 4.71-1
    • 4.71-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →