{"answers":{"affected":"1 open source package ship an affected version, including bun.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21548 exists.","fix":"Upgrade bun to 1.1.30 or later.","what":"CVE-2024-21548 is a high-severity vulnerability in bun, published on 18 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21548 and fix it if it is affected.\n\nWhat it is: CVE-2024-21548 is a high-severity vulnerability in bun, published on 18 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21548 exists.\n\nAffected packages and fixed versions:\n- bun (npm): affected all versions; fixed in 1.1.30\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-21548/ (Markdown: https://insights.sbomify.com/CVE-2024-21548/index.md)","id":"CVE-2024-21548","markdown":"https://insights.sbomify.com/CVE-2024-21548/index.md","name":"CVE-2024-21548","record":{"aliases":["GHSA-v9mx-4pqq-h232"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Bun JavaScript runtime","requires_auth":"low_privilege","summary":"Prototype pollution in Bun runtime allows attackers to manipulate object prototypes via APIs, potentially leading to code execution or privilege escalation.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"Versions of the package bun after 0.0.12 and before 1.1.30 are vulnerable to Prototype Pollution due to improper input sanitization. An attacker can exploit this vulnerability through Bun's APIs that accept objects.\r\r**Note:** This issue relates to the widely known and actively developed 'Bun' JavaScript runtime. The bun package on NPM at versions 0.0.12 and below belongs to a different and older project that happened to claim the 'bun' name in the past.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Other in bun","id":"CVE-2024-21548","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2024"},"n_packages":1,"n_references":3,"next":{"headline":"Browsershot Improper Input Validation vulnerability","id":"CVE-2024-21549"},"packages":[{"ecosystem":"npm","fixed":["1.1.30"],"introduced":["0"],"last_affected":[],"package":"bun","purl":"pkg:npm/bun","source":"GHSA-v9mx-4pqq-h232"}],"prev":{"headline":"Spatie Browsershot Directory Traversal vulnerability","id":"CVE-2024-21547"},"products":["bun"],"published":"2024-12-18","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-19","vendors":["n/a"]},"summary":"Prototype pollution in Bun runtime allows attackers to manipulate object prototypes via APIs, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-21548/"}