Skip to content

Pin @cantoo/pdf-lib to 2.6.5 in pdf-server - #792

Merged
ochafik merged 1 commit into
mainfrom
fix/pin-pdf-lib-2.6.5
Sep 25, 2026
Merged

ochafik merged 1 commit into
mainfrom
fix/pin-pdf-lib-2.6.5

Conversation

@ochafik

@ochafik ochafik commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

@modelcontextprotocol/server-pdf declares @cantoo/pdf-lib: ^2.6.5, so a fresh install resolves 2.11.x. Nothing in this repository tests that: the lockfile and CI use 2.6.5. 2.11.0 also added dependencies with open-ended ranges (culori >=4, node-html-better-parser), and supply-chain scanning of @cantoo/pdf-lib 2.11.0 and culori 4.0.2 reports findings.

This pins the exact version the lockfile already uses, 2.6.5. Its dependency tree (13 packages) passes the same scans. It is the same idea as #789 for pdfjs-dist: published packages should install what CI tests.

Test plan

  • The diff is one line in examples/pdf-server/package.json and the matching workspace entry in package-lock.json. The lockfile already resolved @cantoo/pdf-lib@2.6.5, so no installed code changes.
  • npm ls resolves @cantoo/pdf-lib@2.6.5; no non-npmjs URLs in the lockfile.
  • The pre-commit build (build:all, prettier) passes; the full suite is left to CI on this PR.

The ^2.6.5 range lets a fresh install of @modelcontextprotocol/server-pdf resolve @cantoo/pdf-lib 2.11.x, which the lockfile and CI never test. 2.11.0 also added new dependencies with open-ended ranges (culori >=4, node-html-better-parser), and the supply-chain checks on 2.11.0 and culori 4.0.2 report findings. The lockfile and CI already use 2.6.5, whose dependency tree passes those checks, so pin exactly that version.
@pkg-pr-new

pkg-pr-new Bot commented Sep 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/ext-apps

npm i https://pkg.pr.new/@modelcontextprotocol/ext-apps@792

@modelcontextprotocol/server-basic-preact

npm i https://pkg.pr.new/@modelcontextprotocol/server-basic-preact@792

@modelcontextprotocol/server-basic-react

npm i https://pkg.pr.new/@modelcontextprotocol/server-basic-react@792

@modelcontextprotocol/server-basic-solid

npm i https://pkg.pr.new/@modelcontextprotocol/server-basic-solid@792

@modelcontextprotocol/server-basic-svelte

npm i https://pkg.pr.new/@modelcontextprotocol/server-basic-svelte@792

@modelcontextprotocol/server-basic-vanillajs

npm i https://pkg.pr.new/@modelcontextprotocol/server-basic-vanillajs@792

@modelcontextprotocol/server-basic-vue

npm i https://pkg.pr.new/@modelcontextprotocol/server-basic-vue@792

@modelcontextprotocol/server-budget-allocator

npm i https://pkg.pr.new/@modelcontextprotocol/server-budget-allocator@792

@modelcontextprotocol/server-cohort-heatmap

npm i https://pkg.pr.new/@modelcontextprotocol/server-cohort-heatmap@792

@modelcontextprotocol/server-customer-segmentation

npm i https://pkg.pr.new/@modelcontextprotocol/server-customer-segmentation@792

@modelcontextprotocol/server-debug

npm i https://pkg.pr.new/@modelcontextprotocol/server-debug@792

@modelcontextprotocol/server-lazy-auth

npm i https://pkg.pr.new/@modelcontextprotocol/server-lazy-auth@792

@modelcontextprotocol/server-map

npm i https://pkg.pr.new/@modelcontextprotocol/server-map@792

@modelcontextprotocol/server-pdf

npm i https://pkg.pr.new/@modelcontextprotocol/server-pdf@792

@modelcontextprotocol/server-scenario-modeler

npm i https://pkg.pr.new/@modelcontextprotocol/server-scenario-modeler@792

@modelcontextprotocol/server-shadertoy

npm i https://pkg.pr.new/@modelcontextprotocol/server-shadertoy@792

@modelcontextprotocol/server-sheet-music

npm i https://pkg.pr.new/@modelcontextprotocol/server-sheet-music@792

@modelcontextprotocol/server-system-monitor

npm i https://pkg.pr.new/@modelcontextprotocol/server-system-monitor@792

@modelcontextprotocol/server-threejs

npm i https://pkg.pr.new/@modelcontextprotocol/server-threejs@792

@modelcontextprotocol/server-transcript

npm i https://pkg.pr.new/@modelcontextprotocol/server-transcript@792

@modelcontextprotocol/server-video-resource

npm i https://pkg.pr.new/@modelcontextprotocol/server-video-resource@792

@modelcontextprotocol/server-wiki-explorer

npm i https://pkg.pr.new/@modelcontextprotocol/server-wiki-explorer@792

commit: 0acdcfe

@ochafik
ochafik merged commit c9e00bd into main Sep 25, 2026
21 checks passed
@ochafik ochafik mentioned this pull request Sep 25, 2026
ochafik added a commit that referenced this pull request Sep 25, 2026
Patch release that pins @cantoo/pdf-lib to 2.6.5 for @modelcontextprotocol/server-pdf (#792) and moves solid-js to 1.9.15 for @modelcontextprotocol/server-basic-solid along with the other npm audit fixes (#793), so a fresh install of every published package resolves a dependency tree that passes supply-chain and vulnerability scans.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant