Read the docs

Regular expression backtracking in Mastodon enables denial of service

Priority MEDIUM 48CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-jpxp-r43f-rhvx. Fix status from GitHub. Impact type from CWE-1333.

Summary

Some regular expressions in Mastodon are prone to exponential backtracking. An unauthenticated remote attacker can send specifically crafted queries to cause a denial of service. The flaw is tracked as CWE-1333, Inefficient Regular Expression Complexity, and does not affect Mastodon servers running on Ruby 3.3.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

Description from the GitHub advisory

### Summary Some regular expressions in Mastodon are prone to exponential backtracking, allowing attackers to perform ReDoS attacks in certain cases. ### Impact An attacker can use specifically crafted queries to cause denial-of-service. This does not affect Mastodon servers running on Ruby 3.3 thanks to changes to Ruby's regexp engine.

Why it matters now

Fix Fixed Mastodon: 4.3.0-rc1, 4.2.13, 4.1.20

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—Mastodon—4.3.0-rc1, 4.2.13, 4.1.20Patch availableGHSA-jpxp-r43f-rhvx
  • Mastodon Vendor— Affected — Fixed in 4.3.0-rc1, 4.2.13, 4.1.20 Patch available GHSA-jpxp-r43f-rhvx

Remediation

Upgrade Mastodon to 4.3.0-rc1, 4.2.13, or 4.1.20, which fix the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

  • Fix · GHSA-jpxp-r43f-rhvx Mastodon Fixed in 4.3.0-rc1, 4.2.13, 4.1.20 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from GHSA-jpxp-r43f-rhvx

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences