CVE-2026-54556: Http4s ember core 2.13 Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-vmm3-xgcx-67hm
CWE-409
Published
Advisory Summary

CVE-2026-54556 is a HIGH denial of service vulnerability (CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)) affecting Http4s ember core 2.13 libraries in the Maven ecosystem. The issue involves http4s has http/2 denial of service with ember backend. Remediation is available by upgrading affected packages to version 1.0.0-M47, 0.23.35.

CVE-2026-54556 at a Glance

CVE Identifier CVE-2026-54556
GHSA Identifier GHSA-vmm3-xgcx-67hm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
Affected Product Http4s ember core 2.13
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-54556

To remediate this vulnerability, upgrade all affected Http4s ember core 2.13 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.http4s:http4s-ember-core_2.13 fixed: 1.0.0-M47
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-ember-core_2.13</artifactId>
    <version>1.0.0-M47</version>
</dependency>
org.http4s:http4s-ember-core_3 fixed: 0.23.35
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-ember-core_3</artifactId>
    <version>0.23.35</version>
</dependency>
org.http4s:http4s-ember-core_2.12 fixed: 0.23.35
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-ember-core_2.12</artifactId>
    <version>0.23.35</version>
</dependency>
org.http4s:http4s-ember-core_3 fixed: 1.0.0-M47
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-ember-core_3</artifactId>
    <version>1.0.0-M47</version>
</dependency>
org.http4s:http4s-ember-core_2.13 fixed: 0.23.35
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-ember-core_2.13</artifactId>
    <version>0.23.35</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.http4s

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-54556, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.http4s

Analyze the terminal output to locate any version of Http4s ember core 2.13 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-M47), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.http4s command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification), where the product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output. In Http4s ember core 2.13, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary http4s 0.23.x and 1.0 servers running ember with http2 enabled are vulnerable to a denial of service attack using a HPACK bomb vulnerability recently disclosed as affecting other http2 servers. ### Impact Denial of Service: - Affects any http4s server running the ember backend with HTTP/2 enabled that is exposed to untrusted traffic. - Affects any http4s client running the ember backend with HTTP/2 enabled that can be directed to an untrusted server. ### Details The issue occurs in the [Hpack wrapper](https://github.com/http4s/http4s/blob/c63fbff43dfe7e3bec25b789fd0a0027ec40ed62/ember-core/shared/src/main/scala/org/http4s/ember/core/h2/Hpack.scala#L54). Ember concatenates the header and continuation frames before decoding all headers at once. When the code decodes the attack payload, the relatively small packets decode to a significantly larger amount of data which is returned as a single List which is then held in memory for further processing. With enough concurrent connections (~5 with a 2GB heap in testing) this leads to an OOM, eg: ``` java.lang.OutOfMemoryError: Java heap space at scala.collection.mutable.ListBuffer.scala$collection$mutable$ListBuffer$$freshFrom(ListBuffer.scala:129) at scala.collection.mutable.ListBuffer.addAll(ListBuffer.scala:147) at scala.collection.mutable.ListBuffer.addAll(ListBuffer.scala:40) at scala.collection.mutable.Growable.$plus$plus$eq(Growable.scala:69) at scala.collection.mutable.Growable.$plus$plus$eq$(Growable.scala:69) at scala.collection.mutable.AbstractBuffer.$plus$plus$eq(Buffer.scala:314) at org.http4s.Header$.org$http4s$Header$ToRaw$$anon$10$$_$$lessinit$greater$$anonfun$2(Header.scala:192) at org.http4s.Header$ToRaw$$anon$10$$Lambda/0x00001fe001239c50.apply(Unknown Source) at scala.collection.immutable.List.foreach(List.scala:334) at org.http4s.Header$ToRaw$$anon$10.<init>(Header.scala:192) at org.http4s.Header$ToRaw$.scalaCollectionSeqToRaw(Header.scala:195) at org.http4s.Headers$.apply(Headers.scala:220) at org.http4s.ember.core.h2.PseudoHeaders$.headersToRequestNoBody(PseudoHeaders.scala:95) at org.http4s.ember.core.h2.H2Stream.receiveHeaders$$anonfun$1$$anonfun$2$$anonfun$3$$anonfun$2(H2Stream.scala:248) at org.http4s.ember.core.h2.H2Stream$$Lambda/0x00001fe001511fd8.apply(Unknown Source) at cats.effect.IOFiber.runLoop(IOFiber.scala:429) at cats.effect.IOFiber.autoCedeR(IOFiber.scala:1460) at cats.effect.IOFiber.run(IOFiber.scala:129) at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:935) ``` ### Fix The Hpack handling code has a configurable max header size parameter, but it does not include indexed headers in that accounting, allowing the attack to bypass the limit. There is not any configuration available in current http4s versions that can be enabled to prevent this attack short of disabling http2. A fix has been tested locally that threads the maxHeaderSize setting from the server builder into the Hpack code. Using this, connections can be prematurely terminated once the decoded data size exceeds the maxHeaderSize that users can already configure. ### Workarounds If you can't upgrade immediately: - Disable HTTP/2 in Ember backends

