Skip to content

Commit ef06de1

Browse files
RoiGlinikclaude
andcommitted
add upgrade guidelines to patch-cves skill per PR review
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c9aaf1c commit ef06de1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.claude/skills/patch-cves/SKILL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ RUN apt-get install -y package-name
133133

134134
## Key Considerations
135135

136+
### Upgrade Guidelines
137+
- **Research CVEs first** - Read about each CVE online to understand affected version ranges and what versions are considered safe
138+
- **Minimum required upgrades** - Do not bump major versions unless strictly necessary to fix the CVE; prefer the smallest version bump that resolves the issue
139+
- **Prefer known stable versions** - When possible, avoid patching to a version released less than a month ago; choose the most recent stable release that is at least a month old
140+
- **Preserve version operators** - Keep the same constraint operator (`==`, `>=`, `>`, etc.) when updating version pins; switching between `>` and `>=` is acceptable only when it improves clarity
141+
136142
### Python Package CVEs
137143
- Check if vulnerability is in the installed wheel vs source
138144
- For indirect dependencies, finding the transitive source is critical

0 commit comments

Comments
 (0)