{"schema_version":"1.6.0","id":"XYZ-2026-00031","modified":"2026-11-25T21:48:53Z","published":"2026-11-08T15:46:42Z","summary":"amqplib: a malicious broker can stop the client with two unchecked sizes","affected":[{"package":{"ecosystem":"npm","name":"amqplib"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}]}],"references":[{"type":"WEB","url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00031"},{"type":"FIX","url":"https://github.com/amqp-node/amqplib/commit/2759ae8ab998ac83c18fa097f6e9a073cc61de4b"}],"credits":[{"name":"CyberXYZ Security Threat Intel Team","contact":["https://cyberxyz.io"],"type":"ANALYST"}],"database_specific":{"cyberxyz":{"status":"confirmed","status_label":"Advisory published","public_state":"full","exploitability_tier":"likely_exploitable","exploitability_tier_label":"Likely exploitable","first_detected_at":"2026-11-08T15:36:11.144109+00:00","fixed_versions":["2.3.0"],"upgrade_guidance":"A security fix was released in amqplib 2.3.0. Upgrade to 2.3.0 or later.","dispute":{"url":"/api/v1/disputes","subject_type":"advisory","subject_id":"XYZ-2026-00031","ecosystem":"npm","note":"Think this record is wrong? Tell us; we respond within 2 business days."},"url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00031","writeup":{"what":"amqplib trusted two numbers sent by the broker. It accepted a `connection.tune` with a `frameMax` below the protocol minimum of 4096, and the publish path then looped without advancing on any message of 2048 bytes or more. It also read the size field of each incoming frame without comparing it with any limit, so one frame header could make the client buffer and re-copy hundreds of megabytes.","impact":"Denial of service. The client process runs out of memory or spends minutes of CPU copying buffers. Nothing is disclosed and no code runs.","affected":"Any Node.js process that uses amqplib 2.2.1 or earlier and connects to a broker that is malicious or compromised, or through a path where someone can answer as the broker.","action":"Upgrade to amqplib 2.3.0. It rejects a `frameMax` below 4096 and adds a `maxFrameSize` option (default 64 MiB) that is checked from the frame header. If your broker sends unsplit frames larger than that, raise `maxFrameSize` or set it to 0.","title":"amqplib: a malicious broker can stop the client with two unchecked sizes","credit":"Reported to the maintainers by @r-bedekar and fixed by the amqplib maintainers. Advisory: GHSA-37f9-7m79-6866."},"exploitability_score":74,"severity":"medium","cwe":"CWE-770","fix_commits":["2759ae8ab998ac83c18fa097f6e9a073cc61de4b"],"feed_leads":[{"source":"ghsa","id":"GHSA-37f9-7m79-6866","published":"2026-11-25T00:00:00+00:00","lead_seconds":1412628}]},"cwe_ids":["CWE-770"]},"details":"## What was wrong\n\namqplib trusted two numbers sent by the broker. It accepted a `connection.tune` with a `frameMax` below the protocol minimum of 4096, and the publish path then looped without advancing on any message of 2048 bytes or more. It also read the size field of each incoming frame without comparing it with any limit, so one frame header could make the client buffer and re-copy hundreds of megabytes.\n\n## Impact\n\nDenial of service. The client process runs out of memory or spends minutes of CPU copying buffers. Nothing is disclosed and no code runs.\n\n## Who is affected\n\nAny Node.js process that uses amqplib 2.2.1 or earlier and connects to a broker that is malicious or compromised, or through a path where someone can answer as the broker.\n\n## What to do\n\nUpgrade to amqplib 2.3.0. It rejects a `frameMax` below 4096 and adds a `maxFrameSize` option (default 64 MiB) that is checked from the frame header. If your broker sends unsplit frames larger than that, raise `maxFrameSize` or set it to 0.\n\nReported to the maintainers by @r-bedekar and fixed by the amqplib maintainers. Advisory: GHSA-37f9-7m79-6866.","aliases":["GHSA-37f9-7m79-6866"]}