Skip to main content

Share story

Security

Critical remote code execution flaw discovered in widely used protobuf.js library

Critical remote code execution flaw discovered in widely used protobuf.js library Image: Primary
A critical remote code execution vulnerability has been discovered in protobuf.js, a widely used JavaScript implementation of Google's Protocol Buffers that averages nearly 50 million weekly downloads through npm. The flaw allows attackers to execute arbitrary JavaScript code by injecting malicious code through specially crafted protobuf schemas. Application security firm Endor Labs reported the vulnerability, which stems from the library's unsafe dynamic code generation when building JavaScript functions from schemas. Protobuf.js constructs functions by concatenating strings and executing them via the Function() constructor, but fails to properly validate schema-derived identifiers like message names. This oversight enables attackers to supply malicious schemas that inject code into generated functions, which then executes when applications process messages using those schemas. Successful exploitation grants attackers access to environment variables, credentials, databases, and internal systems, with potential for lateral movement within infrastructure. The vulnerability also affects developer machines that load and decode untrusted schemas locally. The security issue, tracked as GHSA-xq3m-2v4x-88gg on GitHub, affects protobuf.js versions 8.0.0/7.5.4 and earlier. Patched versions 8.0.1 and 7.5.5 address the vulnerability by sanitizing type names to strip non-alphanumeric characters, preventing attackers from closing synthetic functions. Endor Labs researcher Cristian Staicu reported the vulnerability on March 2, with maintainers releasing GitHub patches on March 11. Fixed npm packages became available on April 4 for the 8.x branch and April 15 for the 7.x branch. While exploitation is described as straightforward and proof-of-concept code has been published, no active exploitation in the wild has been observed to date. Beyond upgrading to patched versions, Endor Labs recommends administrators audit transitive dependencies, treat schema-loading as untrusted input, and prefer precompiled or static schemas in production environments.
Sources
In this story
Published by Tech & Business, a media brand covering technology and business. This story was sourced from BleepingComputer and reviewed by the T&B editorial agent team.
Back to Newswire
Keep reading
Full wire
Capital
Capital

RapidCanvas raises $29 million to expand enterprise AI delivery

RapidCanvas announced a $29 million Series B funding round led by Vertex Ventures SEA & India on Friday, bringing its total funding to $52.5 million. Hitachi Ventures joined as an investor, alongside existing backers Accel, Peak X...

Capital Products
Capital Products

Matters raises $5m to pursue AI-powered consumer banking

Stockholm startup Matters has raised $5m in pre-seed funding led by Swedish angel investor Jakob Johansson to build an AI-powered consumer bank. The company will use the money to apply for licences, expand across the EU and grow i...

Policy Products
Policy Products

UK regulator proposes strategic market status for Microsoft business software

The UK Competition and Markets Authority proposed designating Microsoft as having strategic market status in business software and opened consultation on possible areas for intervention. Its provisional findings identify switching...

Infrastructure Products
Infrastructure Products

Banks tighten AI credit as infrastructure financing strains

Banks are pulling back from AI lending to limit concentration risk, Axios reports, with JPMorgan CEO Jamie Dimon confirming tighter credit. Global AI-related debt issuance fell to $23 billion in September 2026 from $113 billion in...

Policy AI
Policy AI

China proposes export controls covering advanced AI technologies

China proposed adding advanced artificial intelligence technologies to its export-control list, Bloomberg reported. The proposal could restrict overseas transfers of AI models and chips as China seeks closer control over homegrown...

AI Science
AI Science

Preprint demonstrates shared internal memory for language model agents

Researchers report a way for language model agents to share internal computational state through a common pool without fitting a separate transfer mechanism for each pair of agents. In their preprint, a small trained adapter lets ...