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

AI Is Raising the Bar for Cybersecurity Talent
Cybersecurity

AI Is Raising the Bar for Cybersecurity Talent

For cybersecurity teams, AI is quickly moving from something experimental to something people actually use. The World Economic Forum’s Global Cybersecurity Outlook 2026 found that 77% of surveyed organizations had adopted AI for cybersecurity. It is already being used for tasks such as phishing detection, intrusion response and user-behaviour analysis. That sounds like good news for teams struggling with workload. And mostly, it is. But AI doesn’t remove the need for skilled cybersecurity professionals. It changes what those professionals need to be good at. AUTOMATION CAN DO MORE. SO HUMANS HAVE TO DO MORE TOO. The same WEF research found that 54% of organizations considered insufficient knowledge or skills a barrier to using AI effectively in cybersecurity. Another 41% pointed to the need for human oversight. That second number matters. AI can analyse enormous amounts of information quickly. What it still struggles with is context: whether an unusual event is genuinely dangerous, how a technical issue affects the business and what action makes sense when the available information is incomplete. Cybersecurity professionals increasingly need

ITSEC AsiaITSEC Asia
|
Sep 02, 2026 — 3 minutes read
Here is How Application Security Works to Protect Your Systems and Data
Cybersecurity

Here is How Application Security Works to Protect Your Systems and Data

INTRODUCTION Nowadays applications are at the center of digital business operations. From mobile banking and e-commerce platforms to internal enterprise systems, organizations rely heavily on applications to serve customers and manage data. However, as applications become more complex and interconnected, they also become one of the most common targets for cyberattacks. In fact, web applications are responsible for a large percentage of data breaches worldwide. The Verizon 2024 Data Breach Investigations Report indicates that cybercriminals frequently exploit web applications as an attack vector. This growing threat raises an important question, “Are your applications truly secure against modern cyber threats?” One of the most effective ways to protect applications is through application security, a proactive approach to identifying and fixing vulnerabilities before attackers can exploit them. Source: verizon.com [https://www.verizon.com/business/resources/reports/dbir/],    A REAL-WORLD EXAMPLE: WHEN AN UNSECURED API EXPOSES MILLIONS Let's look at something that actually happened to Trello in early 2024.In January 2024, a hacker found a weakness in Trello's system, specifically, a part of the app called a REST API. This API had a

ITSEC AsiaITSEC Asia
|
Apr 17, 2026 — 6 minutes read
Cybersecurity Training Works Best When Employees Know What to Do Next
Cybersecurity

Cybersecurity Training Works Best When Employees Know What to Do Next

Most employees have seen a phishing warning. They know to look for unusual links, unexpected attachments and messages that create urgency. Yet when a convincing message arrives during a busy workday, remembering the advice and acting on it are two different things. A message may look routine, appear to come from a senior colleague or arrive just as someone is rushing to meet a deadline. That gap between awareness and action is worth addressing. In its 30 September 2026 release, the European Commission reported that 74% of EU employees had encountered suspicious emails, messages or links at work in the previous six months. Phishing was the most commonly reported threat, affecting 39% of respondents. The survey also found that only 48% felt able to recognize an AI-generated fake video. ENISA's summary of the findings adds another important detail: only 45% of employees said their organization provided regular cybersecurity awareness updates, while 85% expressed interest in improving their skills. Lack of time was the most frequently reported barrier to training, cited

ITSEC AsiaITSEC Asia
|
Okt 27, 2026 — 4 minutes read

Receive weekly
updates on new posts

Subscribe