{"answers":{"affected":"2 open source packages ship an affected version, including whatsapp-api-js. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-45607 in the wild and no public exploit code.","fix":"Upgrade whatsapp-api-js to 4.0.3 or later.","what":"CVE-2024-45607 is a medium-severity vulnerability in Secreto31126 whatsapp-api-js, published on 12 Sep 2024."},"fix_prompt":"Check this codebase for CVE-2024-45607 and fix it if it is affected.\n\nWhat it is: CVE-2024-45607 is a medium-severity vulnerability in Secreto31126 whatsapp-api-js, published on 12 Sep 2024. \nExploitation: There is no known exploitation of CVE-2024-45607 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- whatsapp-api-js (npm): affected from 4.0.0; fixed in 4.0.3\n- whatsapp-api-js (npm): affected from 4.0.0; fixed in 4.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45607/ (Markdown: https://insights.sbomify.com/CVE-2024-45607/index.md)","id":"CVE-2024-45607","markdown":"https://insights.sbomify.com/CVE-2024-45607/index.md","name":"CVE-2024-45607","record":{"aliases":["GHSA-mwhf-vhr5-7j23"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"whatsapp-api-js","vendor":"secreto31126"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"whatsapp-api-js fails to validate message's signature","id":"CVE-2024-45607","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"GLPI has an Authenticated SQL Injection","id":"CVE-2024-45608"},"packages":[{"ecosystem":"npm","fixed":["4.0.3"],"introduced":["4.0.0"],"last_affected":[],"package":"whatsapp-api-js","purl":null,"source":"GHSA-mwhf-vhr5-7j23"},{"ecosystem":"npm","fixed":["4.0.3"],"introduced":["4.0.0"],"last_affected":[],"package":"whatsapp-api-js","purl":"pkg:npm/whatsapp-api-js","source":"GHSA-mwhf-vhr5-7j23"}],"prev":{"headline":"Improper authorization on muting of alert rules in sentry","id":"CVE-2024-45606"},"products":["whatsapp-api-js"],"published":"2024-09-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["Secreto31126"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-45607/"}