# CVE-2026-120638: CGI versions before 5.00 for Perl allow open redirects via HTML entity decoding of the URL after application validation in redirect

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-11-03T23:40:27.142Z
- Modified: 2026-11-09T19:16:44.290Z
- Weaknesses: CWE-180, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## Description

CGI versions before 5.00 for Perl allow open redirects via HTML entity decoding of the URL after application validation in redirect.

redirect decodes HTML entities in its URL before writing the Location header, so a URL the application has already validated can change meaning. For example, /&#47;evil.example/ becomes //evil.example/ and sends the user to another host.

(As written by CVE List.)

## Affected

- CGI: before 5.00

## References

- <https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm> (technical-description)
- <https://metacpan.org/release/LEEJO/CGI-5.00/changes> (release-notes)
- <https://github.com/leejo/CGI.pm/commit/7733c2753f4f240012097507cda2b6e87ae46db4.patch> (patch)

## Sources

- CVE List: [CVE-2026-120638](https://www.cve.org/CVERecord?id=CVE-2026-120638), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-120638](https://nvd.nist.gov/vuln/detail/CVE-2026-120638), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-120638 · Whole record: https://cve.day/CVE-2026-120638.json · Rebuilt by cve.day 2026-11-25T22:59:48.944Z