CVE-2026-54556 Affected Http4s ember core 2.13 Versions

5 component(s)
Fixed Versions:
1.0.0-M470.23.35
Product / Package Ecosystem Affected Versions Fixed Version
org.http4s:http4s-ember-core_2.13
Maven
≥ 1.0.0-M1
< 1.0.0-M47
1.0.0-M47
org.http4s:http4s-ember-core_3
Maven
< 0.23.35
0.23.35
org.http4s:http4s-ember-core_2.12
Maven
< 0.23.35
0.23.35
org.http4s:http4s-ember-core_3
Maven
≥ 1.0.0-M1
< 1.0.0-M47
1.0.0-M47
org.http4s:http4s-ember-core_2.13
Maven
< 0.23.35
0.23.35

References

Frequently Asked Questions

What is CVE-2026-54556?
CVE-2026-54556 is a security vulnerability in Http4s ember core 2.13 involving http4s has HTTP/2 Denial of Service with Ember Backend under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification).
Which Http4s ember core 2.13 versions are affected?
Affected versions include releases prior to 1.0.0-M47, 0.23.35 across affected packages: org.http4s:http4s-ember-core_2.13, org.http4s:http4s-ember-core_3, org.http4s:http4s-ember-core_2.12.
What version fixes CVE-2026-54556?
Upgrading to 1.0.0-M47, 0.23.35 (or the latest patched release for your respective branch) resolves the vulnerability.
Is http4s-ember-core_2.13 affected?
Yes, org.http4s:http4s-ember-core_2.13 is affected in releases prior to 1.0.0-M47, 0.23.35. Upgrade your dependency to 1.0.0-M47, 0.23.35 or later.
Is http4s-ember-core_3 affected?
Yes, org.http4s:http4s-ember-core_3 is affected in releases prior to 0.23.35, 1.0.0-M47. Upgrade your dependency to 0.23.35, 1.0.0-M47 or later.
What CWE is associated with CVE-2026-54556?
CVE-2026-54556 is classified under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) (The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.).
How can I check Maven dependencies for CVE-2026-54556?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.http4s'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vmm3-xgcx-67hm",
  "modified" : "2026-08-26T14:10:59Z",
  "published" : "2026-08-26T14:10:59Z",
  "aliases" : [ "CVE-2026-54556" ],
  "summary" : "http4s has HTTP/2 Denial of Service with Ember Backend",
  "details" : "### Summary\n\nhttp4s 0.23.x and 1.0 servers running ember with http2 enabled are vulnerable to a denial of service attack using a HPACK bomb vulnerability recently disclosed as affecting other http2 servers.\n\n### Impact\n\nDenial of Service:\n- Affects any http4s server running the ember backend with HTTP/2 enabled that is exposed to untrusted traffic.\n- Affects any http4s client running the ember backend with HTTP/2 enabled that can be directed to an untrusted server.\n\n### Details\n\nThe issue occurs in the [Hpack wrapper](https://github.com/http4s/http4s/blob/c63fbff43dfe7e3bec25b789fd0a0027ec40ed62/ember-core/shared/src/main/scala/org/http4s/ember/core/h2/Hpack.scala#L54). Ember concatenates the header and continuation frames before decoding all headers at once. When the code decodes the attack payload, the relatively small packets decode to a significantly larger amount of data which is returned as a single List which is then held in memory for further processing. With enough concurrent connections (~5 with a 2GB heap in testing) this leads to an OOM, eg:\n\n```\njava.lang.OutOfMemoryError: Java heap space\n        at scala.collection.mutable.ListBuffer.scala$collection$mutable$ListBuffer$$freshFrom(ListBuffer.scala:129)\n        at scala.collection.mutable.ListBuffer.addAll(ListBuffer.scala:147)\n        at scala.collection.mutable.ListBuffer.addAll(ListBuffer.scala:40)\n        at scala.collection.mutable.Growable.$plus$plus$eq(Growable.scala:69)\n        at scala.collection.mutable.Growable.$plus$plus$eq$(Growable.scala:69)\n        at scala.collection.mutable.AbstractBuffer.$plus$plus$eq(Buffer.scala:314)\n        at org.http4s.Header$.org$http4s$Header$ToRaw$$anon$10$$_$$lessinit$greater$$anonfun$2(Header.scala:192)\n        at org.http4s.Header$ToRaw$$anon$10$$Lambda/0x00001fe001239c50.apply(Unknown Source)\n        at scala.collection.immutable.List.foreach(List.scala:334)\n        at org.http4s.Header$ToRaw$$anon$10.<init>(Header.scala:192)\n        at org.http4s.Header$ToRaw$.scalaCollectionSeqToRaw(Header.scala:195)\n        at org.http4s.Headers$.apply(Headers.scala:220)\n        at org.http4s.ember.core.h2.PseudoHeaders$.headersToRequestNoBody(PseudoHeaders.scala:95)\n        at org.http4s.ember.core.h2.H2Stream.receiveHeaders$$anonfun$1$$anonfun$2$$anonfun$3$$anonfun$2(H2Stream.scala:248)\n        at org.http4s.ember.core.h2.H2Stream$$Lambda/0x00001fe001511fd8.apply(Unknown Source)\n        at cats.effect.IOFiber.runLoop(IOFiber.scala:429)\n        at cats.effect.IOFiber.autoCedeR(IOFiber.scala:1460)\n        at cats.effect.IOFiber.run(IOFiber.scala:129)\n        at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:935)\n```\n\n### Fix\n  \nThe Hpack handling code has a configurable max header size parameter, but it does not include indexed headers in that accounting, allowing the attack to bypass the limit. There is not any configuration available in current http4s versions that can be enabled to prevent this attack short of disabling http2.\n\nA fix has been tested locally that threads the maxHeaderSize setting from the server builder into the Hpack code. Using this, connections can be prematurely terminated once the decoded data size exceeds the maxHeaderSize that users can already configure.\n\n### Workarounds\n\nIf you can't upgrade immediately:\n- Disable HTTP/2 in Ember backends",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-ember-core_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.35"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.23.34"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-ember-core_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-M1"
      }, {
        "fixed" : "1.0.0-M47"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.0.0-M46"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-ember-core_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.35"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.23.34"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-ember-core_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-M1"
      }, {
        "fixed" : "1.0.0-M47"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.0.0-M46"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-ember-core_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.35"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.23.34"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/security/advisories/GHSA-vmm3-xgcx-67hm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/commit/6e8eccd64a6a74ab4811897881e95e0e1b3a818e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/http4s/http4s"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/releases/tag/v0.23.35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/releases/tag/v1.0.0-M47"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-409" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-26T14:10:59Z",
    "nvd_published_at" : null
  }
}