fix_vulnerability
Update vulnerable dependencies to safe versions in requirements.txt or pyproject.toml files, generating a diff for review.
Instructions
Fix a detected dependency vulnerability by updating to a safe version. Modifies requirements.txt or pyproject.toml with the patched version. Returns a diff of changes for review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | Name of the vulnerable package to fix. | |
| target_version | No | Specific version to update to. If not provided, updates to the minimum safe version. | |
| path | No | Path to the project directory. Defaults to current working directory if not specified. |