Skip to content
DayZeroHub
Critical CVSS 9.2CVE-2026-134814

binary-parser: code injection via string-typed options in parser definitions

keichi binary-parser

Summary

binary-parser before version 2.3.1 contains a code injection vulnerability (CVE-2026-134814) that allows arbitrary JavaScript to run in the Node.js process when a parser with crafted definitions is compiled. The CVSS 4.0 score is 9.2 and the severity is critical.

What happened

The binary-parser library, by keichi, passes certain string-typed options unvalidated through Context.generateOption(). An attacker who controls the parser definitions can supply crafted values in the length, lengthInBytes, key, tag or offset options, or in namely() aliases, resulting in JavaScript injection. That code runs in the Node.js process when the parser is compiled. The weakness is classified as CWE-94 (code injection).

Why it matters

Execution of arbitrary JavaScript in the Node.js process can compromise the application using the library. Exploitation requires the attacker to be able to influence the parser definitions. The CVSS 4.0 score is 9.2 (vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N), assigned by VulnCheck as CNA, and the severity is critical. According to CISA's KEV catalog, no known active exploitation is recorded. The source does not state that this is a zero-day.

Affected products and versions

binary-parser (vendor: keichi), versions before 2.3.1 (< 2.3.1).

ProductVersionsFixed in
keichi binary-parser< 2.3.1—

Action recommended by the source

The source states that versions before 2.3.1 are affected, and the advisory title uses that version as the boundary. It links a vendor advisory on GitHub (GHSA-xmxc-6c22-m377) and two fix commits in the keichi/binary-parser repository. Readers are advised to consult the vendor advisory for upgrade guidance; the source does not detail additional mitigations.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-94

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources