Repository navigation
Description
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)
- CVE-2026-41242 / GHSA-xq3m-2v4x-88gg: protobufjs has an arbitrary code execution issue (critical; fixed in 8.0.1 / 7.5.5 / 6.11.6)
- CVE-2026-44289 / GHSA-685m-2w69-288q: Denial of service through unbounded protobuf recursion (high; fixed in 7.5.6 / 8.0.2)
- CVE-2026-44290 / GHSA-jvwf-75h9-cwgg: Process-wide denial of service through unsafe option paths (high; fixed in 7.5.6 / 8.0.2)
- CVE-2026-44291 / GHSA-75px-5xx7-5xc7: Code generation gadget after prototype pollution (high; fixed in 7.5.6 / 8.0.2)
- CVE-2026-44292 / GHSA-fx83-v9x8-x52w: Prototype injection in generated message constructors (medium; fixed in 7.5.6 / 8.0.2)
- CVE-2026-44293 / GHSA-66ff-xgx4-vchm: Code injection through bytes field defaults in generated toObject code (high; fixed in 7.5.6 / 8.0.2)
- CVE-2026-44294 / GHSA-2pr8-phx7-x9h3: Denial of service from crafted field names in generated code (medium; fixed in 7.5.6 / 8.0.2)
- CVE-2026-44288 / GHSA-q6x5-8v7m-xcrf: protobufjs has overlong UTF-8 decoding (medium; fixed in 7.5.6 / 8.0.2)
- CVE-2026-45740 / GHSA-jggg-4jg4-v7c6: Denial of Service via unbounded recursive JSON descriptor expansion (medium; fixed in 7.5.8 / 8.2.0)
- CVE-2026-48712 / GHSA-wcpc-wj8m-hjx6: Denial of service through unbounded Any expansion during JSON conversion (high; fixed in 7.6.1 / 8.4.1)
- CVE-2026-54269 / GHSA-f38q-mgvj-vph7: Schema-derived names can shadow runtime-significant properties (medium; fixed in 7.6.3 / 8.6.0)
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 limitf/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
pyramation commentedon Nov 26, 2026
Thank you @taxor03 ! fixed :)