Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. cgi
  4. ›
  5. CVE-2021-41819

CVE-2021-41819: Reliance on Cookies without Validation and Integrity Checking in a Security Decision

January 1, 2022 (updated January 24, 2024)

CGI::Cookie.parse in Ruby mishandles security prefixes in cookie names. This also affects the CGI gem for Ruby.

References

  • hackerone.com/reports/910552
  • nvd.nist.gov/vuln/detail/CVE-2021-41819
  • www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/

Code Behaviors & Features

Detect and mitigate CVE-2021-41819 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.1.0 up to 0.3.0

Fixed versions

  • 0.3.1

Solution

Upgrade to version 0.3.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-565: Reliance on Cookies without Validation and Integrity Checking

Source file

gem/cgi/CVE-2021-41819.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:22 +0000.