Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1371+ Articles
150+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Suspicious Polyfill Login Prompts Pop Up on Toshiba, Muji Websites
Suspicious Polyfill Login Prompts Pop Up on Toshiba, Muji Websites
NEWS

Suspicious Polyfill Login Prompts Pop Up on Toshiba, Muji Websites

Tech giant Toshiba and mega-retailer Muji have warned visitors that suspicious sign-in screens appearing on their websites could be harvesting credentials — a…

Dylan H.

News Desk

June 6, 2026
5 min read

Tech giant Toshiba and Japanese retail chain Muji have both issued warnings to website visitors after suspicious sign-in prompts began appearing on their domains. Security researchers and the companies themselves have linked the fake login screens to the Polyfill.io supply chain compromise — a recurring threat that has continued to evolve and resurface since its initial disclosure in 2024.

What Is Polyfill.io and Why Is It Dangerous?

Polyfill.io was originally a widely trusted JavaScript library service that automatically delivered browser polyfills — code that enables modern web features in older browsers. At its peak, the service was embedded in tens of thousands of websites, making it an attractive target for threat actors.

In 2024, the Polyfill.io domain was acquired by a Chinese company that began injecting malicious JavaScript into the polyfill distribution. The injected code was designed to redirect visitors to scam sites, inject cryptocurrency mining scripts, and — in later campaigns — serve fake login prompts designed to harvest credentials from unsuspecting users.

Despite widespread advisories and the recommendation to remove Polyfill.io entirely, many websites never updated their Content Security Policies or removed the compromised script reference. This has allowed the threat to persist and resurface in new campaigns.

The Toshiba and Muji Incidents

Both Toshiba and Muji have confirmed that their websites were displaying unexpected sign-in dialog boxes that did not originate from their own authentication systems. The suspicious prompts appeared to mimic legitimate login flows and were designed to capture usernames and passwords.

Key characteristics of the fake prompts reported by visitors and researchers include:

  • Unsolicited appearance — login dialogs appearing without the user navigating to an authenticated section of the site
  • Visual similarity — prompts styled to match the site's authentic login interface
  • No HTTPS warning — the pages and dialogs remained on the legitimate HTTPS domain, avoiding typical browser security alerts
  • JavaScript injection — the malicious code was delivered via the still-embedded Polyfill.io script reference

Both companies have notified visitors and are working to remove the compromised scripts from their sites.

How the Attack Works

The Polyfill.io attack chain follows a well-established pattern:

1. Website includes a <script> tag referencing polyfill.io CDN

2. Attacker-controlled CDN serves modified JavaScript alongside legitimate polyfills

3. Injected script detects the visitor's browser, location, and session state

4. On target profiles (specific geographies, device types, first-time visitors),
   the script injects a fake login modal into the live page DOM

5. User enters credentials into the convincing-looking prompt

6. Credentials are exfiltrated to attacker-controlled infrastructure

7. User is shown a generic error or silently passed through to the real site

The attack is particularly insidious because it operates entirely within the legitimate site's domain and HTTPS certificate, giving no visible indication to the browser that anything is wrong.

Scale of the Problem

The Polyfill.io compromise is not new, but its persistence reflects a systemic problem in web security:

  • At the time of initial disclosure in 2024, an estimated 100,000+ websites were loading the compromised script
  • Despite years of advisories, a significant proportion of those sites have never removed the dependency
  • Security scans consistently find Polyfill.io still referenced in major enterprise and retail websites globally
  • The threat actors have continued to evolve their injection payloads, alternating between cryptocurrency miners, redirect campaigns, and now credential-harvesting overlays

Recommended Actions for Website Operators

Any website still loading scripts from polyfill.io or related domains should take immediate action:

Remove the Polyfill.io Reference

<!-- Remove this type of reference entirely -->
<script src="https://polyfill.io/v3/polyfill.min.js"></script>
 
<!-- If polyfills are needed, prefer self-hosting via the open-source npm package -->
<!-- npm install @oddbird/css-anchor-positioning or polyfill-library -->
 
<!-- If using a CDN alternative, ALWAYS add Subresource Integrity (SRI) hashing -->
<!-- Generate the hash at: https://www.srihash.org/ -->
<script
  src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js"
  integrity="sha384-<generate-hash-from-srihash.org>"
  crossorigin="anonymous">
</script>

Audit Your Content Security Policy

Ensure your CSP blocks loading scripts from unauthorized third-party domains:

Content-Security-Policy: script-src 'self' https://trusted-cdn.example.com;

Conduct a Script Inventory

Use browser developer tools, Lighthouse audits, or dedicated tools to enumerate all third-party scripts loaded by your site:

# Use a tool like httpx to check what scripts are being loaded
cat urls.txt | httpx -silent -title -content-type
 
# Or use a crawler to detect external script sources

Monitor for DOM Injection

Implement Subresource Integrity (SRI) hashing for any third-party scripts you do continue to use:

<script
  src="https://cdn.example.com/script.js"
  integrity="sha384-<hash>"
  crossorigin="anonymous">
</script>

SRI causes the browser to reject any script whose content does not match the expected hash, preventing tampered versions from executing.

Broader Context: Supply Chain Attacks on Web Infrastructure

The Polyfill.io saga is a textbook example of a software supply chain attack targeting the web layer. Unlike traditional supply chain attacks that target build pipelines or package repositories, this attack vector exploits the common practice of linking to third-party CDN-hosted scripts directly from production HTML.

The threat model mirrors that of other high-profile web supply chain attacks:

AttackMethodImpact
Polyfill.ioCDN domain acquisition + payload injection100k+ sites, credential theft
MagecartPayment page script injectionMillions of card numbers stolen
SolarWinds (web tier)Build pipeline poisoningGovernment & enterprise espionage
Event-Stream (npm)Malicious maintainer handoffBitcoin wallet targeting

The lesson is consistent: any third-party script running on your site has full DOM access and operates with your site's trust and credentials.

Key Takeaways

  1. Polyfill.io remains active — the compromised CDN is still delivering malicious payloads to sites that haven't removed it
  2. Toshiba and Muji are the latest major brands caught serving fake login prompts via the Polyfill.io injection
  3. Any website still including polyfill.io in its <script> tags should remove it immediately
  4. Replace with a self-hosted polyfill bundle, or use the Cloudflare CDN alternative as a drop-in replacement
  5. Implement SRI hashing and a strong Content Security Policy to prevent future CDN-based injection attacks

References

  • BleepingComputer — Suspicious Polyfill Login Prompts
  • CISA Advisory on Polyfill.io Compromise
  • Cloudflare Polyfill Alternative
#Polyfill.io#Supply Chain Attack#Credential Theft#JavaScript#Web Security#Toshiba#Muji

Related Articles

AppsFlyer Web SDK Supply Chain Attack Spread

Attackers hijacked AppsFlyer's CDN domain via a registrar incident, serving a sophisticated 170 KB crypto-stealing JavaScript payload to every site...

6 min read

Supply Chain Attack Discovered in Popular NPM Packages

Security researchers have discovered malicious code injected into several popular NPM packages with millions of weekly downloads. Developers urged to...

3 min read

What the 2026 DBIR Confirms: Attacks Are Living in the Browser

The 2026 Verizon DBIR confirms phishing, shadow AI, malicious extensions, and credential theft now execute inside the browser, exposing major security gaps.

8 min read
Back to all News