| name | cve-triage |
| description | Triage and prioritize CVE findings from INFYNON package scans. Use when the user has scan results and needs to decide what to fix, defer, or handle — covers severity matrix, fix strategies, and safe version selection. |
INFYNON CVE Triage Guide
CRITICAL RULE — All Fixes Go Through infynon pkg
Never run raw upgrade or install commands to fix CVEs.
Not npm install <pkg>@<safe-version>, not pip install --upgrade, not cargo update, not any other raw package manager command.
Every fix must go through infynon pkg:
infynon pkg fix --auto — auto-fix all vulnerable packages
infynon pkg scan --fix — scan and interactively fix
infynon pkg <cmd> --auto-fix — fix during install
If you find yourself about to write a raw upgrade command — STOP. Use the infynon pkg equivalent.
You are helping the user interpret and act on CVE scan results from infynon pkg scan.
Get the Scan Results First
infynon pkg scan
infynon pkg scan --json
Severity Decision Matrix
When you see CVE findings, use this priority framework:
| Severity | CVSS | Action | Timeline |
|---|
| CRITICAL | 9.0–10.0 | Fix immediately — block deploy | Now |
| HIGH | 7.0–8.9 | Fix before next release | Within 24h |
| MEDIUM | 4.0–6.9 | Schedule fix in current sprint | Within 1 week |
| LOW | 0.1–3.9 | Fix at next dependency update | Next sprint |
| INFORMATIONAL | 0.0 | Review, likely ignore | Backlog |
Fix Commands — By Severity
Fix CRITICAL + HIGH immediately
infynon pkg scan --json | jq '.vulnerabilities[] | {package, cve_id, severity, safe_version, fix_cmd}'
infynon pkg fix --auto
infynon pkg npm install lodash@4.17.21 --strict high
infynon pkg pip install requests==2.31.0 --strict high
infynon pkg cargo add serde@1.0.196 --strict high
Upgrade to the safe version shown in scan output
Each CVE finding includes a safe_version and fix_cmd field:
{
"package": "lodash",
"cve_id": "CVE-2021-23337",
"severity": "HIGH",
"safe_version": "4.17.21",
"fix_cmd": "npm install lodash@4.17.21"
}
Use the fix_cmd through INFYNON:
infynon pkg npm install lodash@4.17.21 --strict high
Batch auto-fix
infynon pkg fix --auto
infynon pkg fix --auto --pkg-file Cargo.lock
Triage Questions to Ask
For each CRITICAL or HIGH CVE:
-
Is this package reachable from user input?
- If yes: fix now (exploitable attack surface)
- If no (build-only dep): lower priority
-
Does a safe version exist?
- Check
safe_version field in scan output
- If no safe version: consider removing the package or finding an alternative (
infynon pkg search)
-
Is this a transitive dependency?
infynon pkg why <vulnerable-package>
- If transitive: upgrade the parent package first
-
Is there a breaking change in the safe version?
infynon pkg diff <package> <current-version> <safe-version>
Handling Specific Situations
"I can't upgrade — the safe version has breaking changes"
infynon pkg diff express 4.17.0 4.18.2
infynon pkg search "http server" --ecosystem npm
infynon pkg npm install --skip-vulnerable
"I have 50 CVEs — where do I start?"
infynon pkg scan --json | jq '
.vulnerabilities
| sort_by(.severity)
| reverse
| .[] | "\(.severity) \(.package) \(.cve_id) — fix: \(.fix_cmd)"
'
Focus on:
- All CRITICAL first
- HIGH in packages exposed to user input
- MEDIUM in the same sprint
- LOW at next update cycle
"I have CVEs in dev dependencies only"
Dev dependencies (test frameworks, linters, build tools) are generally lower risk — they never run in production. Still fix them to:
- Keep your security posture clean
- Prevent toolchain compromise (supply-chain attacks)
- Avoid CI/CD pipeline exploitation
"The same CVE keeps appearing after I fix it"
infynon pkg why <package>
infynon pkg scan --pkg-file package-lock.json
Export Reports for Compliance
infynon pkg scan --output markdown
infynon pkg scan --output pdf
infynon pkg scan --output both
Reports include: package name, CVE ID, severity, description, affected version, safe version, fix command.
Set Up Automated CVE Gating in CI
After triage, lock in your accepted risk level with CI gates:
infynon pkg npm install --strict high
infynon pkg npm install --strict critical
infynon pkg npm install --strict all
Useful Audit Commands
infynon pkg audit
infynon pkg why <package>
infynon pkg outdated
infynon pkg doctor
infynon pkg diff <pkg> <v1> <v2>