Vulnerability DatabaseGHSA-477m-5qf8-pjv6

GHSA-477m-5qf8-pjv6: 
Ruby vulnerability analysis and mitigation

Summary

When using Faye::WebSocket::Client to make a connection to a wss: endpoint, the request headers are sent before TLS certificate validation has been completed, which may result in disclosure of credentials to an untrusted server.

Details

Due to a mistake in how this class uses the EventMachine start_tls and ssl_handshake_completed methods, it begins sending data over the TLS socket after an encrypted stream has been set up, but before the TLS certificate has been completely validated. If the user has added custom headers to the request, those headers would be sent at this point. If those headers contain credentials or other secrets, this may result in disclosure of those secrets to an untrusted server. This is not a man-in-the-middle vulnerability since the headers are sent over the encrypted channel. But it does mean that headers are sent before the server's identity has been verified, so those secrets may be conveyed to a server the client does not trust. If an attacker is able to make the client's request route to a server the attacker controls, this would allow the attacker to steal those secrets. The vulnerability has been mitigated by correcting the control flow so that request data is only sent after a the TLS handshake process is complete, including verification of certificates.

Impact

A WebSocket client that can be fooled into connecting to an untrusted server, and which includes credentials or other secrets in its request headers, may disclose those secrets to the server, rendering them compromised.


Source: NVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7c6x-34q5-4g2jHIGH7.5
  • Ruby logoRuby
  • websocket-driver
NoYesNov 26, 2026
GHSA-548x-44fh-cxv4MEDIUM6.1
  • Ruby logoRuby
  • dandruff
NoYesNov 26, 2026
GHSA-477m-5qf8-pjv6MEDIUM5.9
  • Ruby logoRuby
  • faye-websocket
NoYesNov 26, 2026
GHSA-qwvx-w3vv-2r28LOWN/A
  • Ruby logoRuby
  • jwe
NoYesNov 26, 2026
GHSA-9hgp-rr8g-x7cqHIGHN/A
  • Ruby logoRuby
  • jwe
NoYesNov 26, 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

Additional Wiz resources

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