RC RANDOM CHAOS

Code Injection Flaw in binary-parser Requires Immediate Patch

· via The Hacker News

Original source

Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions

The Hacker News →

The binary-parser JavaScript library contains a critical code injection vulnerability tracked as CVE-2026-134814 (CVSS 9.2/8.1) affecting versions prior to 2.3.1. An attacker controlling parser definitions can inject arbitrary JavaScript that executes during compilation. The flaw stems from inadequate validation of several string-typed parser options—length, lengthInBytes, key, tag, offset, and alias values—which get embedded directly into generated code without sanitization.

The maintainer clarified that risk only materializes when attackers can influence parser definitions; parsing untrusted data with a trusted parser definition poses no danger. The fix restricts these options to valid identifier paths, rejecting expressions like mathematical formulas that could serve as injection vectors. This marks the second code injection issue in less than a year, following CVE-2026-1245 patched in January 2026, suggesting the previous fix left validation gaps.

All users must upgrade to version 2.3.1 immediately to close the attack surface.

Read the full article

Continue reading at The Hacker News →

This is an AI-generated summary. Read the original for the full story.