{"answers":{"affected":"4 open source packages ship an affected version, including protobufjs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41242 exists.","fix":"Upgrade protobufjs to a fixed version for your release line: 7.5.5 or 8.0.1.","what":"CVE-2026-41242 is a critical code injection vulnerability in protobufjs protobuf.js, published on 18 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41242 and fix it if it is affected.\n\nWhat it is: CVE-2026-41242 is a critical code injection vulnerability in protobufjs protobuf.js, published on 18 Apr 2026. 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-2026-41242 exists.\n\nAffected packages and fixed versions:\n- protobufjs (npm): affected all versions; fixed in 7.5.5\n- protobufjs (npm): affected all versions; fixed in 7.5.5\n- protobufjs (npm): affected from 8.0.0; fixed in 8.0.1\n- protobufjs (npm): affected from 8.0.0; fixed in 8.0.1\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-2026-41242/ (Markdown: https://insights.sbomify.com/CVE-2026-41242/index.md)","id":"CVE-2026-41242","markdown":"https://insights.sbomify.com/CVE-2026-41242/index.md","name":"CVE-2026-41242","record":{"aliases":["CLEANSTART-2026-BY01159","CLEANSTART-2026-XC94160","CLSA-2026-1778114667","ECHO-bb3f-55f6-c0f6","GHSA-xq3m-2v4x-88gg","MINI-26v9-9486-q27w","MINI-27r9-hv49-7fhh","MINI-35qg-4fjh-xvpj","MINI-3m5q-mc88-cxx2","MINI-42q3-g7w5-f556","MINI-6r9x-g3hw-62wc","MINI-9725-9fq5-3g26","MINI-9c3w-25fx-gjcj","MINI-c635-9c6v-g7hc","MINI-f7wg-h7c9-5983","MINI-g62v-3x66-h843","MINI-jcjj-r9hj-9jqw","MINI-pmcm-w7pw-8jc3","MINI-rc54-65rg-pxp9","ROOT-APP-NPM-CVE-2026-41242"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript protobuf library","requires_auth":"low_privilege","summary":"Attackers can inject arbitrary code into protobuf definitions that executes during object decoding, allowing remote code execution in applications using the library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"protobufjs","vendor":"protobufjs_project"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1 and 7.5.5, attackers can inject arbitrary code in the \"type\" fields of protobuf definitions, which will then execute during object decoding using that definition. Versions 8.0.1 and 7.5.5 patch the issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-04-26","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-26T16:48:56Z","kind":"github_poc","ref":"https://github.com/4chech/CVE-2026-41242","stars":0,"title":"some simple node.js web app with PoC code for CVE-2026-41242"},{"date":"2026-08-07T14:38:16Z","kind":"github_poc","ref":"https://github.com/Giangdurian/CVE-2026-41242","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"protobufjs has an arbitrary code execution issue","id":"CVE-2026-41242","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"OpenLearn's pending forum posts remain publicly readable by direct ID when moderation mode is enabled","id":"CVE-2026-41243"},"packages":[{"ecosystem":"npm","fixed":["7.5.5"],"introduced":["0"],"last_affected":[],"package":"protobufjs","purl":null,"source":"GHSA-xq3m-2v4x-88gg"},{"ecosystem":"npm","fixed":["7.5.5"],"introduced":["0"],"last_affected":[],"package":"protobufjs","purl":"pkg:npm/protobufjs","source":"GHSA-xq3m-2v4x-88gg"},{"ecosystem":"npm","fixed":["8.0.1"],"introduced":["8.0.0"],"last_affected":[],"package":"protobufjs","purl":null,"source":"GHSA-xq3m-2v4x-88gg"},{"ecosystem":"npm","fixed":["8.0.1"],"introduced":["8.0.0"],"last_affected":[],"package":"protobufjs","purl":"pkg:npm/protobufjs","source":"GHSA-xq3m-2v4x-88gg"}],"prev":{"headline":"pretalx: Stored cross-site scripting in organiser search typeahead","id":"CVE-2026-41241"},"products":["protobuf.js"],"published":"2026-04-18","related":[{"cvss_score":9.8,"headline":"protobufjs Prototype Pollution vulnerability","id":"CVE-2023-36665","kev_date_added":null,"published":"2023-07-05"},{"cvss_score":8.2,"headline":"Prototype Pollution","id":"CVE-2022-25878","kev_date_added":null,"published":"2022-05-27"},{"cvss_score":8.1,"headline":"protobufjs: Code generation gadget after prototype pollution","id":"CVE-2026-44291","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":7.7,"headline":"protobufjs: Code injection through bytes field defaults in generated toObject code","id":"CVE-2026-44293","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":7.5,"headline":"protobufjs: Denial of service through unbounded Any expansion during JSON conversion","id":"CVE-2026-48712","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":7.5,"headline":"protobufjs: Denial of service through unbounded protobuf recursion","id":"CVE-2026-44289","kev_date_added":null,"published":"2026-05-13"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-09","vendors":["protobufjs"]},"summary":"Attackers can inject arbitrary code into protobuf definitions that executes during object decoding, allowing remote code execution in applications using the library.","url":"https://insights.sbomify.com/CVE-2026-41242/"}