CVE-2023-50475
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability was discovered in bcoin-org bcoin version 2.2.0 that allows remote attackers to obtain sensitive information through weak hashing algorithms (MD5 and SHA1) in the component vendor/faye-websocket.js. The vulnerability was assigned CVE-2023-50475 and was disclosed on December 21, 2023. The issue affects the WebSocket communication implementation in the bcoin cryptocurrency library (GitHub Issue, Advisory).

Technical details

The vulnerability stems from the use of cryptographically weak hashing algorithms (MD5 and SHA1) during client initialization in the WebSocket implementation. The affected code is located in vendor/faye-websocket.js, specifically at lines 1462 and 2919. The implementation uses MD5 for handshake signatures and SHA1 for generating accept tokens, both of which are considered cryptographically weak and vulnerable to collision and preimage attacks. The vulnerability has been assigned a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (NVD).

Impact

The use of weak cryptographic algorithms (MD5 and SHA1) can potentially allow malicious actors to compromise the integrity and confidentiality of the WebSocket communication. This could lead to information disclosure and potentially affect the security of cryptocurrency transactions or sensitive data transmitted through the affected components (Advisory).

Mitigation and workarounds

It is recommended to update the implementation to use more secure hashing algorithms such as SHA-256 or stronger alternatives. The weak hashing algorithms (MD5 and SHA1) should be replaced in both the handshake signature generation and accept token creation processes (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-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

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