Skip to main content
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
Security Infrastructure
Security Infrastructure

Android 17 adds encrypted hostname handshakes and carrier 2G controls

Google says Android 17 adds support for Encrypted Client Hello, which encrypts the destination hostname in a TLS connection's opening handshake for supported apps and sites. The release also lets participating carriers disable 2G ...

Security AI
Security AI

Researchers link Aurora ransomware activity to Cursor AI agent use

CloudSEK and Gambit Security reported that operators associated with Aurora ransomware used Cursor's agentic coding tools while working against victim networks. Gambit said it observed Cursor Agent running Anthropic's Claude Sonne...

Security
Security

ServiceNow issues patches for three CVSS 10 code-injection flaws

ServiceNow said it has deployed patches across hosted instances and released hotfixes for self-hosted deployments after disclosure of four vulnerabilities in its AI platform and Now Platform. Three flaws, rated CVSS 10, allow code...

Security
Security

Berlin confirms extortion attempt after Rhysida data theft

Berlin's city administration has confirmed that cybercriminals are attempting to extort the city after Rhysida listed it on a data-leak site. The attack was discovered in mid-August, according to the report, and affected Senate de...