What’s Vulnerable › Vulnerabilities

CVE-2025-27220

Description

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Affected products

How to fix

Upgrade to a fixed version: ruby-lang CGI 0.3.5.1, 0.4.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-27220 or the next vulnerability affects your stack