
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-45607 affects whatsapp-api-js, a TypeScript server agnostic WhatsApp's Official API framework. The vulnerability was discovered in September 2024 and involves incorrect access control in the payload validation functionality. The issue affects versions 4.0.0 through 4.0.2, with a fix released in version 4.0.3 (GitHub Advisory, NVD).
The vulnerability stems from a logic error in the verifyRequestSignature method where the signature validation was incorrectly implemented with a double negation. This caused the method to return false when the signature was valid and true when invalid, effectively allowing any payload except legitimate WhatsApp messages to be processed. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) by NIST and 5.8 (Medium) by GitHub, with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N (GitHub Advisory, NVD).
The vulnerability affects anyone using the post or verifyRequestSignature methods to handle messages. The incorrect validation could allow unauthorized messages to be processed while rejecting legitimate WhatsApp messages, potentially leading to integrity issues in message handling (GitHub Advisory).
The vulnerability has been fixed in version 4.0.3. Users should upgrade to this version immediately. For those unable to upgrade immediately, a workaround is available by inverting the expected result of the verifyRequestSignature method (GitHub Advisory).
The vulnerability was discovered and reported by Felix Arjuna through a pull request on GitHub. The library maintainer acknowledged this as the first security vulnerability in the library and added the discoverer to the CVE credits (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."