Insufficient Entropy Affecting thinbus-srp package, versions <2.0.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insufficient Entropy vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-THINBUSSRP-11517088
  • published8 Aug 2025
  • disclosed6 Aug 2025
  • creditSven Schindler

Introduced: 6 Aug 2025

NewCVE-2025-54885  (opens in a new tab)
CWE-331  (opens in a new tab)

How to fix?

Upgrade thinbus-srp to version 2.0.1 or higher.

Overview

thinbus-srp is a Secure Remote Password SRP SRP6a implementation.

Affected versions of this package are vulnerable to Insufficient Entropy in the toHex function. An attacker can reduce the security margin of the protocol and potentially compromise session confidentiality by exploiting the predictable bit length of the generated value.

Workaround

This vulnerability can be mitigated by patching legacy versions to use the correct calculation for the hex length as described in the advisory.

CVSS Base Scores

version 4.0
version 3.1