Repository navigation
npm: kwetsbaarheden opgelost en allowScripts voor esbuild en koffi - #18
Merged
Merged
Conversation
…ker-advisories op) vitest 3.x hangt aan tinypool <=2.1.1 (GHSA-5gmw-xhrv-c9v3, GHSA-85c8-ppgw-ccpr, critical) en @vitest/mocker <=4.1.11 (GHSA-82fw-gwwq-j7x9, GHSA-qxg6-89mg-rqv8). vitest 4 gebruikt geen tinypool meer en ondersteunt nog Node 20 (vitest 5 vraagt Node >=22.12, wij beloven >=20). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QBvjDhSnMukoda9hWAjybq
tsup 8.5.1 vraagt esbuild ^0.27 en kreeg 0.27.7, dat onder GHSA-g7r4-m6w7-qqqr valt (bestanden lezen via de dev-server op Windows). Een override laat tsup de esbuild uit de root gebruiken. tsup 9 lost het ook op, maar vraagt Node >=22.18; dat is een aparte keuze. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QBvjDhSnMukoda9hWAjybq
…pts standaard) Nieuwere npm-versies voeren install-scripts van afhankelijkheden alleen uit als ze in allowScripts staan. esbuild (postinstall: controleert de binary) en koffi (install: controleert de prebuild en bouwt anders zelf, nodig voor PC/SC) mogen. Zonder versie, zodat een update niet opnieuw blokkeert. De eigen workspace @dafkedd/eid valt er niet onder: workspaces mogen altijd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QBvjDhSnMukoda9hWAjybq
Nieuwere npm-versies blokkeren ook bij gebruikers de postinstall van @dafkedd/eid (Claude-skill) en het install-script van koffi. Getest met npm 12.2.3 op een npm pack van het pakket: beide staan in de waarschuwing; na approve + rebuild staat de skill er. koffi laadt ook zonder script, omdat de binary uit @koromix/koffi-<platform> komt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QBvjDhSnMukoda9hWAjybq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Davey · project thread
Wat
npm igaf 3 kwetsbaarheden (2 critical) en blokkeerde de install-scripts van esbuild en koffi. Na deze PR:npm audit→ 0 vulnerabilities, geen blokkeer-waarschuwing meer.build(deps): vitest 4.1.12audit fix --force: dat zou vitest 5 zetten, die Node >=22.12 vraagt terwijl wij >=20 beloven. vitest 4 heeft geen tinypool meer en ondersteunt Node 20.build(deps): tsup gebruikt esbuild 0.28.2tsup → esbuild: $esbuild. tsup 8.5.1 trok esbuild 0.27.7 binnen (GHSA-g7r4-m6w7-qqqr).npm audit fixzou naar 0.27.2 teruggaan; tsup 9 vraagt Node >=22.18.build: allowScriptsesbuildenkoffimogen hun install-script draaien (zonder versiepin, zodat updates niet opnieuw blokkeren). De workspace@dafkedd/eidvalt er hier niet onder: workspaces mogen altijd.docs(NL + EN)@dafkedd/eid(Claude-skill) en koffi. Uitgelegd wat elk script doet, wat er gebeurt als het niet draait, en hoe je het toestaat.Getest
npm ci, typecheck,npm test(50 + 338 tests),npm run build: groen.npm ciwerkt ook met npm 10 (CI).npm packvanpackages/eidin een leeg project met npm 12: beide scripts geblokkeerd; nanpm install-scripts approve @dafkedd/eid koffi+npm rebuildstaat.claude/skills/dafkedd-eid/SKILL.mder. koffi laadt ook zonder script (binary via@koromix/koffi-<platform>).Generated by Claude Code