{"id":"CVE-2024-45607","aliases":["GHSA-mwhf-vhr5-7j23"],"url":"https://o3.security/vulnerability/CVE-2024-45607","summary":"whatsapp-api-js fails to validate message's signature","details":"### Impact\nIncorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted.\n\n### Patches\nPatched in version 4.0.3.\n\n### Workarounds\nIt's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid.\n\n```ts\nfunction doPost(payload, header_signature) {\n    if (whatsapp.verifyRequestSignature(payload.toString(), header_signature) {\n        throw 403;\n    }\n    \n    // Now the payload is correctly verified\n    whatsapp.post(payload);\n}\n```\n\n### References\nhttps://github.com/Secreto31126/whatsapp-api-js/pull/371\n\n","published":"2024-09-12T19:58:13.803Z","modified":"2026-08-12T03:51:37.432874551Z","cvss":{"score":5.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"},"epss":{"score":0.14468,"percentile":0.96453,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"whatsapp-api-js","fixedVersion":"4.0.3"}],"fix":{"url":"https://github.com/Secreto31126/whatsapp-api-js/commit/56620c65126427496a94d176082fbd8393a95b6d","label":"Secreto31126/whatsapp-api-js@56620c6"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45607.json"},{"type":"ADVISORY","url":"https://github.com/Secreto31126/whatsapp-api-js/security/advisories/GHSA-mwhf-vhr5-7j23"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45607"},{"type":"FIX","url":"https://github.com/Secreto31126/whatsapp-api-js/commit/56620c65126427496a94d176082fbd8393a95b6d"},{"type":"FIX","url":"https://github.com/Secreto31126/whatsapp-api-js/pull/371"},{"type":"PACKAGE","url":"https://github.com/Secreto31126/whatsapp-api-js"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:37.432874551Z"}}