
On November 16, Optimizely reported that an attacker used a flaw in its sign-up flow to add malicious JavaScript to some customers' projects. That code then ran in their visitors' browsers.
Tailor also runs JavaScript on your site. It's how a visitor from an ad sees a headline written for that ad. So we treat the code we serve the way you'd treat code your own engineers ship.
Was Tailor affected?
No. We've found no sign that Tailor or any customer was affected.
The same day, we checked our own sign-up and sign-in for the same kind of flaw. Everyone signs in to Tailor with Google, so every account has an email address Google has verified. The login page also runs a bot check to block scripted sign-in attempts.
Where does Tailor run code on my site?
Tailor runs custom JavaScript in four places:
- Goal tracking code
- Code inside a test's changes
- Custom targeting rules
- Scripts on pages Tailor hosts for you
Whenever code in any of them is saved, Tailor records the exact code and who saved it, so changes are caught as they happen. Tailor also checks what each account actually serves against those records, so a change made any other way still gets caught.
Who can change it?
- Only people in your account. You sign in with Google, so Tailor doesn't store passwords. If you use Google Workspace, your MFA rules apply, and removing someone there removes their Tailor access.
- Only on your own sites. An account can only serve changes to its own domains, and adding or removing a domain alerts our team.
- Every change is logged with who made it and when, including changes Tailor staff make in your account.
How are risky scripts caught?
Every script is checked when it's saved. We flag scripts that do things like:
- Send data to another site, especially one your account hasn't used before
- Read passwords, payment fields, form fields, cookies or stored data
- Load or run other code
- Hide what they do with obfuscated or encoded code
- Redirect visitors, cover the page, hijack clicks, or show fake login or payment forms
- Log keystrokes or mine cryptocurrency
A flagged script doesn't go live until someone in your account approves that exact version. If the code changes, it needs approval again. Tailor's agents follow the same rule.
Our team also reviews flagged scripts and watches for patterns that point to an attack like Optimizely's.
What happens if a bad script gets through?
Our team can stop a script in seconds, without deploying new code:
- Pause one script. It stops for every visitor. The pause is tied to the code itself, so it stays stopped even if someone re-adds it or moves it to another element.
- Hold a whole account. Every script on the account stops, including any added later. The hold fails closed: if Tailor can't confirm it for any reason, scripts stay off.
When we pause something, we contact you, and your account shows what was paused and why.
Can I see the scripts running on my site?
Yes. Your account lists every script Tailor runs on your site: who added it, when, whether it's live or paused, and what it was flagged for, if anything. You can also get an email or Slack alert whenever someone adds one.
How do I know the Tailor tag itself hasn't been tampered with?
We regularly download the Tailor tag the way a visitor would and check that it matches the version we released. The record of what we released is kept separate from the CDN that serves the tag, so changing one doesn't change the other. If they don't match, our team gets an alert.
Every change to Tailor's own code needs a code review and passing tests, goes to staging before production, and can be rolled back in one step.
Is there anything my security team should do?
Set a Content Security Policy.
A CSP tells the browser which hosts your pages can load scripts from and send data to. If a third-party script goes bad, the browser blocks requests to any host not on the list.
In the Optimizely incident, Report URI found that a strict CSP stopped the data theft on 17 of the affected sites. Our install guide lists the exact Tailor hosts to allow.
Turn on new-script alerts.
Get an email or Slack message whenever someone in your account adds code that runs on your site.
More detail is in our Security & Trust docs. To report a vulnerability, see our disclosure policy.

