GHSA-xvr7-p2c6-j83w: Github.com/apple/swift nio http2 Swift-nio-http2 Affected By HTTP/2 MadeYouReset Vulnerability

MODERATE
CWE-405
Published
Advisory Summary

GHSA-xvr7-p2c6-j83w is a MODERATE swift-nio-http2 affected by http/2 madeyoureset vulnerability (CWE-405: Asymmetric Resource Consumption (Amplification)) affecting Github.com/apple/swift nio http2 libraries in the SwiftURL ecosystem. The issue involves swift-nio-http2 affected by http/2 madeyoureset vulnerability. Remediation is available by upgrading affected packages to version 1.38.0.

GHSA-xvr7-p2c6-j83w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xvr7-p2c6-j83w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-405: Asymmetric Resource Consumption (Amplification)
Affected Product Github.com/apple/swift nio http2
Package Ecosystem SwiftURL
Published Date
Last Updated

How to Fix GHSA-xvr7-p2c6-j83w

To remediate this vulnerability, upgrade all affected Github.com/apple/swift nio http2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/apple/swift-nio-http2 fixed: 1.38.0
Upgrade github.com/apple/swift-nio-http2 to 1.38.0
Verify Direct and Transitive Dependencies

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

inspect dependencies for github.com/apple/swift-nio-http2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xvr7-p2c6-j83w, inspect your project dependencies for Github.com/apple/swift nio http2:

inspect dependencies for github.com/apple/swift-nio-http2

Analyze the terminal output to locate any version of Github.com/apple/swift nio http2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.38.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-405: Asymmetric Resource Consumption (Amplification), where the product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric.". In Github.com/apple/swift nio http2, 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

The HTTP/2 [MadeYouReset vulnerability](https://galbarnahum.com/made-you-reset) has a mild effect on swift-nio-http2. swift-nio-http2 mostly protects against MadeYouReset by using a number of existing denial-of-service prevention patterns that we added in response to the RapidReset vulnerabilities. The result is that servers are not vulnerable to naive attacks based on MadeYouReset, and the naive PoC examples do not affect swift-nio-http2. However, in 1.38.0 we added some defense-in-depth measures as a precautionary measure that detect clients behaving "weirdly". These defense in depth measures tackle resource drain attacks where attackers interleave attack traffic with legitimate traffic to try to evade our existing DoS prevention mechanisms. We recommend all adopters move to 1.38.0 as soon as possible to mitigate against more sophisticated attacks that may appear in the future. We are very grateful to @galbarnahum, @AnatBB, and @YanivRL for their reporting and assistance with our process.

GHSA-xvr7-p2c6-j83w Affected Github.com/apple/swift nio http2 Versions

1 component(s)
Fixed Versions:
1.38.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/apple/swift-nio-http2
SwiftURL
< 1.38.0
1.38.0

References

Frequently Asked Questions

What is GHSA-xvr7-p2c6-j83w?
GHSA-xvr7-p2c6-j83w is a security vulnerability in Github.com/apple/swift nio http2 involving swift-nio-http2 affected by HTTP/2 MadeYouReset vulnerability under CWE-405: Asymmetric Resource Consumption (Amplification).
Which Github.com/apple/swift nio http2 versions are affected?
Affected versions include releases prior to 1.38.0 across affected packages: github.com/apple/swift-nio-http2.
What version fixes GHSA-xvr7-p2c6-j83w?
Upgrading to 1.38.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/apple/swift-nio-http2 affected?
Yes, github.com/apple/swift-nio-http2 is affected in releases prior to 1.38.0. Upgrade your dependency to 1.38.0 or later.
What CWE is associated with GHSA-xvr7-p2c6-j83w?
GHSA-xvr7-p2c6-j83w is classified under CWE-405: Asymmetric Resource Consumption (Amplification) (The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric.").
How can I check SwiftURL dependencies for GHSA-xvr7-p2c6-j83w?
Run the dependency tree command: 'inspect dependencies for github.com/apple/swift-nio-http2'. 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-xvr7-p2c6-j83w",
  "modified" : "2025-08-13T23:54:02Z",
  "published" : "2025-08-13T23:54:02Z",
  "aliases" : [ ],
  "summary" : "swift-nio-http2 affected by HTTP/2 MadeYouReset vulnerability",
  "details" : "The HTTP/2 [MadeYouReset vulnerability](https://galbarnahum.com/made-you-reset) has a mild effect on swift-nio-http2.\n\nswift-nio-http2 mostly protects against MadeYouReset by using a number of existing denial-of-service prevention patterns that we added in response to the RapidReset vulnerabilities. The result is that servers are not vulnerable to naive attacks based on MadeYouReset, and the naive PoC examples do not affect swift-nio-http2.\n\nHowever, in 1.38.0 we added some defense-in-depth measures as a precautionary measure that detect clients behaving \"weirdly\". These defense in depth measures tackle resource drain attacks where attackers interleave attack traffic with legitimate traffic to try to evade our existing DoS prevention mechanisms.\n\nWe recommend all adopters move to 1.38.0 as soon as possible to mitigate against more sophisticated attacks that may appear in the future.\n\nWe are very grateful to @galbarnahum, @AnatBB, and @YanivRL for their reporting and assistance with our process.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "SwiftURL",
      "name" : "github.com/apple/swift-nio-http2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.38.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/apple/swift-nio-http2/security/advisories/GHSA-xvr7-p2c6-j83w"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apple/swift-nio-http2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-405" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-13T23:54:02Z",
    "nvd_published_at" : null
  }
}