HashDoS in V8
The V8 engine in Node.js v24.0.0 changed its string hashing to rapidhash, which reintroduced a HashDoS vulnerability. An attacker who can control strings that get hashed could generate many hash collisions even without knowing the hash seed, potentially causing denial of service.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 2 months
- Disclosed after 2 months
Summary by the program
The V8 release used in Node.js v24.0.0 has changed how string hashes are computed using rapidhash. This implementation re-introduces the HashDoS vulnerability as an attacker who can control the strings to be hashed can generate many hash collisions - an attacker can generate collisions even without knowing the hash-seed.
- This vulnerability affects Node.js v24.x users.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the rapidhash implementation used for string hashing in V8 is not collision-resistant against adversarial inputs, allowing an attacker to craft many strings with the same hash even without the seed.
Impact
An attacker controlling hashed strings could generate many collisions, affecting Node.js v24.x users.
What the attacker needed
Attacker controls strings that are hashed; Node.js v24.x
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program stores many items in a hash table, it uses a hash function to decide where each item goes. If an attacker can make many different items produce the same hash value, they all pile up in one place, making lookups very slow. This report says a new hash function in Node.js v24 makes it possible to create such collisions without knowing a secret value, so an attacker could slow down or crash the service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.