fix-node-vuln
Use when the user asks to fix, patch or upgrade a Node.js vulnerability (e.g. 'Please fix my Node vulnerability'), the October 21, 2026 Node.js security…
от CognitionAI★ 42 звезды на GitHub
Установить fix-node-vuln в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Fix Node.js vulnerability (October 21, 2026 security release, incl. CVE-2026-111497)
Overview
Find and fix Node.js runtimes affected by the October 21, 2026 security release, which fixed 10 CVEs. Four are High, including the Brotli decoder out-of-bounds write RCE (CVE-2026-111497) and three TLS/DNS hostname issues (CVE-2026-105482, -105483, -106069). Fixed releases are 22.23.4, 24.22.1 and 26.12.1. Node 20 and older are end-of-life, get no fixes, and need a major upgrade. Inventory read-only first. Wait for approval before editing. Patch each approved repo, verify the built artifact, and open focused PRs.
What's Needed From User
- Repos or org to scan. Default: every repo connected to Devin.
- Approval of which discovered repos to patch, and whether EOL major upgrades are in scope.
- Registry and CI access needed to verify targets and run builds.
Procedure
- Search all accessible repos read-only with the git host's code search before cloning (if there is none, which is common on GitHub Enterprise Server and self-managed GitLab, shallow-clone and
rg -n --hidden --glob '!.git', since version files are dotfiles). Look for:node:and other Node base images, including multi-stage builds..nvmrc,.node-version,.tool-versions, Volta config, andactions/setup-node/CI images.- NodeSource or OS
nodejspackages. - Serverless runtime settings (Lambda
nodejs22.x, Cloud Functions, Azure Functions). - Helm/Terraform/Ansible code that installs Node.
engines.nodeas a signal.- Code that the target major is known to break (e.g. import assertions
assert {, native addons inbinding.gyp/node-gyp, removed APIs), and the repo's test command, so the gate can show upgrade risk.
- Produce one inventory table: repo, file:line, signal, current version, channel, exact/floating/digest pin, production vs build/CI-only, internet exposure if discernible, test coverage (none, thin, suite), and confidence. List repos you could not search separately.
- Mark each entry fixed, vulnerable, EOL, or unknown. For distro packages and managed runtimes, check the vendor's package changelog or advisory instead of comparing upstream version strings.
- Stop. Show the table and ask which repos to patch. List likely app-code changes for major upgrades so the user can approve them up front. Change nothing during discovery.
- Start one child session per approved repo, at most five running at once. Each child rechecks the inventory for its repo before editing.
- In each child, pick the smallest fixed target per path and confirm it exists before editing. Check against the registry or package mirror the repo's CI already uses (Artifactory, Nexus, Harbor or a cloud registry) when public hosts are blocked; if neither is reachable, mark the target unverified in the PR and let the CI build prove it.
- Exact image tag: bump to the fixed patch in the same major, keeping the variant (
-alpine,-slim,-bookworm, etc.). - Digest pin: resolve and pin the new digest.
- Floating tag within a supported major: leave the tag. Require a
--pull --no-cacherebuild and redeploy, and record the new digest. For an approved major upgrade, keep the repo's pinning style (floating stays floating, exact stays exact). - Record the multi-arch index digest for every new image, including exact tags, since the OS layer still moves.
- Version files: set the fixed patch, and keep every file that names the version consistent.
- CI
setup-nodewith a floating version (22,lts/*): addcheck-latest: true, or pin the fixed patch. Otherwise the runner's cached, older Node is used. - Managed serverless runtimes (e.g. Lambda
nodejs22.x): providers don't publish the exact patch, so check the provider's public base image (e.g.public.ecr.aws/lambda/nodejs:22) or logprocess.versionfrom the function. With Lambda's Auto runtime-update mode, AWS updates in place and a redeploy only speeds it up; with Function update or Manual mode, a redeploy or runtime-version change is required.
- Exact image tag: bump to the fixed patch in the same major, keeping the variant (
- Leave
engines.nodeunchanged unless it would exclude the new version (e.g.20.xon a 20 → 22 upgrade, which makesnpm ciwarnEBADENGINE). It doesn't install anything. - Report Node 20 and older separately with an upgrade path to 22 or 24 LTS. Make a major upgrade only with user approval, then apply the major-upgrade checks in step 9.
- Test for regressions before and after the change:
- Baseline: before editing, build the current image with
--pulland record its digest (this is the rollback target). Inside it, runnpm ci/pnpm install --frozen-lockfile/yarn install --immutable, the build script if any, and the tests. Record results so pre-existing failures aren't blamed on the upgrade. - After: repeat install, build and test inside the new production image, not on the host. If that image ships without tests or dev dependencies (multi-stage,
--omit=dev), build the test/builder stage from
- Baseline: before editing, build the current image with
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fix-node-vuln?
Use when the user asks to fix, patch or upgrade a Node.js vulnerability (e.g. 'Please fix my Node vulnerability'), the October 21, 2026 Node.js security release, CVE-2026-111497 (Brotli RCE), or end-of-life Node 20, across Docker images, .nvmrc/.tool-versions, setup-node CI, Lambda and IaC. Read-only inventory, approval gate, regression tests, focused PRs.
Как установить скилл fix-node-vuln?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fix-node-vuln запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…