1004 Commits
Author SHA1 Message Date
Patrick Meinecke 849fd5cac9 [release/v7.6.6] Update the manifest resource names for the localized resources embedded in satellite assemblies (#27921) 2026-09-01 10:38:05 -07:00
Patrick Meineckeandolprod 4a207f0b77 [release/v7.6.6] Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2684623 (#27935)
Co-authored-by: olprod <olprod@microsoft.com>
2026-09-01 11:44:24 -04:00
Patrick Meineckeandolprod f42dd06059 [release/v7.6.6] Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2674492 (#27930)
Co-authored-by: olprod <olprod@microsoft.com>
2026-09-01 00:14:28 -04:00
Patrick Meineckeandolprod d3f60dfc0b [release/v7.6.6] Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2670960 (#27929)
Co-authored-by: olprod <olprod@microsoft.com>
2026-09-01 00:14:18 -04:00
Patrick Meineckeandolprod f8ddae5c2e [release/v7.6.6] Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2660148 (#27923)
Co-authored-by: olprod <olprod@microsoft.com>
2026-08-31 21:58:24 -04:00
Patrick MeineckeandDongbo Wang 2205f8e578 [release/v7.6.6] Fix the W3C URIs in .resx resource files (#27917)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2026-08-31 21:16:42 -04:00
Patrick Meineckeandolprod 10336c6cd3 [release/v7.6.6] Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2652124 (#27918)
Co-authored-by: olprod <olprod@microsoft.com>
2026-08-31 21:16:27 -04:00
Patrick MeineckeandDongbo Wang 581679c69a [release/v7.6.6] Prepare for onboarding PowerShell to the Native2Native localization pipeline (#27916)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2026-08-31 21:15:50 -04:00
Patrick Meinecke e209aea1d0 Merged PR 41050: [release/v7.6.5] Strip authorization on redirect if -PreserveAuthorizationOnRedirect is not specified
<!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->

# PR Summary

Web commands currently preserve `Authorization` headers when either the `FollowRelLinks` parameter or the `PreserveHttpMethodOnRedirect` parameter is specified. This should only occur when `PreserveAuthorizationOnRedirect` is specified. This change fixes that.

<!-- Summarize your PR between here and the checklist. -->

## PR Context

<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->

## PR Checklist

- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
  - Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] This PR is ready to merge. If this PR is a work in progress, please open this as a [Draft Pull Request and mark it as Ready to Review when it is ready to merge](https://docs.github.com/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests).
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
  - [ ] None
  - **OR**
  - [x] This is a breaking change, but cannot be made experimental.
  - [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
    - [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
  - [ ] Not Applicable
  - **OR**
  - [x] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
    - [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
  - [ ] N/A or can only be tested interactively
  - **OR**
  - [x] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)

----
#### AI description  (iteration 1)
#### PR Classification
Security fix to change default behavior of web cmdlets to strip authorization headers on redirects, requiring explicit opt-in to preserve them.

#### PR Summary
This PR addresses a security issue by changing the default behavior of `Invoke-WebRequest` and `Invoke-RestMethod` to strip authorization headers when following redirects, unless the `-PreserveAuthorizationOnRedirect` parameter is explicitly specified.

- `WebRequestPSCmdlet.Common.cs`: Modifi...
2026-08-10 21:38:39 +00:00
Patrick Meinecke cebd25f72a Merged PR 41049: [release/v7.6.5] Fix potential path traversal with Invoke-WebRequest and -OutFile
<!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->

# PR Summary

When `Invoke-WebRequest -OutFile` specifies a directory, a file name will be determined by the last URI segment. If redirected to a file with encoded slash characters, `Invoke-WebRequest` will decode the characters and call `Path.Combine` without any validation.

This change simply calls `Path.GetFileName` after decoding to get strip away any leading path elements.

<!-- Summarize your PR between here and the checklist. -->

## PR Context

<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->

## PR Checklist

- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
  - Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] This PR is ready to merge. If this PR is a work in progress, please open this as a [Draft Pull Request and mark it as Ready to Review when it is ready to merge](https://docs.github.com/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests).
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
  - [x] None
  - **OR**
  - [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
    - [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
  - [x] Not Applicable
  - **OR**
  - [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
    - [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
  - [x] N/A or can only be tested interactively
  - **OR**
  - [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)

----
#### AI description  (iteration 1)
#### PR Classification
Security bug fix to prevent path traversal vulnerabilities in the `Invoke-WebRequest` cmdlet when using the `-OutFile` parameter.

#### PR Summary
This PR fixes a potential path traversal vulnerability by sanitizing the filename extracted from the URL before joining it with the output directory path. The fix ensures that malicious path traversal sequences in the URL (e.g., `../`) cannot be used to write files out...
2026-08-10 21:38:35 +00:00
PowerShell Team Bot d384bb89b3 [release/v7.6] Update v7.6 release branch to use .NET SDK 10.0.201 (#27041) 2026-03-16 14:22:38 -07:00
PowerShell Team Bot 5ea8cb48cf [release/v7.6] Update branch for release (#26989) 2026-03-10 23:27:36 +00:00
PowerShell Team Bot c04c9b65cf [release/v7.6] Update branch for release (#26779) 2026-02-10 16:15:28 -05:00
Dongbo Wang 0a912658a4 [release/v7.6] Move PowerShell build to depend on .NET SDK 10.0.102 (#26717) 2026-01-21 13:31:55 -08:00
Dongbo Wang 9c844308b0 [release/v7.6] Move PowerShell build to depend on .NET SDK 10.0.101 (#26716) 2026-01-21 12:49:24 -08:00
Aditya PatwardhanandPowerShell Team Bot dcccde9e0e [release/v7.6] [master] Update branch for release (#26600)
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com>
2025-12-10 13:15:05 -08:00
Travis Plunk 9532f85fe4 [release/v7.6] Make some experimental features stable (#26490) 2025-11-20 14:57:21 -08:00
e9af4e7710 [release/v7.6] Update outdated package references (#26471)
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2025-11-19 10:01:24 -08:00
Matěj KafkaandDongbo Wang 551a0fe642 Fix ConvertFrom-Json to ignore comments inside array literals (#14553) (#26050)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2025-09-23 10:29:11 -07:00
PowerShell Team Bot f08e75899c Update outdated package references (#26069) 2025-09-22 16:52:58 -07:00
PowerShell Team BotandDongbo Wang a1b417691f Move PowerShell build to use .NET SDK 10.0.100-rc.1 (#26027)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2025-09-10 14:55:07 -07:00
Anam Navied 1e46d89c63 Add Codeql Suppressions (#25943) 2025-09-03 11:14:44 -07:00
xtqqczze 5b72eb5200 Seal internal types in Microsoft.PowerShell.Commands.Utility (#25892) 2025-08-25 10:22:20 +05:00
PowerShell Team Bot 2fb12a31f3 Update PowerShell to use .NET SDK v10-preview.7 (#25876) 2025-08-20 14:38:09 -07:00
Dongbo Wang f4a452ea3c Update PSRP protocol to deprecate session key exchange between newer client and server (#25774) 2025-08-06 22:54:11 +00:00
PowerShell Team Bot 5de50164c9 Update to .NET 10 Preview 6 (#25828) 2025-08-06 22:28:13 +00:00
Justin Grote 8185a7f23e Improve verbose and debug logging level messaging in web cmdlets (#25510) 2025-06-11 09:50:26 +05:00
PowerShell Team BotandDongbo Wang 82f016ffe2 Move to .NET 10 preview 4 and update package references (#25602)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2025-06-03 09:50:33 -07:00
PowerShell Team Bot af831cde4a Update outdated package references (#25506) 2025-05-04 20:45:27 +00:00
Justin Grote 9153f8a0e0 Improve debug logging of Web cmdlet request and response (#25479) 2025-05-01 17:27:35 +05:00
PowerShell Team Bot e4d602026b Update outdated package references (#25392) 2025-04-21 22:24:27 +00:00
Armaan Mcleod 5c8b174709 Refactor Tooltip/ListItemText mapping to use CompletionDisplayInfoMapper delegate (#25395) 2025-04-21 17:44:01 +05:00
Armaan Mcleod 92c6f7a632 Add single/double quote support for Join-String Argument Completer (#25283) 2025-04-21 09:48:33 +05:00
68a5fdba3d Update to .NET 10.0.100-preview.3 (#25358)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2025-04-17 20:27:30 +00:00
Anam Navied 4e3875c378 Add CodeQL suppressions for PowerShell intended behavior (#25359) 2025-04-15 01:52:00 +00:00
PowerShell Team BotandTravis Plunk 94a37db4cb Update .NET SDK to 10.0.100-preview.2 (#25225)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-03-24 21:06:42 +00:00
Aditya Patwardhan eef334de1b Bump .NET to 10 preview.1 (#25154) 2025-03-19 15:48:08 -07:00
PowerShell Team BotandTravis Plunk 6d6515b7e4 Update branch for release - Transitive - false - none (#24995)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-02-12 12:21:42 -06:00
xtqqczze 1790f3a3e9 Remove redundant Attribute suffix (#24940) 2025-02-07 22:18:29 +05:00
PowerShell Team BotandAditya Patwardhan 9935033b0f Update outdated package references (#24758)
* Update package references

* Update cgmanifest

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2025-01-16 20:55:30 +00:00
PowerShell Team Bot e7311eb08c Update outdated package references (#24580) 2025-01-06 14:03:20 -08:00
Brendan Burns 90b0149805 Fix a bug in how Write-Host handles XmlNode object (#24669) 2024-12-13 10:24:02 -08:00
PowerShell Team Bot c2f1ff00ae Bump .NET 9 and dependencies (#24573) 2024-11-12 15:57:38 -08:00
PowerShell Team BotandTravis Plunk 7db6a70b56 [master] Update branch for release (#24534)
* Update package references

* Update cgmanifest

* Update IsolatedModule.Tests.ps1

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2024-10-31 15:15:28 -07:00
Aditya Patwardhan 4b40e5f60e Revert "Update package references (#24414)" (#24532)
This reverts commit 01ae632636.
2024-10-31 13:29:49 -07:00
PowerShell Team Bot 01ae632636 Update package references (#24414) 2024-10-11 19:08:14 +00:00
Jordan Borean 3e3d83cfa4 Treat large Enum values as numbers in ConvertTo-Json (#20999) 2024-09-19 17:24:20 +00:00
Aditya Patwardhan 9303de597d Bump .NET 9 to 9.0.100-rc.1.24452.12 (#24273) 2024-09-12 12:10:07 -07:00
MartinGC94 22e8fed058 Write type data to the pipeline instead of collecting it (#24236) 2024-09-05 10:01:18 +05:00
Steve Lee 59bce18372 Fix Get-FormatData to not cast a type incorrectly (#21157) 2024-08-26 13:32:09 -07:00