Repository navigation
Releases
Gnawky 0.5.0
A redesigned HTML report
- Claude's take up front. Once a triage exists, each finding starts with a highlighted block: the verdict, the urgency and Claude's reason, before any other detail.
- Suggested fix in its own box, right after Claude's take, with an upgrade or manual label on each fix and how many advisories each one covers.
- Easier to scan: the package name comes first and larger, with the severity, prod first and Claude's badges below it, and colored chips for the severity counts of a grouped package.
- A Claude triage panel at the top with fix now, fix soon, real, need a human and likely false positive counts.
- Styled like gnawky.dev, in dark and light mode, with the same tab icon.
Workspace report
- Starts with how the projects are linked and the fix order, then the advisories your own projects bring in, then the findings per project.
- Projects in the order to fix them: a shared project before the projects that use it, then the most urgent first. Each project shows a step number, its package manager and colored count chips.
- Click a project in the map (or in the fix order) to open its findings; one project is open at a time.
- The map lists unlinked projects in their own row and has a clear legend. The Projects table is gone, since the rest of the report shows the same information.
Fixes
- The bundled-React advisories in Next.js now share one fix line with the latest date, instead of one near-identical line per advisory. This applies to the reports, the menus, the CLI and the pre-push warning.
npm install -g gnawky@0.5.0
Full changelog: https://gnawky.dev/docs/changelog/#v0.5.0
Gnawky 0.4.2
Safer version recommendations in the package check
When npm install <pkg> or yarn add <pkg> would add a package with high or critical advisories, the package check recommends a version to install instead. Until now that came from npm audit's own suggestion, which can still be vulnerable: for axios@0.21.1 it suggested 0.21.4, which still has high advisories (they reach up to 0.31.1).
Now Gnawky picks the version itself and checks it before recommending it:
- The lowest version outside every advisory's range, never past the registry's "latest".
- Checked with a real
npm auditof that version's dependency tree. It's only recommended if no high or critical advisories are left. - When that version fails (an advisory of its own, or vulnerable dependencies), Gnawky checks the newest release of the same major and searches down for the lowest one that passes, then falls back to "latest". At most 7 audits per package, usually a few seconds.
- When lower-severity advisories have no fix yet, it still recommends a version, labelled "fixes the high/critical advisories".
- When the published versions can't be listed (offline, or a private registry that refuses it), it says so, instead of "no fixed version published".
npm install … |
Before | Now |
|---|---|---|
axios@0.21.1 |
0.21.4 (still had high advisories) | 0.34.0 |
express@4.17.1 |
"no fixed version published" | 4.22.0 |
lodash@4.17.20 |
4.18.1 | 4.18.0 |
minimist@0.0.8 |
1.2.8 | 0.2.4 |
$ npm install lodash@4.17.20
✖ 1 new package checked, 2 problem(s) (2s)
✖ HIGH lodash@4.17.20: Command Injection in lodash
✖ HIGH lodash@4.17.20: lodash vulnerable to Code Injection via `_.template` imports key names
Recommended:
lodash@4.18.0 fixes these advisories
→ npm install lodash@4.18.0
gnawky: install anyway? [y/N]
npm install -g gnawky@0.4.2
Full documentation: gnawky.dev/docs
Gnawky 0.4.1
Install the Claude Code plugin straight from GitHub
No clone needed any more. In Claude Code:
/plugin marketplace add andreiciungan/gnawky
/plugin install gnawky@gnawky-marketplace
The plugin brings its own copy of Gnawky. Install the npm package too for the terminal app and the git hooks. From a local clone, /plugin marketplace add /path/to/gnawky still works.
gnawky.dev
Gnawky has a home: gnawky.dev shows it in action with a terminal demo, and the presentation moved there too. The npm package and the plugin now link to it.
Other changes
- The plugin manifest now has an author and a homepage, and the marketplace has a description.
- No changes to how Gnawky scans or fixes.
npm install -g gnawky@0.4.1
Gnawky 0.4.0
Pre-push production warning
Before every git push, Gnawky can list the packages with critical or high advisories that ship to production, grouped by the package to upgrade. Turn it on in Settings → Pre-push production warning (setup recommends it too).
! my-app: 2 package(s) with critical/high advisories ship to production (2s)
HIGH axios 11 advisories: upgrade axios to 1.12.0 (direct dependency)
HIGH express 6 advisories: upgrade express to 4.22.3 (direct dependency)
gnawky: pushing anyway; this is a reminder, not a block.
- It never blocks. The push always goes through, also when the audit fails or the project is in offline mode.
- A fresh audit on every push, so advisories published since your last scan show up too. If the audit fails (no network, registry down), Gnawky shows the last results for the same dependencies, with their date and a note that newer advisories are missing.
- Production only: dev-only packages and ignored findings are left out, worked out the same way as the production priority in Findings.
- Every project in the repository: each folder with a lockfile tracked by git is checked, so it works in monorepos.
- Where it goes:
.husky/pre-push, yourcore.hooksPath, or.git/hooks/pre-push, with a snippet for lefthook. It reads nothing from the hook's input, so tools like git-lfs keep working. - Run it by hand with
gnawky pre-push, orgnawky pre-push --jsonfor scripts.
/gnawky:prod in Claude Code
A quick answer to "anything critical in production?": the plugin runs the same check (gnawky pre-push --json) and summarizes it in a few seconds, without a full scan. The gnawky skill uses it too when you ask about vulnerable production dependencies.
Other changes
- The hook installer handles pre-commit and pre-push, each in its own marked block that Settings removes again.
- When
npm auditfails, Gnawky now shows npm's reason instead of an empty message.
npm install -g gnawky@0.4.0
Gnawky 0.3.0
Workspaces
Run gnawky in a folder whose subfolders are projects (or gnawky workspace) to work on several projects at once.
- Pick the projects and see which ones use each other, at the versions each lockfile installs.
- Check every project's dependencies in one go, then get a report with a map of the links.
- Vulnerable packages found in more than one project are grouped per package, with the fix in each project. A guided fix order starts with the shared projects.
- Claude triage for the whole workspace, right after the scan or from the menu. Verdicts are saved in each project.
- Open a project opens it in Gnawky straight in the Findings menu, with Review & fix first. It uses the workspace's results and doesn't scan again.
gnawky workspace scan # check them all and write the workspace report
gnawky workspace report # show the last workspace scan
Production first
- Each finding records which direct dependencies bring it in, and whether it ships to production.
- Critical and high findings that ship come first in the app, the reports,
gnawky findings(--prod-only) and the triage filter. - The HTML reports, for a project and for a workspace, have an All / Production only / Dev only filter.
Claude's triage order
-
Review & fix in Claude's order is now the first option in the Findings menu. Likely false positives go last.
-
Before Review & fix, Gnawky offers a Claude triage if:
- nothing is triaged yet, or
- there are new findings that match your last triage filter.
You can turn this off in Settings.
-
The HTML reports list findings in Claude's order. A switch sorts them by production and severity instead.
Browser smoke test with Claude in Chrome
- After a dependency fix, Claude Code (with
--chrome) can open your app and check the pages you set up for the project. It reads console errors and failed requests, then writes a PASS / FAIL / PARTIAL report to.gnawky/smoke/. You still choose Keep or Undo. - You can also run it later from the main menu while you're on the fix branch. This works on
fix/upgrade-…branches Gnawky didn't make, too.
Safer fixes
- The upgrade breaks the tests: Gnawky asks whether to fix it with Claude, keep it anyway, or revert. It no longer reverts on its own.
- The tests already fail before the fix: Gnawky offers to fix them first with Claude.
- Uncommitted changes: Gnawky offers to stash them and continue. You can restore the stash afterwards, including from the main menu.
- A failed upgrade: Gnawky shows why it failed and offers Fix the failed upgrade with Claude, then checks again.
- An
audit fixthat changes nothing: reported as such. If nothing was fixed at all, you get a warning. - Apply mode: "one package at a time" is now the first choice.
Package manager detection
Some projects have more than one lockfile, for example a stale, git-ignored package-lock.json in a yarn project. Gnawky now picks the package manager from, in order:
- the
packageManagerfield in package.json - the lockfile committed to git
- the lockfile git doesn't ignore
- the most recently changed lockfile
It shows which one it chose and why. If the fixes were planned from the other package manager's audit, it asks you to scan again instead of applying them.
Gnawky 0.2.0
Grouped advisories
- Advisories that one upgrade fixes are one item in reviews and reports, so an old Next.js with dozens of advisories is one decision. See Grouped advisories.
- Gnawky counts only the advisories a suggested upgrade really fixes, and lists the rest with the version they need.
- Claude's verdicts show per package on grouped items.
Gnawky in Claude Code
- A
gnawkyskill: ask Claude in plain words to scan, report, triage, ignore or fix. - Headless commands behind it:
gnawky scan,findings,report,triageandignore. gnawky fixwithout the menus: it plans, applies, then keeps or undoes dependency fixes on a new branch.
Fixes
- When you keep a fix, Gnawky saves the GHSA and CVE IDs of the advisories it removed, as JSON and as a Markdown table for a PR or ticket.
- Fix branches are named after what they change.
npm install -g gnawky@0.2.0
Full changelog: https://gnawky.dev/docs/changelog/#v0.2.0
Gnawky 0.1.0
The first version on npm.
Scanning
npm auditand Yarn 1yarn auditfor dependencies, gitleaks for secrets and semgrep for risky code, with live progress and semgrep skipping test files.- React Server Components advisories in the React that Next.js bundles, which
npm auditcan't see. - A self-contained HTML report and a Markdown report on every scan.
- An interactive menu, and a first-run setup that detects the stack, asks online or offline, and offers to install missing tools.
Fixing
- Fix, ignore with a reason, or skip each finding. Fixes run on a new git branch with install scripts off, optionally verified with your own scripts.
- Upgrades that
npm audit fixskips, and forced sub-dependency versions with npm overrides or Yarn resolutions, with a choice of a^rangeor an exact pin.
Claude
- Claude triage: a verdict and urgency for every finding, with a choice of severities and sources, and up to 3 runs in parallel.
- A full security audit with Cloudflare's bundled security-audit skill, with its findings imported into Gnawky.
Guards
- The package check before
npm install <pkg>andyarn add <pkg>, with a recommended safe version, working with nvm lazy loading and other shell setups. - A pre-commit check that blocks commits adding vulnerable dependencies.
npm install -g gnawky@0.1.0
Full changelog: https://gnawky.dev/docs/changelog/#v0.1.0