cgi vulnerabilities

Support for the Common Gateway Interface protocol.

Registry
RubyGems
Latest
0.5.2
License
Ruby, BSD-2-Clause

5 known advisories

The latest version, 0.5.2, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative cgi # Gemfile: '>= 0.5.2'

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

Security advisories for cgi

  • 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
  • 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

Is your cgi version vulnerable?

Which of your client projects still run an old cgi?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.