# CVE-2026-140011: permessage-deflate-ruby: Memory exhaustion triggered by message decompression

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-409
- **Published:** 2026-11-30T21:49:47.573Z
- **Modified:** 2026-11-30T22:17:31.023Z

> **AI summary (AI-generated, claude-haiku-5-5):** An unauthenticated remote WebSocket client can send a highly compressible message that inflates past size limits and exhausts memory in permessage-deflate-ruby and websocket-driver.

## Who should check

- Anyone running faye permessage-deflate-ruby \< 0.2.0
- Anyone running faye permessage\_deflate \< 0.2.0
- Anyone running faye websocket-driver \>= 0.5.0, \< 0.9.0
- Anyone running faye websocket-extensions \< 0.2.0

## Description

permessage-deflate-ruby provides the per-message DEFLATE compression extension for WebSocket connections. Prior to permessage\_deflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0, an unauthenticated remote WebSocket client can send a highly compressible message that expands to a much larger size because websocket-driver's :max\_length option is checked only after permessage-deflate fully inflates the message. The extension can therefore allocate memory far beyond the wire size and configured message limit, causing memory exhaustion; the coordinated fix enforces :max\_length while consuming zlib output and forwards the option through websocket-extensions and websocket-driver. This issue is fixed in permessage\_deflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0.

## Affected and fixed versions

- faye permessage-deflate-ruby: \< 0.2.0 (cvelist)
- faye permessage\_deflate: \< 0.2.0 (cvelist)
- faye websocket-driver: \>= 0.5.0, \< 0.9.0 (cvelist)
- faye websocket-extensions: \< 0.2.0 (cvelist)

## Technologies

Ruby (AI-matched), RubyGems (AI-matched)

## Mitigation

- Upgrade permessage-deflate-ruby to 0.2.0 or later.
- Upgrade permessage\_deflate to 0.2.0 or later.
- Upgrade websocket-driver to 0.9.0 or later.
- Upgrade websocket-extensions to 0.2.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-2026-140011. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-140011.md
Affected: faye permessage-deflate-ruby < 0.2.0; faye permessage_deflate < 0.2.0; faye websocket-driver >= 0.5.0, < 0.9.0; faye websocket-extensions < 0.2.0
Fixed in: faye permessage-deflate-ruby 0.2.0, faye permessage_deflate 0.2.0, faye websocket-driver 0.9.0, faye websocket-extensions 0.2.0

Steps:
1. Search this machine and project for faye permessage-deflate-ruby, faye permessage_deflate, faye websocket-driver, faye websocket-extensions: 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-2026-140011 being exploited?

There is no confirmed exploitation: CVE-2026-140011 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-140011?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-140011?

faye permessage-deflate-ruby \< 0.2.0; faye permessage\_deflate \< 0.2.0; faye websocket-driver \>= 0.5.0, \< 0.9.0; faye websocket-extensions \< 0.2.0.

### Is there a fix for CVE-2026-140011?

Yes. Fixed in faye permessage-deflate-ruby 0.2.0, faye permessage\_deflate 0.2.0, faye websocket-driver 0.9.0, faye websocket-extensions 0.2.0. Upgrade permessage-deflate-ruby to 0.2.0 or later. Upgrade permessage\_deflate to 0.2.0 or later. Upgrade websocket-driver to 0.9.0 or later. Upgrade websocket-extensions to 0.2.0 or later.

### How do I check if I'm affected by CVE-2026-140011?

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/permessage-deflate-ruby/security/advisories/GHSA-5qm2-87xf-x3ff>
- patch: <https://github.com/faye/permessage-deflate-ruby/commit/83539816ae34c6d9724e94f6390ea9dc06dc7b13>
- patch: <https://github.com/faye/websocket-driver-ruby/commit/31188c15cfbbb684f0dbd65192d95da14a6e9070>
- patch: <https://github.com/faye/websocket-extensions-ruby/commit/634bb92a77388e4fc0c73a9e541d36c473fb5d82>

## 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-2026-140011>

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