Skip to content

tokio-rate-limit

Follow this package

Get the evidence behind this dependency. Browse imported advisories below, or check an exact version against OSV now. View source coverage.

Check the version you ship.

Get a fresh OSV lookup for an exact release. We send the package name and version to OSV without storing a report.

Advisories & recorded fixes

medium5.3
RUSTSEC-2026-0584No CVE assignedPackage fixes recorded

gRPC IpKeyExtractor keys on client-supplied forwarding headers

tonic_middleware::IpKeyExtractor is documented as rate limiting gRPC requests by client IP address, but on a standard tonic server it keys on client-supplied x-forwarded-for and x-real-ip headers. In 0.5.0–0.9.1, the extractor reads those headers directly; in 0.10.0–0.11.0, it first checks for a bare std::net::SocketAddr request extension—which tonic::transport::Server never supplies, as it provides TcpConnectInfo instead—and falls back to the same headers. Direct clients can therefore choose their rate-limit key to bypass per-IP rate limits and increase the number of tracked keys; without forwarding headers, 0.5.0–0.9.1 allow requests without limiting them and 0.10.0–0.11.0 reject them by default unless .fail_open() is enabled.

Recorded fixes — tokio-rate-limit: 0.11.1. Check your release branch.

Exploitation not established

Affected range Recorded fix
From 0.5.0 before 0.11.1Semantic versions0.11.1

Version evidence: OSV · RUSTSEC-2026-0584

View original version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0.5.0"
        },
        {
          "fixed": "0.11.1"
        }
      ],
      "type": "SEMVER"
    }
  ],
  "versions": []
}