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.
bundle update --conservative cgi # Gemfile: '>= 0.3.5.1'Is your project on an affected cgi?
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
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
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
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
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
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.
| Version | Known advisories |
|---|---|
| cgi 0.1.1 | CVE-2025-27220, CVE-2025-27219 |
| cgi 0.1.0.2 | CVE-2025-27220, CVE-2025-27219 |
| cgi 0.1.0.1 | CVE-2025-27220, CVE-2025-27219, CVE-2021-33621 |
| cgi 0.1.0 | CVE-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.