Intel

AIKIDO-2025-10463

@cosmjs/faucet-client is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 15, 2025

45

Medium Risk

This Affects:

JS@cosmjs/faucet-client
0.26.8 - 0.33.1
Fixed in 0.34.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to inefficient slash-stripping logic in a regular expression. The vulnerability allows attackers to craft malicious inputs containing excessive consecutive slashes, triggering catastrophic backtracking in the regex engine. It causes exponentially increasing processing time, consumes CPU resources indefinitely, and leads to application hang or crash. Successful exploitation results in a denial of service, disrupting service availability without requiring authentication.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@cosmjs/faucet-client is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.26.8 - 0.33.1.

How to fix this

Upgrade the @cosmjs/faucet-client library to the patch version.