{"id":"CVE-2026-41242","aliases":["CVE-2026-41242","GHSA-xq3m-2v4x-88gg"],"related":[],"kind":"vulnerability","state":"published","title":"protobufjs has an arbitrary code execution issue","summary":"protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, 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, 7.5.5, and 6.11.6 patch the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, 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, 7.5.5, and 6.11.6 patch the issue.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nprotobufjs could execute generated JavaScript code derived from protobuf schema metadata. When loading a crafted JSON descriptor, schema-controlled type names and type references could reach runtime code generation without sufficient validation.\n\n## Impact\n\nAn attacker who can provide a malicious protobuf definition or JSON descriptor to an application may be able to execute arbitrary JavaScript in the context of the process using protobufjs.\n\nThis requires control over the protobuf schema or descriptor being loaded. Applications that only decode messages using trusted, application-defined schemas are not directly affected by this issue.\n\n## Preconditions\n\n- The application must allow an attacker to control or influence a protobuf definition or JSON descriptor.\n- The application must load that definition through protobufjs reflection APIs such as descriptor loading.\n- The affected generated-code path must be reached, for example by performing an operation on the loaded type.\n\n## Workarounds\n\nDo not load protobuf definitions or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate or restrict them before loading and run schema processing in an isolated environment.","format":"markdown","source":"ghsa"}],"published":"2026-04-16T22:34:57.000Z","modified":"2026-11-04T17:28:36.820Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":9.4,"rating":"CRITICAL"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":">= 7.0.0, < 7.5.5","status":"affected"},{"version":">= 8.0.0-experimental, < 8.0.1","status":"affected"},{"version":"< 6.11.6","status":"affected"}],"vendor":"protobufjs","product":"protobuf.js","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1779841586","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Developer Hub 1.8","package":"rhdh/rhdh-hub-rhel9","cpe":"cpe:/a:redhat:rhdh:1.8::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1781187342","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Developer Hub 1.9","package":"rhdh/rhdh-hub-rhel9","cpe":"cpe:/a:redhat:rhdh:1.9::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1780467029","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","package":"rhoai/odh-dashboard-rhel9","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1780467147","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","package":"rhoai/odh-mod-arch-model-registry-rhel9","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783082680","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-mod-arch-maas-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787762793","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.30","package":"devspaces/code-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3.30::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Cryostat 4","package":"grafana-infinity-datasource-npm","cpe":"cpe:/a:redhat:cryostat:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Pipelines","package":"openshift-pipelines/pipelines-console-plugin-rhel8","cpe":"cpe:/a:redhat:openshift_pipelines:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Pipelines","package":"openshift-pipelines/pipelines-console-plugin-rhel9","cpe":"cpe:/a:redhat:openshift_pipelines:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Service Mesh 3","package":"openshift-service-mesh/kiali-ossmc-rhel9","cpe":"cpe:/a:redhat:service_mesh:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Service Mesh 3","package":"openshift-service-mesh/kiali-rhel9","cpe":"cpe:/a:redhat:service_mesh:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-26/gateway-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"automation-platform-ui","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Apicurio Registry 3","package":"apicurio/apicurio-studio-ui-rhel8","cpe":"cpe:/a:redhat:apicurio_registry:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop","package":"podman-desktop-macos-1-0","cpe":"cpe:/a:redhat:podman_desktop:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop","package":"podman-desktop-windows-1-0","cpe":"cpe:/a:redhat:podman_desktop:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop","package":"rh-podman-desktop.git","cpe":"cpe:/a:redhat:podman_desktop:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ceph Storage 9","package":"rhceph/alloy-rhel10","cpe":"cpe:/a:redhat:ceph_storage:9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Developer Hub","package":"rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor","cpe":"cpe:/a:redhat:rhdh:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"grafana","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"grafana","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-gaudi-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/disk-image-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"dotnet9.0","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-dashboard-rhel8","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kf-notebook-controller-rhel8","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mlflow-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-gen-ai-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-notebook-controller-rhel8","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/ose-console","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/ose-console-rhel9","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"redhat-user-workloads/art-images","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","package":"odf4/mcg-core-rhel9","cpe":"cpe:/a:redhat:openshift_data_foundation:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Self-service automation portal 2","package":"ansible-automation-platform/automation-portal","cpe":"cpe:/a:redhat:ansible_portal:2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.1"}],"ecosystem":"npm","package":"protobufjs","purl":"pkg:npm/protobufjs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.5.5"}],"ecosystem":"npm","package":"protobufjs","purl":"pkg:npm/protobufjs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.11.6"}],"ecosystem":"npm","package":"protobufjs","purl":"pkg:npm/protobufjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.5.5"},{"status":"affected","version":"8.0.0"}],"vendor":"protobufjs_project","product":"protobufjs","cpe":"cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88gg","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/protobufjs/protobuf.js/commit/086916b4a52c9f73ce88956edbb38fc902e54bbf","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d75","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab477956","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21338","tags":["vendor-advisory","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","tags":["vendor-advisory","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:26234","tags":["vendor-advisory","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37275","tags":["vendor-advisory","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:62260","tags":["vendor-advisory","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41242","tags":["vdb-entry","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459442","tags":["issue-tracking","web","x-refsource-misc","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/protobufjs/protobuf.js/tree/v6.11.6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41242.json","tags":["web","x-refsource-misc","x-sadp-csaf-vex"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41242","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/protobufjs/protobuf.js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-04-20T16:03:39.054Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41242","url":"https://www.cve.org/CVERecord?id=CVE-2026-41242","licence":"CVE Terms of Use","modified":"2026-11-03T16:07:22.430Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xq3m-2v4x-88gg","url":"https://github.com/advisories/GHSA-xq3m-2v4x-88gg","licence":"CC-BY-4.0","modified":"2026-11-04T17:28:36.820Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41242","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41242","licence":"Public domain","modified":"2026-11-03T17:18:13.750Z"}],"updatedAt":"2026-11-25T22:59:18.999Z","epss":{"score":0.01274,"percentile":0.7073,"date":"2026-12-01T12:00:22.000Z"}}