{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46688 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-46688 is a medium-severity memory corruption vulnerability in QuickJS, published on 27 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-46688 and fix it if it is affected.\n\nWhat it is: CVE-2025-46688 is a medium-severity memory corruption vulnerability in QuickJS, published on 27 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46688 exists.\n\nAffected product: QuickJS. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2025-46688/ (Markdown: https://insights.sbomify.com/CVE-2025-46688/index.md)","id":"CVE-2025-46688","markdown":"https://insights.sbomify.com/CVE-2025-46688/index.md","name":"CVE-2025-46688","record":{"aliases":["ALPINE-CVE-2025-46688","DEBIAN-CVE-2025-46688","GHSA-2qc3-w5w6-7r8m","UBUNTU-CVE-2025-46688"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript engine library","requires_auth":"none","summary":"Heap-based buffer overflow in QuickJS allows attackers to execute arbitrary code or cause denial of service via crafted BigInt input.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"quickjs","vendor":"quickjs-ng"},{"product":"quickjs","vendor":"quickjs_project"}],"cvss":{"score":5.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"description":"quickjs-ng through 0.9.0 has an incorrect size calculation in JS_ReadBigInt for a BigInt, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Memory corruption in QuickJS","id":"CVE-2025-46688","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2025"},"n_packages":0,"n_references":6,"next":{"headline":"Cross-site scripting in Ververica Platform","id":"CVE-2025-46689"},"packages":[],"prev":{"headline":"Memory corruption in QuickJS","id":"CVE-2025-46687"},"products":["QuickJS"],"published":"2025-04-27","related":[{"cvss_score":6.9,"headline":"quickjs-ng quickjs quickjs.c js_typed_array_constructor heap-based overflow","id":"CVE-2026-0821","kev_date_added":null,"published":"2026-01-10"},{"cvss_score":5.3,"headline":"quickjs-ng quickjs Atomics Ops quickjs.c use after free","id":"CVE-2026-1144","kev_date_added":null,"published":"2026-01-19"},{"cvss_score":5.3,"headline":"quickjs-ng quickjs quickjs.c js_typed_array_constructor_ta heap-based overflow","id":"CVE-2026-1145","kev_date_added":null,"published":"2026-01-19"},{"cvss_score":5.3,"headline":"quickjs-ng quickjs quickjs.c js_typed_array_sort heap-based overflow","id":"CVE-2026-0822","kev_date_added":null,"published":"2026-01-10"},{"cvss_score":5.3,"headline":"quickjs-ng QuickJS qjs quickjs.c JS_GetRuntime stack-based overflow","id":"CVE-2024-13903","kev_date_added":null,"published":"2025-03-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-04-28","vendors":["QuickJS Project"]},"summary":"Heap-based buffer overflow in QuickJS allows attackers to execute arbitrary code or cause denial of service via crafted BigInt input.","url":"https://insights.sbomify.com/CVE-2025-46688/"}