Skip to content
DoS Disclosed report Advanced CVE-2025-23166

Improper error handling in async cryptographic operations crashes process

A C++ method used in asynchronous cryptographic operations could call an exception-throwing function from a background thread based on user-supplied input, which crashes the Node.js process. An attacker could potentially cause a remote denial of service by supplying crafted input to a cryptographic operation.

tniessen Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Triaged in 8 hours
  • Fixed in 6 months
  • Disclosed after 6 months

Summary by the program

The C++ method SignTraits::DeriveBits() may incorrectly call ThrowException() based on user-supplied inputs when executing in a background thread, crashing the Node.js process. Such cryptographic operations are commonly applied to untrusted inputs. Thus, this mechanism potentially allows an adversary to remotely crash a Node.js runtime.

The original report as published on HackerOne, by tniessen. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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, an exception is thrown from a background thread in the C++ cryptographic code instead of being handled safely, and that unhandled exception terminates the Node.js process.

What the attacker needed

Ability to supply input to a crypto operation

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.

Node.js is a program that runs JavaScript, often on servers. Some of its built-in security features, like encryption, run in the background so they do not freeze the main program. This report says that if a background encryption task receives bad input, it can trigger an error in a way that kills the whole program, so someone sending that bad input could take the service down.

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.

More by tniessen

View all

15 more disclosed reports, best first.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.