Microsoft is ensuring that Entra ID will be better protected against external script injection attacks starting in October.
Microsoft is informing customers that the Entra ID identity and access management (IAM) solution will receive better protection against external script injection attacks starting in October. The company first announced these plans in November 2025.
The new rollout is intended to protect users against various security risks during login, such as cross-site scripting attacks where malicious code is injected into websites to capture login credentials. The rollout is expected to be completed by the end of October.
Script injection attacks
In an update on the message center, reviewed by BleepingComputer, Microsoft writes that it will begin the enforcement of additional Content Security Policy (CSP) defenses that only allow scripts from trusted Microsoft content delivery network (CDN) domains during Entra ID sign-ins.
“This change helps protect users against threats such as cross-site scripting (XSS) by allowing only trusted and Microsoft-hosted scripts to run during authentication and blocking unauthorized or externally injected code,” the company writes.
Browser extensions
Furthermore, Microsoft advises business customers to stop using browser extensions and tools that inject code or scripts into login pages before the new CSP changes take effect. Organizations are encouraged to test login scenarios before next month’s deadline. This allows IT administrators to identify potential impacts and look for violations that appear in red text.
“Users will be able to sign in even if unsupported script injection tools no longer function. This change is enabled by default as part of the service update and requires no tenant configuration.”
“Microsoft Authentication Library (MSAL) and API-based authentication flows are not affected because CSP enforcement only applies to browser-based login experiences using login.microsoftonline.com,” the company clarifies.
