CVE-2026-41242
protobufjs has an arbitrary code execution issue
Description
Summary
protobufjs 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.
Impact
An 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.
This 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.
Preconditions
- The application must allow an attacker to control or influence a protobuf definition or JSON descriptor.
- The application must load that definition through protobufjs reflection APIs such as descriptor loading.
- The affected generated-code path must be reached, for example by performing an operation on the loaded type.
Workarounds
Do 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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » protobufjsvia npm protobufjs | < 6.11.6>= 7.0.0, < 7.5.5>= 8.0.0, < 8.0.1 | 6.11.6, 7.5.5, 8.0.1 |
| org.webjars.npm » protobufjsvia npm protobufjs | < 6.11.6>= 7.0.0, < 7.5.5>= 8.0.0, < 8.0.1 | 6.11.6, 7.5.5, 8.0.1 |
Blast radius
8% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 36 |
| 2 hops | 68 |
| 3 hops | 27 |
| 4 hops | 29 |
| 5 hops | 85 |
| 6 hops | 136 |
Most used dependents
- org.mvnpm.at.opentelemetry » otlp-exporter-base12 usages
- org.mvnpm.at.opentelemetry » otlp-transformer12 usages
- org.mvnpm.at.lwrjs » core4 usages
- org.mvnpm.at.opentelemetry » exporter-trace-otlp-http4 usages
- org.mvnpm.at.opentelemetry » otlp-grpc-exporter-base4 usages
- org.mvnpm.at.lwrjs » client-modules3 usages
- org.mvnpm.at.opentelemetry » exporter-logs-otlp-http3 usages
- org.mvnpm.at.opentelemetry » exporter-metrics-otlp-http3 usages
- org.mvnpm.at.opentelemetry » exporter-trace-otlp-proto3 usages
- org.mvnpm » o11y2 usages
- org.mvnpm.at.lwrjs » loader2 usages
- org.mvnpm.at.lwrjs » tools2 usages
- org.mvnpm.at.opentelemetry » sdk-node2 usages
- org.mvnpm.at.lwrjs » router1 usages
- org.mvnpm.at.lwrjs » lwc-ssr1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
- Webhttps://github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88gg
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-41242
- Webhttps://github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab477956
- Webhttps://github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d75
- Webhttps://github.com/protobufjs/protobuf.js/commit/086916b4a52c9f73ce88956edbb38fc902e54bbf
- Webhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41242.json
- Webhttps://github.com/protobufjs/protobuf.js/tree/v6.11.6
- Webhttps://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1
- Webhttps://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5
- Packagehttps://github.com/protobufjs/protobuf.js
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=2459442
- Webhttps://access.redhat.com/security/cve/CVE-2026-41242
- Webhttps://access.redhat.com/errata/RHSA-2026:62260
- Webhttps://access.redhat.com/errata/RHSA-2026:37275
- Webhttps://access.redhat.com/errata/RHSA-2026:26234
- Webhttps://access.redhat.com/errata/RHSA-2026:24977
- Webhttps://access.redhat.com/errata/RHSA-2026:21338
