Repository navigation
Package download: Validate paths on non-Windows platforms - #55810
Merged
Merged
Conversation
baronfel
approved these changes
Aug 17, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR strengthens non-Windows package extraction safety by ensuring file paths derived from package metadata cannot escape the intended extraction directory, and it wires up a new localized CLI string for the resulting error.
Changes:
- Add a new localized CLI resource string for “resolved path escapes target directory”.
- Validate resolved paths (non-Windows) before applying Unix file permissions during package extraction.
- Update the XLF translation files to include the new resource key.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs | Adds non-Windows path validation before applying permissions from UnixFilePermissions.xml. |
| src/Cli/dotnet/CliStrings.resx | Adds ResolvedPathEscapesTargetDirectory resource string. |
| src/Cli/dotnet/xlf/CliStrings.zh-Hant.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.zh-Hans.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.tr.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.ru.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.pt-BR.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.pl.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.ko.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.ja.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.it.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.fr.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.es.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.de.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
| src/Cli/dotnet/xlf/CliStrings.cs.xlf | Adds ResolvedPathEscapesTargetDirectory translation entry (new). |
baronfel
approved these changes
Aug 17, 2026
joeloff
had a problem deploying
to
copilot-pat-pool
August 17, 2026 20:50 — with
GitHub Actions
Failure
Member
Author
|
/backport to release/11.0.1xx-rc1 |
Contributor
|
Started backporting to |
Member
Author
|
/backport to release/11.0.1xx |
Contributor
|
Started backporting to |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verify paths on non-Windows platforms when extracting files from packages.