protobufjs-cli@2.0.1-experimental

Translates between file formats and generates static code as well as TypeScript definitions.

  • latest version

    2.5.6

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the protobufjs-cli package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Arbitrary Code Injection

    protobufjs-cli is a Translates between file formats and generates static code as well as TypeScript definitions.

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the pbjs static code generation. An attacker can execute arbitrary code by providing crafted schema names that are incorporated into generated JavaScript output, which is then executed or imported by the application or build process.

    Note:

    This is only exploitable if the application or build process runs pbjs static code generation on a pre-parsed JSON descriptor influenced by an attacker, the generated JavaScript file is subsequently executed or imported, and an affected generated API path is invoked.

    How to fix Arbitrary Code Injection?

    Upgrade protobufjs-cli to version 1.3.2, 2.5.0 or higher.

    <1.3.2>=2.0.0 <2.5.0
    • M
    Improper Check for Unusual or Exceptional Conditions

    protobufjs-cli is a Translates between file formats and generates static code as well as TypeScript definitions.

    Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions in the schema-derived names that collide with runtime-significant properties. An attacker can cause affected message or service types to become unusable, resulting in denial of service for the relevant processing path, by providing or influencing protobuf schemas or JSON descriptors containing problematic names such as hasOwnProperty, $type, or rpcCall.

    How to fix Improper Check for Unusual or Exceptional Conditions?

    Upgrade protobufjs-cli to version 1.3.3, 2.5.1 or higher.

    <1.3.3>=2.0.0 <2.5.1
    • H
    Arbitrary Code Injection

    protobufjs-cli is a Translates between file formats and generates static code as well as TypeScript definitions.

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the pbjs static code generation. An attacker can execute arbitrary code by providing crafted schema names that are incorporated into generated JavaScript output, which is then executed or imported by the application or build process.

    How to fix Arbitrary Code Injection?

    Upgrade protobufjs-cli to version 1.2.1, 2.0.2 or higher.

    <1.2.1>=2.0.0-experimental <2.0.2
    • H
    Command Injection

    protobufjs-cli is a Translates between file formats and generates static code as well as TypeScript definitions.

    Affected versions of this package are vulnerable to Command Injection via pbts. An attacker can execute arbitrary shell commands by supplying file paths containing shell metacharacters, which are interpreted by the shell when the process constructs and executes a command string.

    How to fix Command Injection?

    Upgrade protobufjs-cli to version 1.2.1, 2.0.2 or higher.

    <1.2.1>=2.0.0-experimental <2.0.2
    • H
    Uncontrolled Recursion

    protobufjs-cli is a Translates between file formats and generates static code as well as TypeScript definitions.

    Affected versions of this package are vulnerable to Uncontrolled Recursion through unbounded recursion when decoding nested message fields. An attacker can exhaust the call stack and cause the application to crash by supplying specially crafted protobuf binary data containing deeply nested structures.

    How to fix Uncontrolled Recursion?

    Upgrade protobufjs-cli to version 1.2.1, 2.0.2 or higher.

    <1.2.1>=2.0.0-experimental <2.0.2