Logo
Cybersecurity

When Trusted Website Scripts Become a Security Risk

A recent security incident shows how malicious code can reach website visitors through a trusted third-party service, even when the organisations hosting those websites have not been directly breached.

ITSEC AsiaITSEC Asia
|
Nov 18, 2026
When Trusted Website Scripts Become a Security Risk

Most websites rely on external scripts to support analytics, advertising, personalisation and customer experience. These integrations are convenient because organisations can add functionality without building every component themselves.

But every external script creates another dependency. If the service behind it is compromised, the code delivered to visitors may no longer behave as expected.

That risk became clear on 16 November 2026, when security researcher Scott Helme of Report URI identified malicious JavaScript being distributed through Optimizely Web Experimentation. His investigation found 188 infected snippets belonging to 178 organisations among 1,611 snippets examined. The affected organisations included businesses across finance, technology, retail, media, travel and telecommunications. [1][2]

The attacker had inserted malicious code into the Project JavaScript field of affected customer projects. This code loaded additional scripts from an attacker-controlled domain. Because the original snippet continued to come from Optimizely's trusted domain, the activity could pass through website integrations that organisations had already approved.

The payload attempted to replace cryptocurrency wallet addresses, collect payment card details entered into website forms, steal certain browser cookies and capture screenshots. Report URI also documented attempts to deliver iOS exploit kits. It reported verified cryptocurrency transactions to attacker-controlled wallets. However, Reuters said it could not establish how many visitors were successfully affected or the full extent of the resulting compromises. [1][3]

Optimizely later confirmed that the attacker exploited a vulnerability in its account signup flow to impersonate users and modify customer projects. The company said this was not a customer password breach. It detected the activity on 16 November, fixed the vulnerability and removed the injected code from affected projects. Its investigation, supported by Mandiant, remained ongoing in its 17 November report. [2]

For organisations, the incident raises a practical question: how much visibility do security teams have over the code running in their visitors' browsers?

Traditional security monitoring often focuses on servers, endpoints and internal networks. Yet a website can deliver harmful code through a legitimate third-party integration without its own infrastructure being compromised. The browser becomes the point where the attack reaches the user.

Security teams need to understand which external scripts run on production pages, who owns each integration and what data those scripts can access. A vendor's reputation or a valid HTTPS certificate does not guarantee that every script it serves remains safe.

Content Security Policy (CSP) is one technical control that can limit the damage. A restrictive script-src directive can prevent unauthorised script sources from executing, while connect-src can restrict where browser data is sent. Report URI's analysis found that 24 of the 159 organisations whose CSP it evaluated blocked the malicious payload outright. [1]

The response also requires people with the right skills. Web developers need to understand script dependencies and secure browser policies. Security analysts need to recognise unexpected changes in JavaScript and outbound browser connections. Incident responders must be able to coordinate with vendors, preserve logs, establish exposure windows and assess whether customer notification is required.

Organisations should start by inventorying third-party scripts across production websites. They should review script changes, enforce an appropriate CSP, retain browser and web security logs and establish a clear process for disabling or investigating a compromised integration. Vendor risk reviews should include how providers control access to customer projects and notify clients about security incidents.

These responsibilities require practical knowledge across application security, threat detection and incident response. The ITSEC Cyber & AI Academy focuses on developing cybersecurity and AI capabilities that organisations need to prepare their teams for evolving threats.

Explore cybersecurity and AI learning programmes at https://www.itsec.academy/.

References

  1. Report URI, “World's Largest Brands Infected With Malware Via Optimizely,” 16 November 2026. https://blog.report-uri.com/worlds-largest-brands-infected-with-malware-via-optimizely/

  2. Optimizely, “Security Incident Initial Report for Customers – Optimizely Web Experimentation,” 17 November 2026. https://pages.optimizely.com/rs/947-RKE-048/images/Security%20Incident%20Report%20-%20Optimizely%20Web%20Experimentation%20-%20Nov%2017%202026.pdf

  3. Reuters, “Popular websites compromised in bid to steal crypto, target iPhone users,” 17 November 2026. https://www.reuters.com/legal/government/popular-websites-subverted-bid-steal-crypto-target-iphone-users-2026-11-17/

