Changes for version 0.16 - 2026-11-23
- Fix the env wrappers: referer (was misspelled referrer) and env_query_string now read the PSGI env, and methods the installed CGI.pm lacks are skipped
- Never read the process's @ARGV as request parameters (CVE-2026-120637 on CGI.pm < 5.02, and envs with no REQUEST_METHOD)
- Mark read_from_stdin as deprecated
- Port the CGI.pm 5.02 header()/redirect() security fixes to psgi_header and psgi_redirect:
- header and redirect values are no longer HTML unescaped, which allowed header injection via (CVE-2026-120639) and open redirects via e.g. //evil.example/ (CVE-2026-120638)
- quotes and backslashes in the -attachment filename are escaped (CVE-2026-120647)
- an empty extra header value no longer comes out as a lone "
- Catch up with CGI.pm 4.x header() changes: each cookie and P3P value in an array reference, and header names, are checked for newlines, and -set-cookie is accepted as a cookie alias
- Document CGI.pm 5.02's request limits and other changes as they apply to PSGI apps
- Require CGI 4.04
- Convert the distribution to Dist::Milla
Modules
Adapt CGI.pm to the PSGI protocol