CISA list

● RubyGems gem

cgi

Cgi has five security advisories. The newest release any of them names as the fix is 0.4.2.

As of , cgi has five security advisories. The newest release any of them names as the fix is 0.4.2.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
From 0.4.0 before 0.4.20.4.22 advisories
From 0.3.6 before 0.3.70.3.72 advisories
Before 0.3.5.10.3.5.15 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2025-27220GHSA-mhwm-jh88-3gjfCGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElementModerate severityFrom 0.4.0 before 0.4.2; From 0.3.6 before 0.3.7; Before 0.3.5.10.3.5.1, 0.3.7, 0.4.2
CVE-2025-27219GHSA-gh9q-2xrm-x6qvCGI has Denial of Service (DoS) potential in Cookie.parseModerate severityFrom 0.4.0 before 0.4.2; From 0.3.6 before 0.3.7; Before 0.3.5.10.3.5.1, 0.3.7, 0.4.2
CVE-2021-33621GHSA-vc47-6rqg-c7f5HTTP response splitting in CGIHigh severityFrom 0.3.0 before 0.3.5; From 0.2.0 before 0.2.2; Before 0.1.0.20.1.0.2, 0.2.2, 0.3.5
CVE-2021-41819GHSA-4vf4-qmvg-mh7hCookie Prefix Spoofing in CGI::Cookie.parseHigh severityFrom 0.3.0 before 0.3.1; From 0.2.0 before 0.2.1; Before 0.1.0.10.1.0.1, 0.2.1, 0.3.1
CVE-2021-41816GHSA-5cqm-crxm-6qpvBuffer overrun in CGI.escape_htmlCritical severityFrom 0.3.0 before 0.3.1; From 0.2.0 before 0.2.1; Before 0.1.0.10.1.0.1, 0.2.1, 0.3.1

Other RubyGems gems

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0