PROTOBUFJS · CVE-2026-41242 · Package
FIX → 8.0.1 · 7.5.5 · 6.11.6
protobufjs turns schema type names from a loaded protobuf definition or JSON descriptor into generated JavaScript without enough validation. An attacker who controls that schema can run arbitrary JavaScript inside the process that loads it.
first public Apr 16, 2026 · 2 sources
Running Protobufjs? Find out in 2 minutes.
Tell InfraStack what you run. It checks this one, and every next one, against your stack.
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
Exposure requires that the application lets an attacker supply or influence a protobuf definition or JSON descriptor and then loads it through protobufjs reflection APIs such as descriptor loading, and then reaches the affected generated-code path, for example by operating on the loaded type. Applications that only decode messages with trusted, application-defined schemas are not directly affected.
Not affected if managed-hosting, no-descriptor-loading, trusted-schemas-only
Who cares cwe-94, grpc, node.js, npm, protobufjs
npm ls protobufjs in each project to see which version is installed..proto files or JSON descriptors from users, uploads, or other untrusted sources.Upgrade to 8.0.1 · 7.5.5 · 6.11.6
8.0.1 for the 8.0.x line7.5.5 for the 7.x line6.11.6 for versions below 6.11.6protobufjs could execute generated JavaScript code derived from protobuf schema metadata. When loading a crafted JSON descriptor, schema-controlled type names and type references could reach runtime code generation without sufficient validation.
An attacker who can provide a malicious protobuf definition or JSON descriptor to an application may be able to execute arbitrary JavaScript in the context of the process using protobufjs.
This requires control over the protobuf schema or descriptor being loaded. Applications that only decode messages using trusted, application-defined schemas are not directly affected by this issue.
Do not load protobuf definitions or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate or restrict them before loading and run schema processing in an isolated environment.
This page as .md · .json · in your agent: get_signal("CVE-2026-41242") · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.