{"id":"CVE-2024-45607","aliases":["CVE-2024-45607","GHSA-mwhf-vhr5-7j23"],"related":[],"kind":"vulnerability","state":"published","title":"whatsapp-api-js fails to validate message's signature","summary":"whatsapp-api-js is a TypeScript server agnostic Whatsapp's Official API framework. It's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid. Incorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted. This vulnerability is fixed in 4.0.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"whatsapp-api-js is a TypeScript server agnostic Whatsapp's Official API framework. It's possible to check the payload validation using the WhatsAppAPI.verifyRequestSignature and expect false when the signature is valid. Incorrect Access Control, anyone using the post or verifyRequestSignature methods to handle messages is impacted. This vulnerability is fixed in 4.0.3.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"whatsapp-api-js es un framework API oficial de WhatsApp independiente del servidor TypeScript. Es posible comprobar la validación del payload mediante WhatsAppAPI.verifyRequestSignature y esperar un resultado falso cuando la firma es válida. Control de acceso incorrecto: cualquiera que utilice los métodos post o verifiedRequestSignature para gestionar mensajes se ve afectado. Esta vulnerabilidad se corrigió en la versión 4.0.3.","source":"nvd"}],"published":"2024-09-12T19:58:13.803Z","modified":"2026-06-17T07:54:33.333Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.0.3","status":"affected"}],"vendor":"Secreto31126","product":"whatsapp-api-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.3"}],"ecosystem":"npm","package":"whatsapp-api-js","purl":"pkg:npm/whatsapp-api-js","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.0.3"}],"vendor":"secreto31126","product":"whatsapp-api-js","cpe":"cpe:2.3:a:secreto31126:whatsapp-api-js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Secreto31126/whatsapp-api-js/security/advisories/GHSA-mwhf-vhr5-7j23","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Secreto31126/whatsapp-api-js/pull/371","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Secreto31126/whatsapp-api-js/commit/56620c65126427496a94d176082fbd8393a95b6d","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45607","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Secreto31126/whatsapp-api-js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-12T20:04:37.064Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-45607","url":"https://www.cve.org/CVERecord?id=CVE-2024-45607","licence":"CVE Terms of Use","modified":"2024-09-12T20:04:46.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mwhf-vhr5-7j23","url":"https://github.com/advisories/GHSA-mwhf-vhr5-7j23","licence":"CC-BY-4.0","modified":"2024-09-12T21:58:08.792Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-45607","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45607","licence":"Public domain","modified":"2026-06-17T07:54:33.333Z"}],"updatedAt":"2026-11-25T22:58:45.366Z","epss":{"score":0.14468,"percentile":0.96713,"date":"2026-12-01T12:00:22.000Z"}}