Skip to content

Critical binary-parser Flaw Allows Node.js Code Execution

A critical vulnerability in the popular Node.js binary-parser library allows attackers to execute arbitrary JavaScript through malicious parser definitions; CVE-2026-134814.

The flaw could allow attackers to access sensitive data, manipulate application behavior, or execute commands with the privileges of the affected Node.js process. Exploitation requires an application to compile parser definitions influenced by untrusted input.

The vulnerability affects binary-parser versions before 2.3.1 and carries a CVSS score of 9.2 under one scoring assessment. It stems from insufficient validation of string-based parser options, including length, key, tag, and offset, which can be injected into dynamically generated JavaScript code.

Researchers identified the issue as an incomplete fix for CVE-2026-1245, an earlier code injection vulnerability patched in January 2026. Applications using trusted parser definitions to process untrusted binary data are not affected by this specific flaw.

The library's maintainer released version 2.3.1 to address the vulnerability, introducing stricter validation of parser options. Developers are urged to update and review applications that generate parser definitions from external input.

Source:

https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377

Latest