Share this post

You may also like

What Information Security Process Manager Actually Does and Why Most Organizations Getting It Wrong
Cybersecurity

What Information Security Process Manager Actually Does and Why Most Organizations Getting It Wrong

INTRODUCTION Here is a number worth sitting with: organizations that detect breaches with a security AI and automation program save an average of USD 2.2 million compared to those that do not. Yet the operational role responsible for building, owning, and continuously improving those detection and response processes, the Information Security Process Manager, remains one of the least formally defined positions in enterprise security. Most organizations have the tools. Very few have the structured ownership that makes those tools work together as a system. ITSEC Asia, the cybersecurity leader in Indonesia with operations across Singapore, Australia, and the UAE, works directly with organizations to fill exactly this gap: turning fragmented security investments into managed, measurable, and genuinely effective programs. Sources: IBM Cost of a Data Breach Report 2024 [https://www.ibm.com/reports/data-breach] WHAT THE ROLE ACTUALLY OWNS An Information Security Process Manager is the operational architect of a security program. Where a CISO sets direction and a security analyst executes individual tasks, the Process Manager is responsible for defining, documenting, improving, and governing the processes that

|
Mei 25, 2026 — 5 minutes read
The AI Talent Gap Is Still the Weakest Link in Indonesia's Digital Transformation
Cybersecurity

The AI Talent Gap Is Still the Weakest Link in Indonesia's Digital Transformation

Introduction How many people on your team truly understand how to build, secure, and govern AI-based systems today. For most organizations, the honest answer is far fewer than what's actually needed. The World Economic Forum's Future of Jobs Report 2025 found that nearly 39 percent of workers' core skills are expected to change significantly by 2030, with AI and big data sitting at the top of the list of skills most in demand and hardest to fill. ITSEC Asia, which works with organizations across Indonesia, Singapore, Australia, and the UAE, sees the same pattern play out almost everywhere. AI adoption is moving far faster than organizations' ability to build, secure, and responsibly govern the technology. Source: World Economic Forum, Future of Jobs Report 2025 Demand for AI Talent Is Growing Faster Than the Supply This isn't simply a headcount problem, it's a widening gap between how fast technology is being adopted and how fast organizations can produce people genuinely capable of handling it. * ISC2's workforce study puts the

ITSEC AsiaITSEC Asia
|
Agu 14, 2026 — 4 minutes read
OWASP Top 10 Explained: The Risks Every Organization Should Understand
Cybersecurity

OWASP Top 10 Explained: The Risks Every Organization Should Understand

Modern applications have become increasingly interconnected and complex. Organizations rely on web applications, APIs and cloud services to support critical business operations and deliver digital experiences. Unfortunately, attackers are evolving just as quickly. As cyber threats continue to grow, understanding common application security risks has become essential. This is where the OWASP Top 10 plays an important role. Widely regarded as one of the most influential resources in application security, the OWASP Top 10 provides organizations with a practical framework for understanding and prioritizing the most critical risks affecting web applications. Whether you are a developer, security professional or business leader, understanding these risks is essential for building stronger cyber resilience. WHAT IS OWASP? OWASP, or the Open Worldwide Application Security Project, is a global non-profit organization focused on improving software security. Among its many initiatives, the OWASP Top 10 is perhaps the most widely recognized. It highlights the most significant security risks affecting modern web applications based on industry data and expert consensus. The list is not intended to be a compliance checklist. Instead,

ITSEC AsiaITSEC Asia
|
Jun 15, 2026 — 5 minutes read

Receive weekly
updates on new posts

Subscribe