amqp-match@0.0.0 vulnerabilities

simple library for matching amqp routing tokens, with *'s and #'s

Direct Vulnerabilities

Known vulnerabilities in the amqp-match package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

amqp-match is simple library for matching amqp routing tokens, with *'s and #'s. Affected versions of this package are vulnerable to Regular expression Denial of Service (ReDoS) attacks. PoC by Sean Nicolas:

const match = require('amqp-match');

//Terminates fast
console.log(match('foo', '#.bar'));

//Takes too long
console.log(match('foooooooooooooooooooooooooo', '#.bar'));

How to fix Regular Expression Denial of Service (ReDoS)?

There is no fix version for amqp-match.

*