External risk intelligence

binary-parser Code Injection Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.2)

CVE-2026-134814

The vulnerable component, binary-parser, is a software library or module used by developers to build applications. It is not an internet-facing service, gateway, or standalone product. While it may be included in applications that are internet-facing, the library itself resides within the application code, making direct, unmediated public exposure uncommon and dependent on specific implementation choices by developers.

Code Injection

Halo Surface Signal: 2 out of 5 — less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A code injection vulnerability exists in the binary-parser library, affecting Node.js processes when specific parser definitions are compiled. This could allow an attacker to execute arbitrary JavaScript code by controlling certain string-typed options.

  • Attackers can inject JavaScript through parser options.
  • This vulnerability could impact applications using the library.
  • Confirm relevance and assess potential exposure.

Attack Path

How an attacker could exploit the issue

An attacker could inject malicious JavaScript by crafting specific string values within parser definitions. These crafted values, when passed as options to the `Context.generateOption()` function within the `binary-parser` library, are not properly validated. This allows an attacker to execute arbitrary JavaScript code in the Node.js environment when the parser is compiled.

  • Requires controlling parser definitions.
  • Triggered by unvalidated string-typed options.
  • Allows arbitrary JavaScript execution.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, attackers could inject JavaScript through unvalidated string-typed options used in parser definitions, potentially executing arbitrary code within the Node.js process during parser compilation.

  • Node.js process.
  • Unvalidated options controlling parser definitions.
  • Arbitrary JavaScript code execution.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability affects applications that use the `binary-parser` library and allow user-controlled parser definitions. Application owners and the development teams responsible for integrating this library should lead the response. The first practical step is to identify all applications using this library, confirm if they process untrusted parser definitions, and assess business criticality before planning remediation.

  • Application development teams own the issue.
  • Verify untrusted parser definition inputs.
  • Plan remediation based on identified risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the binary-parser library used for?

binary-parser is a Node.js library that developers use to simplify the process of reading and writing binary data structures. It provides a declarative way to define data formats, making it easier for applications to parse complex binary streams, such as network protocols or custom file formats, without writing manual bit-shifting logic.

What does CWE-94 mean in the context of CVE-2026-134814?

CWE-94 refers to improper control of generation of code, commonly called code injection. In this CVE, it means the library fails to sanitize certain input strings before processing them. Because these strings are treated as executable instructions during parser compilation, an attacker who can influence those inputs can trick the Node.js process into running their own malicious JavaScript code.

How is this code injection vulnerability triggered?

The vulnerability is triggered when an application passes unvalidated, attacker-supplied data into specific configuration options—such as length, tag, or offset values—within a parser definition. It is important to note that merely using the library is not sufficient to trigger the bug; the application must be designed to accept and process untrusted user input as part of the parser's definition logic.

Is my application at risk according to Halo Surface Signal?

Halo Surface Signal indicates that risk is unlikely for most because binary-parser is an internal software module, not an internet-facing service or standalone product. The library lives deep within application code. Your risk depends entirely on whether your application logic allows external, untrusted users to define or influence the parser configurations being processed.

What are the first steps to address this CVE?

Start by identifying all applications in your environment that utilize the binary-parser library. Once mapped, audit the code to see if any user-controllable input reaches the parser definition functions. If you find data flow from untrusted sources, prioritize isolating that input or upgrading to version 2.3.1 or later, where the input validation logic has been corrected.

References