mqtt-packet@4.0.4 vulnerabilities

Parse and generate MQTT packets like a breeze

  • latest version

    9.0.2

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    7 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Buffer Over-read

    mqtt-packet is an Encoder and Decoder for MQTT.

    Affected versions of this package are vulnerable to Buffer Over-read. An attacker could trigger an out of range read on a buffer which throws a RangeError. MQTT Brokers using this module could be forced to crash by sending a specifically malformed MQTT Subscribe packet.

    How to fix Buffer Over-read?

    Upgrade mqtt-packet to version 3.5.1, 4.1.3, 5.6.1, 6.1.2 or higher.

    <3.5.1>=4.0.0 <4.1.3>=5.0.0 <5.6.1>=6.0.0 <6.1.2
    • H
    Denial of Service (DoS)

    Insufficient validation of MQTT packets allows the attacker to crash the application using a specially crafted packet.

    <3.4.6>4.0.0 <4.0.5