- nodejs
- npm
- rce
- code-injection
- sploitus
- cve-2026-134814
news
Node.js binary-parser String-Typed Code Injection (CVE-2026-134814)
Critical up to 9.2binary-parser < 2.3.1 fails to sanitize string-typed options in Context.generateOption(), allowing JavaScript code injection (CVSS 4.0 9.2, CVSS 3.1 8.1) when untrusted parser definitions are compiled. Not in CISA KEV.
- Record
- CVE-2026-134814
- Score
- Critical up to 9.2
- Status
- Not KEVChecked, not listed
- Organization
- binary-parser
Summary
Disclosed on 11 November 2026 (GHSA-xmxc-6c22-m377, published as CVE-2026-134814 on 22 November and trending on Sploitus by 26 November), this JavaScript code injection flaw affects the Node.js binary-parser npm package prior to 2.3.1. It closes a gap left by an earlier January 2026 fix (CVE-2026-1245 / 2.3.0), which validated field names and encodings but left other string-typed schema fields unvalidated during dynamic parser code generation.
Scoring carries two widely cited metrics from VulnCheck CNA: CVSS 3.1 8.1 High (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and CVSS 4.0 9.2 Critical (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H). Not in CISA KEV catalog 2026.11.25.
Exposure boundaries
- Vulnerable path:
Context.generateOption()interpolates string-typed option fields—specificallylength,lengthInBytes,key,tag,offset, andnamely()aliases—directly into dynamically generated JavaScript during parser compilation. - Not vulnerable if static: Applications that compile fixed, developer-authored parser schemas and feed untrusted binary payloads into them are not affected. Exploitation requires untrusted user input or external JSON schemas controlling the parser definition itself (
<= 2.3.0). 2.3.1compatibility note: The patch validates string options as dotted/bracket identifier paths (such asfooor$parent.len), so existing schemas using inline string expressions like"len - 1"are rejected and must pass a function instead.
Operator actions
- Upgrade
binary-parserto2.3.1or later (npm ls binary-parseracross lockfiles) and replace any string-expression options (e.g.,"len - 1") with callback functions. - Treat any binary schema or parser DSL accepted from clients, plugins, or external APIs as untrusted code and reject dynamic parser definitions originating outside application source.