CVE-2025-54885
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-54885 affects Thinbus Javascript Secure Remote Password (thinbus-srp-npm), a browser SRP6a implementation for zero-knowledge password authentication. In versions 2.0.0 and below, a protocol compliance bug causes the client to generate a fixed 252 bits of entropy instead of the intended bit length of the safe prime (defaulted to 2048 bits). The vulnerability was discovered and disclosed on August 5, 2025, and has been fixed in version 2.0.1 (GitHub Advisory).

Technical details

The vulnerability stems from a protocol compliance issue where the client public value is being generated from a private value that is 4 bits below the RFC 5054 specification minimum requirement of 256 bits. The bug occurs due to incorrect parameter passing in the randomA() function, where 'N' is passed as a constructor function instead of the actual BigInteger prime value. This results in the client generating only 252 bits of entropy while the server maintains the full 2048-bit security level (GitHub Issue). The vulnerability has been assigned a CVSS v4.0 score of 6.9 (Medium) with vector string CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U (NVD).

Impact

The reduced entropy in client key generation significantly weakens the protocol's designed security margin, making it practically exploitable. While still providing some cryptographic security, the 252-bit entropy falls short of both the minimum 256-bit requirement specified in RFC 5054 and the intended 2048-bit security level matching the safe prime (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 2.0.1 of thinbus-srp-npm. For users unable to upgrade immediately, a workaround is available by modifying the code to use the correct parameter: change 'var hexLength = this.toHex(N).length' to 'var hexLength = this.toHex(this.N()).length' (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-54994CRITICAL9.3
  • JavaScriptJavaScript
  • @akoskm/create-mcp-server-stdio
NoYesSep 08, 2025
CVE-2025-58444HIGH8.6
  • JavaScriptJavaScript
  • @modelcontextprotocol/inspector
NoYesSep 08, 2025
CVE-2025-58362HIGH7.5
  • JavaScriptJavaScript
  • hono
NoYesSep 05, 2025
CVE-2025-58179HIGH7.2
  • JavaScriptJavaScript
  • @astrojs/cloudflare
NoYesSep 05, 2025
CVE-2025-55305MEDIUM6.1
  • JavaScriptJavaScript
  • electron
NoYesSep 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management