Entra ID

Microsoft Entra ID Sign-In CSP Blocks Script Injection

3 min read

Summary

Microsoft will enforce a stricter Content Security Policy on the Entra ID sign-in page at login.microsoftonline.com by mid-to-late October 2026, limiting script downloads to trusted Microsoft CDNs and allowing inline scripts only through Microsoft-controlled nonce-based patterns. This matters because it hardens one of the most targeted parts of the authentication flow against script injection attacks, though organizations using browser extensions or custom tools that interact with the sign-in page may need to review compatibility before rollout.

Need help with Entra ID?Talk to an Expert

Introduction

Microsoft is hardening the Microsoft Entra ID sign-in experience as part of the Secure Future Initiative (SFI). The upcoming Content Security Policy (CSP) enforcement is designed to prevent external script injection during authentication—an area frequently targeted by attackers—by limiting what scripts can load and execute on the sign-in page.

What’s new

Microsoft will add and enforce a stricter CSP header for the Entra ID sign-in experience on login.microsoftonline.com. Key changes include:

  • Script downloads restricted to trusted Microsoft CDN domains Only scripts sourced from Microsoft-approved content delivery networks will be allowed to load.

  • Inline script execution restricted to trusted Microsoft sources (nonce-based) Inline scripts will be governed via CSP nonce patterns, preventing arbitrary inline code from running.

  • Scope limited to browser-based sign-ins on login.microsoftonline.com This is specific to interactive sign-in pages in a browser.

  • No impact to Microsoft Entra External ID Microsoft states Entra External ID experiences are not affected by this update.

Timeline

  • Global enforcement: Microsoft Entra ID will enforce the updated CSP mid-to-late October 2026.
  • Communications: Microsoft will send periodic updates ahead of rollout.

Impact on IT administrators and end users

For most organizations, this will be a “silent” security improvement. However, environments that use browser extensions, scripts, or third-party tools that inject code into the sign-in page should expect breakage of that injected functionality.

Important nuance: Microsoft indicates that even if injected tools stop working, users can still sign in—but any overlay, instrumentation, customization, or helper logic that depends on injection may fail.

Typical items to review include:

  • Password managers or “security” extensions that modify login pages
  • Helpdesk or SSO troubleshooting overlays
  • Custom branding or UX modifications implemented via injection
  • Monitoring or analytics tools that hook into sign-in UI via browser scripting
  1. Inventory and reduce sign-in page injection dependencies Microsoft explicitly recommends avoiding extensions or tools that inject code into the Entra sign-in experience.

  2. Test sign-in flows with Developer Tools open Run through your common sign-in scenarios (managed devices, unmanaged devices, different browsers, conditional access variations) with the browser dev console open and look for CSP violations (typically shown in red).

  3. Assess different user personas and flows Because violations may only appear for specific teams or user setups (due to extensions or local tooling), test with multiple user groups and device configurations.

  4. Replace impacted tools with non-injecting alternatives If you find business-critical tooling that relies on script injection, begin evaluating alternatives now—script injection into the sign-in page will no longer be supported once enforcement begins.

Why this matters

Authentication pages are high-value targets. Enforcing CSP at the sign-in boundary is a meaningful step to reduce the attack surface for injected or malicious scripts, improving resilience against modern web-based identity attacks while keeping the user sign-in experience intact for compliant configurations.

Need help with Entra ID?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

Entra IDauthenticationContent Security PolicyCSPSecure Future Initiative

Related Posts

Entra ID

Microsoft Entra Identity-First Access Replaces VPN Gaps

Microsoft is positioning identity-first access as a better alternative to traditional VPN-centric remote access. By combining Conditional Access with Global Secure Access, organizations can apply Zero Trust policies consistently across SaaS, AI apps, on-premises resources, and internet traffic.

Entra ID

Microsoft Entra July 2026: Backup, BYOD, AI Security

Microsoft Entra's July 2026 updates introduce several identity and access improvements, led by the general availability of Entra Backup and Recovery and new BYOD support for Global Secure Access. Microsoft also previewed stronger Conditional Access controls for AI agents and announced security enhancements in Microsoft Authenticator, giving IT teams more resilience, flexibility, and governance options.

Entra ID

Microsoft Entra SAP Identity Management Updates

Microsoft has expanded Microsoft Entra integrations with SAP to help organizations modernize identity management as they move away from SAP IDM and other on-premises tools. New capabilities for provisioning, account discovery, OAuth 2.0 authentication, and SAP role governance can help IT teams unify lifecycle management and access governance across SAP and non-SAP apps.

Entra ID

Microsoft Entra ID Branded Sign-In CSS Changes 2026

Microsoft Entra ID is tightening the security of branded sign-in pages by retiring support for custom CSS positioning properties starting October 26, 2026. Organizations that use these properties in company branding should review and remove them now to avoid layout changes and maintain a trusted sign-in experience.

Entra ID

Microsoft Entra Zero Trust Updates for AI and Apps

Microsoft has announced new Microsoft Entra Internet Access and Private Access capabilities to secure AI, web, and private app traffic with Zero Trust controls. The update adds public preview features for network DLP, AI agent controls, and agentic scenarios, while generally available features expand secure access for BYOD, kiosk devices, and MCP traffic visibility.

Entra ID

Azure AD B2C Migration Policy Analyzer Now GA

Microsoft has made the Migration Policy Analyzer generally available to help organizations assess Azure AD B2C custom policies before moving to Microsoft Entra External ID. The tool generates a structured migration assessment, helping IT teams understand current implementations, identify gaps, and prioritize migration work faster.