# GHSA-xvr7-p2c6-j83w: swift-nio-http2 affected by HTTP/2 MadeYouReset vulnerability

> Attackers can cause denial of service in swift-nio-http2 by evading existing DoS protections with sophisticated traffic patterns.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 13 Aug 2025

## What is GHSA-xvr7-p2c6-j83w?

GHSA-xvr7-p2c6-j83w is a denial of service vulnerability in github.com/apple/swift-nio-http2, published on 13 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

## Which versions are affected by GHSA-xvr7-p2c6-j83w?

2 open source packages ship an affected version, including github.com/apple/swift-nio-http2.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/apple/swift-nio-http2` | SwiftURL | All versions | 1.38.0 |
| `github.com/apple/swift-nio-http2` | SwiftURL | All versions | 1.38.0 |

## How do I fix GHSA-xvr7-p2c6-j83w?

Upgrade github.com/apple/swift-nio-http2 to 1.38.0 or later.

## Is GHSA-xvr7-p2c6-j83w being exploited?

There is no known exploitation of GHSA-xvr7-p2c6-j83w in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-xvr7-p2c6-j83w and fix it if it is affected.

What it is: GHSA-xvr7-p2c6-j83w is a denial of service vulnerability in github.com/apple/swift-nio-http2, published on 13 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-xvr7-p2c6-j83w in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/apple/swift-nio-http2 (SwiftURL): affected all versions; fixed in 1.38.0
- github.com/apple/swift-nio-http2 (SwiftURL): affected all versions; fixed in 1.38.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-xvr7-p2c6-j83w/ (Markdown: https://insights.sbomify.com/GHSA-xvr7-p2c6-j83w/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-xvr7-p2c6-j83w

---
From sbomify Insights: https://insights.sbomify.com/GHSA-xvr7-p2c6-j83w/
Summaries are generated and may contain mistakes; the official description above is the record.
