Source: BleepingComputer
Author: Sergiu Gatlan
URL: https://www.bleepingcomputer.com/news/security/microsoft-windows-powershell-now-warns-when-running-invoke-webrequest-scripts/
ONE SENTENCE SUMMARY:
Microsoft updates Windows PowerShell to warn against risky script execution, aiming to secure enterprise environments using Invoke-WebRequest.
MAIN POINTS:
- PowerShell now warns when scripts use Invoke-WebRequest to download web content.
- Mitigates CVE-2025-54100 vulnerability affecting enterprise environments.
- Warning added to Windows PowerShell 5.1 on Windows 10 and 11.
- Users prompted to use ‘-UseBasicParsing’ for safer web content processing.
- Pressing ‘No’ cancels operation; ‘Yes’ allows older parsing with risk.
- KB5074204 update displays confirmation prompt about script execution risks.
- Admins advised to update scripts to avoid manual confirmation delays.
- ‘curl’ command in PowerShell linked to the same warnings.
- Scripts downloading content or working with response body require no changes.
- Additional details available in Microsoft’s support documentation.
TAKEAWAYS:
- Use ‘-UseBasicParsing’ to avoid executing risky scripts.
- Update scripts for seamless automation without manual intervention.
- PowerShell 5.1 enhances security with essential warnings.
- Enterprise environments benefit most from this update.
- Stay informed with Microsoft’s documentation for additional guidance.