Advisory published

XYZ-2026-00218

amqplib: one published message can block every consumer of a queue

Low severityamqplibfixed in 2.3.2
the timeline of this fixnpm · amqplib · dates in UTC

Flagged 9 days before the advisory

CyberXYZ reads the changes made to a package's source code. We spotted this security fix on 16 Nov 2026. The maintainers' advisory (GHSA-gfjv-mq5g-xjfw) followed 9 days later.

9 daysfrom our flag to the advisory
  1. CyberXYZ flagged the fix
  2. Advisory published

What was wrong

The decoder for AMQP field tables was recursive, so headers nested a few thousand levels deep overflowed the call stack. It also assigned each key directly to the decoded object, so a key named __proto__ replaced that object's prototype and could make decoding throw. Both headers are valid AMQP 0-9-1 and RabbitMQ delivers them.

Impactlow

Denial of service against consumers. The error is thrown before the message reaches application code, so the app cannot acknowledge or reject it. The connection closes, the message returns to the queue, and each consumer that reconnects fails again until the message is removed. The maintainers state there is no code execution and no effect on confidentiality or integrity.

Who is affected

Consumers on amqplib 2.3.1 or earlier, on any queue where a client you do not fully trust has permission to publish.

What to do

Upgrade to amqplib 2.3.2. Until then, grant publish permission only to clients you trust, and if a queue is stuck, purge it or remove the message with a client that is not affected. Quorum queues limit redeliveries, which ends the loop after that many attempts.

npm install amqplib@2.3.2

The nested field tables were reported by Dickson Wu (@DicksonWu654). Fixed by the amqplib maintainers. Advisory: GHSA-gfjv-mq5g-xjfw.

XYZ-2026-00218.json · OSV
{
  "id": "XYZ-2026-00218",
  "summary": "amqplib: one published message can block every consumer of a queue",
  "aliases": [
    "GHSA-gfjv-mq5g-xjfw"
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "amqplib"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.3.2"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/amqp-node/amqplib/commit/024528f1599a15a99f71f5750e9063f8a370b6df"
    },
    {
      "type": "FIX",
      "url": "https://github.com/amqp-node/amqplib/commit/3e405004d21e6212db7be2874a97ff3a1fab1845"
    },
    {
      "type": "FIX",
      "url": "https://github.com/amqp-node/amqplib/commit/67aa1e59d39685c6c8ce88bf142502470769aa01"
    },
    {
      "type": "FIX",
      "url": "https://github.com/amqp-node/amqplib/commit/6a650bd53e4f3ff6cecf671e5268ad0736282a91"
    },
    {
      "type": "FIX",
      "url": "https://github.com/amqp-node/amqplib/commit/6e714f8fba024afc1a93016d360d84fe220b5de2"
    },
    {
      "type": "FIX",
      "url": "https://github.com/amqp-node/amqplib/commit/9bbaf5bcb3cd010c36ea28483608462cd70c81a5"
    }
  ],
  "credits": [
    {
      "name": "CyberXYZ Security Threat Intel Team",
      "contact": [
        "https://cyberxyz.io"
      ],
      "type": "ANALYST"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-674"
    ]
  }
}

An excerpt of this record in the OSV format, for tools that read advisories. The full record as JSON.

The bug was found and fixed by the package's maintainers. CyberXYZ flagged the fix in the source and recorded the release that carries it. All CyberXYZ Advisories · The amqplib report


Think this record is wrong? Tell us; we respond within 2 business days.