{"id":"RUSTSEC-2025-0015","summary":"Denial of Service via malicious Web Push endpoint","details":"Prior to version 0.10.3, the built-in clients of the `web-push` crate\neagerly allocated memory based on the `Content-Length` header returned by the\nWeb Push endpoint. Malicious Web Push endpoints could return a large\n`Content-Length` without ever having to send as much data, leading to\ndenial of service by memory exhaustion.\n\nServices providing Web Push notifications typically allow the user to\nregister 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\nfor each response, limits the amount of data it will read from the endpoint,\nand returns an error if the endpoint sends too much data.\n\nAs before, it is recommended that services add a timeout for each request\nto Web Push endpoints.","aliases":["CVE-2025-53604","GHSA-287x-9rff-qvcg","GHSA-fc83-9jwq-gc2m"],"modified":"2025-10-28T06:29:10.187331Z","published":"2025-02-16T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/web-push"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2025-0015.html"},{"type":"WEB","url":"https://github.com/pimeys/rust-web-push/pull/68"}],"affected":[{"package":{"name":"web-push","ecosystem":"crates.io","purl":"pkg:cargo/web-push"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.10.3"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"os":[],"functions":[],"arch":[]}},"database_specific":{"informational":null,"cvss":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0015.json","categories":["denial-of-service"]}}],"schema_version":"1.7.3"}