Skip to content

@launchql/protobufjs (pinned by pg-proto-parser) is missing the upstream protobufjs security fixes #405

Done

Description

@taxor03

pg-proto-parser@1.32.8 (npm latest, 2026-11-23) pins "@launchql/protobufjs": "7.2.6". That package (npm latest 7.2.6, published 2024-05-02, about 675k downloads/week) is protobufjs 7.2.6 plus the json_name patch, published from constructive-io/protobuf.js. Issues are disabled there, so we are opening this here.

Since 7.2.6, upstream protobufjs has fixed 11 advisories (7.5.5 through 7.6.3, list below), and none of those fixes are in @launchql/protobufjs. No advisory is published under the @launchql/protobufjs name, so npm audit and SCA tools do not flag it for anyone who installs it.

pg-proto-parser only parses the trusted pg_query.proto, and we did not find an exploit path through pg-proto-parser itself. The concern is the fork's own API (parse, Root.fromJSON, Type.decode/toObject), which anyone who installs @launchql/protobufjs can import. #376 (merged 2026-11-08) made pg-proto-parser a devDependency of @pgsql/traverse so downstream projects stop installing the fork through it. pg-proto-parser itself still depends on the fork at runtime.

Suggested fix: either rebase the json_name patch onto protobufjs >= 7.6.3 (latest 7.x is 7.6.6), publish a new @launchql/protobufjs and bump the pin, or move pg-proto-parser to upstream protobufjs and npm deprecate @launchql/protobufjs. In both cases, a GitHub advisory that names @launchql/protobufjs (affected <= 7.2.6) would let npm audit warn current users.

Advisories fixed upstream after 7.2.6 (11)

For CVE-2026-41242, the src/ entry uses the external @protobufjs/codegen, and its 2.0.5 release also sanitises function names. The dist/ bundles inline codegen 2.0.4. CVE-2026-44288 applies only to the dist/ bundles.

Static check (2026-11-25):

npm pack @launchql/protobufjs@7.2.6 protobufjs@7.6.3
mkdir f u; tar xzf launchql-protobufjs-7.2.6.tgz -C f; tar xzf protobufjs-7.6.3.tgz -C u
grep -c recursionLimit f/package/src/reader.js u/package/src/reader.js        # 7.5.6 decode depth limit
grep -c 'name = name.replace' f/package/src/type.js u/package/src/type.js     # 7.5.5 type-name filter
grep -c isUnsafeProperty f/package/src/util.js u/package/src/util.js          # 7.5.6 option-path guard
grep -c checkDepth f/package/src/namespace.js u/package/src/namespace.js      # 7.5.8 descriptor depth limit
f/package/src/reader.js:0
u/package/src/reader.js:2
f/package/src/type.js:0
u/package/src/type.js:1
f/package/src/util.js:0
u/package/src/util.js:1
f/package/src/namespace.js:0
u/package/src/namespace.js:2

Activity

  1. pyramation commented on Nov 26, 2026

    @pyramation
    Collaborator

    Thank you @taxor03 ! fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions