Is cgi 0.1 vulnerable?

RubyGems · 4 releases from 0.1.0 to 0.1.1 · latest cgi is 0.5.2 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. cgi 0.1.1, the last 0.1 release, is affected by 2 known security advisories (2 medium), including CVE-2025-27220, CVE-2025-27219. 3 more affect earlier 0.1.x releases. Upgrade to 0.3.5.1 or later to fix all of them.

Upgrade with:bundle update --conservative cgi # Gemfile: '>= 0.3.5.1'

Is your project on an affected cgi?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting cgi 0.1.1

  • MediumCVE-2025-27220GHSA-mhwm-jh88-3gjf3 Mar 2025

    CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement

    Affected
    <0.3.5.1 · >=0.3.6 <0.3.7 · >=0.4.0 <0.4.2
    Fixed in
    0.3.5.1, 0.3.7, 0.4.2
  • MediumCVE-2025-27219GHSA-gh9q-2xrm-x6qv3 Mar 2025

    CGI has Denial of Service (DoS) potential in Cookie.parse

    Affected
    <0.3.5.1 · >=0.3.6 <0.3.7 · >=0.4.0 <0.4.2
    Fixed in
    0.3.5.1, 0.3.7, 0.4.2

Fixed within 0.1.x, affecting earlier releases

  • HighCVE-2021-33621GHSA-vc47-6rqg-c7f519 Nov 2022

    HTTP response splitting in CGI

    Affected
    >=0.3.0 <0.3.5 · >=0.2.0 <0.2.2 · <0.1.0.2
    Fixed in
    0.1.0.2, 0.2.2, 0.3.5
  • HighCVE-2021-41819GHSA-4vf4-qmvg-mh7h21 Jan 2022

    Cookie Prefix Spoofing in CGI::Cookie.parse

    Affected
    >=0.3.0 <0.3.1 · >=0.2.0 <0.2.1 · <0.1.0.1
    Fixed in
    0.1.0.1, 0.2.1, 0.3.1
  • CriticalCVE-2021-41816GHSA-5cqm-crxm-6qpv14 Dec 2021

    Buffer overrun in CGI.escape_html

    Affected
    >=0.3.0 <0.3.1 · >=0.2.0 <0.2.1 · <0.1.0.1
    Fixed in
    0.1.0.1, 0.2.1, 0.3.1

Every cgi 0.1.x release

Affected: 0.1.0 to 0.1.1. Latest cgi: 0.5.2.

VersionKnown advisories
cgi 0.1.1CVE-2025-27220, CVE-2025-27219
cgi 0.1.0.2CVE-2025-27220, CVE-2025-27219
cgi 0.1.0.1CVE-2025-27220, CVE-2025-27219, CVE-2021-33621
cgi 0.1.0CVE-2025-27220, CVE-2025-27219, CVE-2021-33621, CVE-2021-41819, CVE-2021-41816

Which of your client projects are still on cgi 0.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact cgi version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other cgi versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.