{"answers":{"affected":"5 open source packages ship an affected version, including svix. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21491 exists.","fix":"Upgrade svix to 1.17.0 or later.","what":"CVE-2024-21491 is a medium-severity authentication bypass vulnerability in svix, published on 13 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-21491 and fix it if it is affected.\n\nWhat it is: CVE-2024-21491 is a medium-severity authentication bypass vulnerability in svix, published on 13 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21491 exists.\n\nAffected packages and fixed versions:\n- svix (crates.io): affected all versions; fixed in 1.17.0\n- svix (crates.io): affected all versions; fixed in 1.17.0\n- svix (crates.io): affected all versions; fixed in 1.17.0\n- svix (crates.io): affected all versions; fixed in 1.17.0\n- svix (crates.io): affected from 0.0.0-0; fixed in 1.17.0\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-21491/ (Markdown: https://insights.sbomify.com/CVE-2024-21491/index.md)","id":"CVE-2024-21491","markdown":"https://insights.sbomify.com/CVE-2024-21491/index.md","name":"CVE-2024-21491","record":{"aliases":["GHSA-747x-5m58-mq97","GHSA-w277-wpqf-rcfv","RUSTSEC-2024-0010"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust webhook library","requires_auth":"none","summary":"Attackers can bypass webhook signature verification in the Svix Rust library by exploiting a flawed comparison logic, allowing unauthorized webhook processing.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"svix-webhooks","vendor":"svix"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"},{"id":"CWE-288","name":"Authentication Bypass Using an Alternate Path or Channel"}],"description":"Versions of the package svix before 1.17.0 are vulnerable to Authentication Bypass due to an issue in the verify function where signatures of different lengths are incorrectly compared. An attacker can bypass signature verification by providing a shorter signature that matches the beginning of the actual signature.\r\r**Note:**\r\rThe attacker would need to know a victim uses the Rust library for verification,no easy way to automatically check that; and uses webhooks by a service that uses Svix, and then figure out a way to craft a malicious payload that will actually include all of the correct identifiers needed to trick the receivers to cause actual issues.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"svix vulnerable to Authentication Bypass","id":"CVE-2024-21491","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":5,"n_references":4,"next":{"headline":"Insufficient Session Expiration in github.com/greenpau/caddy-security","id":"CVE-2024-21492"},"packages":[{"ecosystem":"crates.io","fixed":["1.17.0"],"introduced":["0"],"last_affected":[],"package":"svix","purl":null,"source":"GHSA-747x-5m58-mq97"},{"ecosystem":"crates.io","fixed":["1.17.0"],"introduced":["0"],"last_affected":[],"package":"svix","purl":"pkg:cargo/svix","source":"GHSA-747x-5m58-mq97"},{"ecosystem":"crates.io","fixed":["1.17.0"],"introduced":["0"],"last_affected":[],"package":"svix","purl":null,"source":"GHSA-w277-wpqf-rcfv"},{"ecosystem":"crates.io","fixed":["1.17.0"],"introduced":["0"],"last_affected":[],"package":"svix","purl":"pkg:cargo/svix","source":"GHSA-w277-wpqf-rcfv"},{"ecosystem":"crates.io","fixed":["1.17.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"svix","purl":"pkg:cargo/svix","source":"RUSTSEC-2024-0010"}],"prev":{"headline":"angular vulnerable to super-linear runtime due to backtracking","id":"CVE-2024-21490"},"products":["svix"],"published":"2024-02-13","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":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-09","vendors":["n/a"]},"summary":"Attackers can bypass webhook signature verification in the Svix Rust library by exploiting a flawed comparison logic, allowing unauthorized webhook processing.","url":"https://insights.sbomify.com/CVE-2024-21491/"}