baileys@7.0.0-rc.5

A WebSockets library for interacting with WhatsApp Web

  • latest version

    7.0.0-rc14

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    10 days ago

  • licenses detected

    • >=4.5.3 <5.0.3; >=5.0.4
  • Direct Vulnerabilities

    Known vulnerabilities in the baileys 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
    • C
    Origin Validation Error

    baileys is an A WebSockets library for interacting with WhatsApp Web

    Affected versions of this package are vulnerable to Origin Validation Error via the messages.upsert event handling process. An attacker can inject forged messages, spoof message history, and corrupt application state by sending maliciously crafted protocolMessage payloads. This can be achieved by exploiting the handling of placeholderResendMessage and fake key shares, allowing unauthorized manipulation of message events and history synchronization.

    How to fix Origin Validation Error?

    Upgrade baileys to version 6.7.22, 7.0.0-rc12 or higher.

    <6.7.22>=7.0.0-rc.1 <7.0.0-rc12