5.3medium
protobufjs: Schema-derived names can shadow runtime-significant properties
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f38q-mgvj-vph7
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 8.6.0 and 7.6.3, protobufjs accepted certain schema-derived names that could collide with properties used by protobufjs runtime helpers. The known affected names are fields named hasOwnProperty, field or oneof names such as $type when loaded through protobufjs JSON/reflection descriptors, and service methods whose generated helper name is rpcCall. When affected message or service types were used, protobufjs could read schema-controlled data where it expected an own-property helper, reflected type metadata, or the base RPC helper. This could cause deterministic exceptions or recursive calls in affected decode post-checks, verification, object conversion, reflected JSON serialization, or protobufjs RPC helper invocation. This vulnerability is fixed in 8.6.0 and 7.6.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| protobufjs protobuf.js | < 7.6.3, >= 8.0.0, < 8.6.0 | CVE List |
| protobufjs (npm) | before 7.6.3, from 8.0.0 before 8.6.0 | GitHub Advisory Database |
| protobufjs-cli (npm) | from 2.0.0 before 2.5.1, before 1.3.3 | GitHub Advisory Database |
| protobufjs_project protobufjs | before 7.6.3, from 8.0.0 before 8.6.0 | NVD |
| protobufjs_project protobufjs-cli | before 1.3.3, from 2.0.0 before 2.5.1 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 8.6.0 and 7.6.3, protobufjs accepted certain schema-derived names that could collide with properties used by protobufjs runtime helpers. The known affected names are fields named hasOwnProperty, field or oneof names such as $type when loaded through protobufjs JSON/reflection descriptors, and service methods whose generated helper name is rpcCall. When affected message or service types were used, protobufjs could read schema-controlled data where it expected an own-property helper, reflected type metadata, or the base RPC helper. This could cause deterministic exceptions or recursive calls in affected decode post-checks, verification, object conversion, reflected JSON serialization, or protobufjs RPC helper invocation. This vulnerability is fixed in 8.6.0 and 7.6.3.
GitHub Advisory Database
Summary
protobufjs accepted certain schema-derived names that could collide with properties used by protobufjs runtime helpers. The known affected names are fields named hasOwnProperty, field or oneof names such as $type when loaded through protobufjs JSON/reflection descriptors, and service methods whose generated helper name is rpcCall.
When affected message or service types were used, protobufjs could read schema-controlled data where it expected an own-property helper, reflected type metadata, or the base RPC helper. This could cause deterministic exceptions or recursive calls in affected decode post-checks, verification, object conversion, reflected JSON serialization, or protobufjs RPC helper invocation.
Impact
An attacker who can provide or influence protobuf schemas or protobufjs JSON descriptors may be able to make affected message or service types unusable, resulting in denial of service for the affected processing path.
Applications using only trusted schemas are affected only if those schemas contain one of the problematic names and the application reaches the affected API path.
The issue is not known to allow code execution by itself.
Preconditions
- The application must use an affected protobufjs version.
- The application must load or use a schema or protobufjs JSON descriptor containing one of the problematic names:
- a field named
hasOwnProperty, - a field or oneof named
$typethrough protobufjs JSON/reflection descriptor input, - or a service method whose generated helper name is
rpcCall.
- a field named
- The application must reach the affected API path for that name: required-field decode post-checks,
verify, ortoObjectforhasOwnProperty; reflected message JSON serialization for$type; or protobufjs RPC service invocation forrpcCall.
Workarounds
Do not load protobuf schemas or protobufjs JSON descriptors from untrusted sources with affected versions. If untrusted schemas or descriptors must be accepted, validate schema-derived field, oneof, and service method names before loading and reject the problematic names described above.
Applications using trusted schemas can avoid the issue by renaming affected fields or service methods, or by avoiding the affected API path.
NVD (es)
protobufjs compila definiciones de protobuf en funciones de JavaScript (JS). Antes de las versiones 8.6.0 y 7.6.3, protobufjs aceptaba ciertos nombres derivados del esquema que podían colisionar con propiedades utilizadas por los ayudantes de tiempo de ejecución de protobufjs. Los nombres afectados conocidos son campos llamados hasOwnProperty, nombres de campo o oneof como $type cuando se cargan a través de descriptores JSON/de reflexión de protobufjs, y métodos de servicio cuyo nombre de ayudante generado es rpcCall. Cuando se utilizaban tipos de mensaje o servicio afectados, protobufjs podía leer datos controlados por el esquema donde esperaba un ayudante de propiedad propia, metadatos de tipo reflejado o el ayudante RPC base. Esto podía causar excepciones deterministas o llamadas recursivas en comprobaciones posteriores de decodificación afectadas, verificación, conversión de objetos, serialización JSON reflejada o invocación del ayudante RPC de protobufjs. Esta vulnerabilidad está corregida en las versiones 8.6.0 y 7.6.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54269 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f38q-mgvj-vph7 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54269 changed 2026-10-25 | Public domain |