{
  "id": 21408186,
  "title": "Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions",
  "url": "https://urgent.news/2026/11/23/critical-binary-parser-flaw-enables-javascript-injection-via",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-23T13:22:20.000Z",
  "source": {
    "name": "The Hacker News",
    "slug": "the-hacker-news",
    "url": "https://thehackernews.com/2026/11/critical-binary-parser-flaw-enables.html"
  },
  "original_language": "en",
  "account": "A critical security flaw has been discovered in the widely-used binary-parser library, potentially enabling remote code execution via malicious parser definitions. The vulnerability, identified as CVE-2026-134814 and rated 9.2 on the CVSS scale, affects versions of the library prior to 2.3.1. According to the National Vulnerability Database, the flaw exists due to the library's failure to validate certain user-controlled string options, which are then inserted directly into the generated JavaScript code without proper sanitization. When the parser is compiled, attackers can supply maliciously crafted values for length, lengthInBytes, key, tag, offset, or namely() alias, leading to the execution of arbitrary JavaScript within the Node.js process.\n\nThe vulnerability is not only a standalone issue but also considered an incomplete fix for another code injection vulnerability, CVE-2026-1245, which was addressed in January 2026. The latter vulnerability was caused by insufficient validation of field names and encoding parameters. Keichi Takahashi, the library's maintainer, confirmed that parsing untrusted binary data with trusted parser definitions remains unaffected. However, the updated library now validates options as identifier paths, such as \"foo\" or \"$parent.len\", and rejects expressions like \"len - 1\", requiring the use of a function instead.\n\nExperts emphasize that users must upgrade to the latest version of the library to mitigate the risk of exploitation. The flaw underscores the importance of rigorous input validation and the potential consequences of inadequate security measures in open-source software.",
  "summary": "A critical security flaw has been disclosed in the popular binary-parser library that could allow an attacker who controls parser definitions to execute arbitrary code. The vulnerability, tracked as CVE-2026-134814 (CVSS score: 9.2 / 8.1), is a case of code injection impacting binary-parser versions prior to 2.3.1. \"Binary-parser before 2.3.1 contains a code injection vulnerability that allows",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}