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
- Severity
- medium CVSS 6.1 (v3.1)
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- Published
- 3 November 2026 by CPANSec
- First seen on our lists
- 4 November 2026
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.
On the lists
- perlPackages.CGI: security issues < 5.00 (#583064)
- [oss-security] CGI versions before 5.00 for Perl (20 CVEs)