CVE-2026-120644: CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path
Source GCVE Database
Not known to be exploited : upgrade to 5.00 soon.
Data as of 4 Nov 2026, 01:58 UTC
Rated High by Threat Radar's AI analysis · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in 5.00
Exploitation evidence
Disclosed: evidence found.
CVE published 3 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.
What to do
Upgrade CGI (Perl module) to 5.00.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| CGI | Affected
| Fixed in
|
CPANCGIpkg:cpan/CGIOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid setting cookie path, domain, or expires attributes from untrusted input until a fixed version is released. Validate and sanitize these values to prevent injection of semicolons or control characters.
Description
CGI::Cookie versions before 5.00 for Perl contain a vulnerability where cookie attribute injection is possible via unvalidated path, domain, and expires values. These values are inserted into the Set-Cookie header without validation for semicolons or control characters, allowing an attacker controlling these inputs to inject additional cookie attributes such as Domain or SameSite.
References
- nvd.nist.gov/vuln/detail/CVE-2026-120644 (opens in a new tab)
- github.com/leejo/CGI.pm/commit/0b3527faaa9de55f79ca7d59dd3bcfb2c5540e00.patch (opens in a new tab)
- metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI/Cookie.pm (opens in a new tab)
- metacpan.org/release/LEEJO/CGI-5.00/changes (opens in a new tab)