# CVE-2021-32740: Regular Expression Denial of Service in Addressable templates

Source: https://junglewise.ai/threats/cve-2021-32740-regular-expression-denial-of-service-in-addressable-templates  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-07-12  
License: CC BY 4.0 with a link back

CVE-2021-32740 · Severity: low · CVSS 3.1 · Published 2021-07-12

Regular Expression Denial of Service in Addressable templates

Technologies: [addressable (RubyGems)](https://junglewise.ai/threats/technologies/addressable). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2021-32740 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-32740 being exploited in the wild.

**How severe is CVE-2021-32740?** Low severity, with a CVSS score of 3.1, published 12 July 2021.

**Which products and versions are affected?** addressable (RubyGems) ECOSYSTEM:introduced=2.3.0,fixed=2.8.0.

**Is there a fix for CVE-2021-32740?** Yes. addressable (RubyGems): upgrade to 2.8.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-32740?** Check whether you run addressable (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- addressable (RubyGems): upgrade to 2.8.0 or later

  ```sh
  bundle update addressable
  ```


## Affected products

- addressable (RubyGems) ECOSYSTEM:introduced=2.3.0,fixed=2.8.0

## Identifiers

- CVE-2021-32740
- GHSA-jxhc-q857-3j6g

## Related threats

- [Addressable URI.normalize_path path traversal and bypass](https://junglewise.ai/threats/cve-2026-126354-addressable-uri-normalization-resolves-some-dotted-path-segments)
- [Addressable URI template ReDoS denial of service](https://junglewise.ai/threats/cve-2026-126352-addressable-is-an-alternative-implementation-to-the-uri)
- [Addressable URI path normalization denial of service](https://junglewise.ai/threats/cve-2026-126351-addressable-is-an-alternative-implementation-to-the-uri)
- [Addressable regular expression denial of service in URI template matching](https://junglewise.ai/threats/cve-2026-126350-addressable-is-an-alternative-implementation-to-the-uri)
- [Addressable display_uri can show misleading hosts containing bidi and invisible characters](https://junglewise.ai/threats/cve-2026-126349-addressable-is-an-alternative-implementation-to-the-uri)
