GHSA-fc83-9jwq-gc2m: Web push Denial of Service Vulnerability

MODERATE
CWE-770
Published
Advisory Summary

GHSA-fc83-9jwq-gc2m is a MODERATE denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Web push libraries in the crates.io ecosystem. The issue involves web push denial of service via malicious web push endpoint. Remediation is available by upgrading affected packages to version 0.10.4.

GHSA-fc83-9jwq-gc2m at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-fc83-9jwq-gc2m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Web push
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-fc83-9jwq-gc2m

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

web-push fixed: 0.10.4
Upgrade web-push to 0.10.4
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 web-push

How to Check if You Are Affected

To determine whether your application is affected by GHSA-fc83-9jwq-gc2m, inspect your project dependencies for Web push:

inspect dependencies for web-push

Analyze the terminal output to locate any version of Web push in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.4), 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Web push, 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

Prior to version 0.10.3, the built-in clients of the `web-push` crate eagerly allocated memory based on the `Content-Length` header returned by the Web Push endpoint. Malicious Web Push endpoints could return a large `Content-Length` without ever having to send as much data, leading to denial of service by memory exhaustion. Services providing Web Push notifications typically allow the user to register an arbitrary endpoint, so the endpoint should not be trusted. The fixed version 0.10.3 now limits the amount of memory it will allocate for each response, limits the amount of data it will read from the endpoint, and returns an error if the endpoint sends too much data. As before, it is recommended that services add a timeout for each request to Web Push endpoints.

GHSA-fc83-9jwq-gc2m Affected Web push Versions

1 component(s)
Fixed Versions:
0.10.4
Product / Package Ecosystem Affected Versions Fixed Version
web-push
crates.io
< 0.10.4
0.10.4

References

Frequently Asked Questions

What is GHSA-fc83-9jwq-gc2m?
GHSA-fc83-9jwq-gc2m is a security vulnerability in Web push involving Web Push Denial of Service via malicious Web Push endpoint under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Web push versions are affected?
Affected versions include releases prior to 0.10.4 across affected packages: web-push.
What version fixes GHSA-fc83-9jwq-gc2m?
Upgrading to 0.10.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is web-push affected?
Yes, web-push is affected in releases prior to 0.10.4. Upgrade your dependency to 0.10.4 or later.
What CWE is associated with GHSA-fc83-9jwq-gc2m?
GHSA-fc83-9jwq-gc2m is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check crates.io dependencies for GHSA-fc83-9jwq-gc2m?
Run the dependency tree command: 'inspect dependencies for web-push'. 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-fc83-9jwq-gc2m",
  "modified" : "2025-03-24T19:39:27Z",
  "published" : "2025-03-24T19:39:27Z",
  "aliases" : [ ],
  "summary" : "Web Push Denial of Service via malicious Web Push endpoint",
  "details" : "Prior to version 0.10.3, the built-in clients of the `web-push` crate eagerly allocated memory based on the `Content-Length` header returned by the Web Push endpoint. Malicious Web Push endpoints could return a large `Content-Length` without ever having to send as much data, leading to denial of service by memory exhaustion.\n\nServices providing Web Push notifications typically allow the user to register an arbitrary endpoint, so the endpoint should not be trusted.\n\nThe fixed version 0.10.3 now limits the amount of memory it will allocate for each response, limits the amount of data it will read from the endpoint, and returns an error if the endpoint sends too much data.\n\nAs before, it is recommended that services add a timeout for each request to Web Push endpoints.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "web-push"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pimeys/rust-web-push/pull/68"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pimeys/rust-web-push"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0015.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-24T19:39:27Z",
    "nvd_published_at" : null
  }
}