npm package report

Is protobufjs safe?

17 known vulnerabilities, worst severity CRITICAL.

// reach

2 direct dependencies

none carry a known advisory

    140 packages depend on it

    an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai model usage

    Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


    cvss
    9.8
    critical

    CVSS v3.1 base score out of 10

    epss
    0.77%
    medium

    chance of exploitation in 30 days, 56th percentile of all CVEs

    xyz score
    5.2
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-xq3m-2v4x-88gg, the advisory selected below

    // 17 advisories

    GHSA-xq3m-2v4x-88gg

    CRITICALGitHub ratingCVE-2026-41242
    // summary

    protobufjs 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.

    // impact

    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.

    // preconditions
    • The application must allow an attacker to control or influence a protobuf definition or JSON descriptor.
    • The application must load that definition through protobufjs reflection APIs such as descriptor loading.
    • The affected generated-code path must be reached, for example by performing an operation on the loaded type.
    // workarounds

    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.

    // cvss v3.1 vector

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

    Attack vector
    Network
    Attack complexity
    Low
    Privileges required
    None
    User interaction
    None
    Scope
    Unchanged
    Confidentiality
    High
    Integrity
    High
    Availability
    High

    Checked 2026-11-06 at 22:03 UTC. The most recent advisory here was published 2026-07-20. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.