Saturday, April 18, 2026
HomeTechnologyEssential flaw in Protobuf library allows JavaScript code execution

Essential flaw in Protobuf library allows JavaScript code execution

Essential flaw in Protobuf library allows JavaScript code execution

Proof-of-concept exploit code has been printed for a important distant code execution flaw in protobuf.js, a extensively used JavaScript implementation of Google’s Protocol Buffers.

The device is very common within the Node Package deal Supervisor (npm) registry, with a mean of almost 50 million weekly downloads. It’s used for inter-service communication, in real-time purposes, and for environment friendly storage of structured information in databases and cloud environments.

In a report on Friday, utility safety firm Endor Labs says that the distant code execution vulnerability (RCE) in protobuf.js is attributable to unsafe dynamic code era.

Wiz

The safety subject has not obtained an official CVE quantity and is at the moment being tracked as GHSA-xq3m-2v4x-88gg, the identifier assigned by GitHub.

Endor Labs explains that the library builds JavaScript capabilities from protobuf schemas by concatenating strings and executing them by way of the Operate() constructor, however it fails to validate schema-derived identifiers, reminiscent of message names.

This lets an attacker provide a malicious schema that injects arbitrary code into the generated perform, which is then executed when the appliance processes a message utilizing that schema.

This opens the trail to RCE on servers or purposes that load attacker-influenced schemas, granting entry to setting variables, credentials, databases, and inner methods, and even permitting lateral motion throughout the infrastructure.

The assault might additionally have an effect on developer machines if these load and decode untrusted schemas domestically.

The flaw impacts protobuf.js variations 8.0.0/7.5.4 and decrease. Endor Labs recommends upgrading to eight.0.1 and seven.5.5, which deal with the difficulty.

The patch sanitizes sort names by stripping non-alphanumeric characters, stopping the attacker from closing the artificial perform. Nevertheless, Endor feedback {that a} longer-term repair could be to cease round-tripping attacker-reachable identifiers by way of Operate in any respect.

Endor Labs is warning that “exploitation is easy,” and that the minimal proof-of-concept (PoC) included within the safety advisory displays this. Nevertheless, no lively exploitation within the wild has been noticed to this point.

The vulnerability was reported by Endor Labs researcher and safety bug bounty hunter Cristian Staicu on March 2, and the protobuf.js maintainers launched a patch on  GitHub on March 11. Fixes to the npm packages have been made obtainable on April 4 for the 8.x department and on April 15 for the 7.x department.

Other than upgrading to patched variations, Endor Labs additionally recommends that system directors audit transitive dependencies, deal with schema-loading as untrusted enter, and like precompiled/static schemas in manufacturing.

AI chained 4 zero-days into one exploit that bypassed each renderer and OS sandboxes. A wave of recent exploits is coming.

On the Autonomous Validation Summit (Could 12 & 14), see how autonomous, context-rich validation finds what’s exploitable, proves controls maintain, and closes the remediation loop.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments