# CVE-2020-15134: Missing TLS certificate verification in Faye

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.0
- **CVSS:** 8.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-295
- **Aliases:** GHSA-3q49-h8f9-9fr9
- **Published:** 2020-07-31T17:39:42.000Z
- **Modified:** 2026-07-08T06:00:15.827Z

## Who should check

- Projects that depend on RubyGems package faye (\< 1.4.0)
- Anyone running faye \< 1.4.0

## Description

Faye before version 1.4.0, there is a lack of certification validation in TLS handshakes. Faye uses em-http-request and faye-websocket in the Ruby version of its client. Those libraries both use the \`EM::Connection\#start\_tls\` method in EventMachine to implement the TLS handshake whenever a \`wss:\` URL is used for the connection. This method does not implement certificate verification by default, meaning that it does not check that the server presents a valid and trusted TLS certificate for the expected hostname. That means that any \`https:\` or \`wss:\` connection made using these libraries is vulnerable to a man-in-the-middle attack, since it does not confirm the identity of the server it is connected to. The first request a Faye client makes is always sent via normal HTTP, but later messages may be sent via WebSocket. Therefore it is vulnerable to the same problem that these underlying libraries are, and we needed both libraries to support TLS verification before Faye could claim to do the same. Your client would still be insecure if its initial HTTPS request was verified, but later WebSocket connections were not. This is fixed in Faye v1.4.0, which enables verification by default. For further background information on this issue, please see the referenced GitHub Advisory.

## Affected and fixed versions

- RubyGems `faye`: affected \< 1.4.0; fixed 1.4.0 (osv)
- faye: \< 1.4.0 (cvelist)

## Mitigation

- Upgrade faye to 1.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-15134. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-15134.md
Affected: faye < 1.4.0
Fixed in: 1.4.0

Steps:
1. Search this machine and project for faye (RubyGems), faye: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-15134 being exploited?

There is no confirmed exploitation: CVE-2020-15134 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-15134?

High: CVSS 8.0 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2020-15134?

faye \< 1.4.0.

### Is there a fix for CVE-2020-15134?

Yes. Fixed in 1.4.0. Upgrade faye to 1.4.0 or later.

### How do I check if I'm affected by CVE-2020-15134?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/faye/faye/security/advisories/GHSA-3q49-h8f9-9fr9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-15134>
- vendor: <https://securitylab.github.com/advisories/GHSL-2020-094-igrigorik-em-http-request>
- patch: <https://github.com/eventmachine/eventmachine/pull/378>
- patch: <https://github.com/faye/faye-websocket-ruby/pull/129>
- patch: <https://github.com/igrigorik/em-http-request/pull/340>
- exploit: <https://blog.jcoglan.com/2020/07/31/missing-tls-verification-in-faye/>
- other: <https://github.com/eventmachine/eventmachine/issues/275>
- other: <https://github.com/eventmachine/eventmachine/issues/814>
- other: <https://github.com/faye/faye/issues/524>
- other: <https://blog.jcoglan.com/2020/07/31/missing-tls-verification-in-faye>
- other: <https://github.com/faye/faye>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/faye/CVE-2020-15134.yml>
- other: <https://www.rubydoc.info/github/eventmachine/eventmachine/EventMachine/Connection:ssl_verify_peer>
- other: <https://www.rubydoc.info/github/eventmachine/eventmachine/EventMachine/Connection:start_tls>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-15134>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3q49-h8f9-9fr9> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-15134> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-15134>
