Medium, CVSS 5.3npmAmendedPublished
whatsapp-api-js fails to validate message's signature
CVE-2024-45607 · GHSA-mwhf-vhr5-7j23
- Affected
- npm whatsapp-api-js >= 4.0.0, < 4.0.3
- Fixed in
- 4.0.3· Vendor fix available
- Issue
- Impact Incorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted. Patches Patched in version 4.0.3. Workarounds It's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid. References https://github.com/Secreto31126/whatsapp-api-js/pull/371
Recommended action: Upgrade to 4.0.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.