Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize direct download #13313

Merged
merged 5 commits into from
Feb 20, 2024
Merged

Sanitize direct download #13313

merged 5 commits into from
Feb 20, 2024

Conversation

honnibal
Copy link
Member

@honnibal honnibal commented Feb 8, 2024

The 'direct' option in 'spacy download' is supposed to only download from our model releases repository. However, users were able to pass in a relative path, allowing download from arbitrary repositories. This meant that a service that sourced strings from user input and which used the direct option would allow users to install arbitrary packages.

@svlandeg svlandeg added enhancement Feature requests and improvements feat / cli Feature: Command-line interface labels Feb 8, 2024
spacy/cli/download.py Outdated Show resolved Hide resolved
@honnibal honnibal merged commit 0518c36 into master Feb 20, 2024
22 checks passed
@svlandeg svlandeg deleted the sanitize-direct-download branch February 27, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and improvements feat / cli Feature: Command-line interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants