Skip to content

CVE-2026-134814 binary-parser before 2.3.1 Code Injection via String-Typed Parser Options

CriticalCVSS 9.2
Published
Updated
Exploit status
No public exploit known

Description

binary-parser before 2.3.1 contains a code injection vulnerability that allows attackers controlling parser definitions to inject JavaScript through string-typed options passed unvalidated by Context.generateOption(). Attackers can supply crafted length, lengthInBytes, key, tag, offset, or namely() alias values to execute arbitrary JavaScript in the Node.js process when the parser is compiled.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm binary-parser < 2.3.1 2.3.1 Fixed

Affected products

ProductAffected versionsFixed in
npm binary-parser < 2.3.1 2.3.1

References