Safeguard
Supply Chain Security•

JavaScript Malware Today: Skimmers, Hijacked Scripts and Rogue Extensions

Malicious JavaScript in the browser on 25 November 2026: the Optimizely hijack in CISA KEV, skimmers, search-hijacking extensions, and a runbook to check your site.

Safeguard Security Team
18 min read

Yes. JavaScript malware is running in browsers today, and this month's most visible case did not need any affected website to be breached. On 24 November 2026 CISA added CVE-2026-132224, the Optimizely Web Experimentation flaw that let an attacker push skimming JavaScript through a trusted vendor snippet, to its Known Exploited Vulnerabilities catalog. To see what is live, watch CISA KEV for browser and web platform entries, your own Content Security Policy violation reports, and the security notices of every vendor whose script runs on your pages. Then run the checks below against your own site.

This post is about JavaScript that runs in a visitor's browser: third-party scripts, CDNs, tag managers, skimmers and browser extensions. If you came for malicious packages in your build, read the companion post npm malware today, which covers the registry side with its own commands.

Key takeaways

  • The case to know this month is a vendor script, not a hacked site. CISA lists CVE-2026-132224 as exploited. Optimizely's incident report says an attacker abused its account signup flow to act as customer users and insert malicious JavaScript into Project JavaScript, which Optimizely's own network then served to visitors.
  • Front-end build tooling names showed up in the npm malware feed on 24 and 25 November, including @pixelworkshub/postcss-motionfx and tailwind-studio. The build side and the browser side meet in your bundle.
  • Not all skimming needs your site. A research report from 5 November describes 820 look-alike restaurant ordering domains that reverse-proxy the real sites and swap in a fake checkout.
  • Extensions keep doing quiet damage. A 29 October report counted 319 search-hijacking Chrome extensions with 13.4 million installs, some made of nothing but a manifest.
  • The defences that work are boring: a strict CSP, SRI where files are static, a written script inventory, change monitoring, tight tag manager access and an extension allowlist.

Where to look for JavaScript malware today

There is no single malware feed for the browser the way OSV is for packages. These are the places that carry the signal.

CISA KEV. The catalog and its JSON feed list vulnerabilities with evidence of exploitation. Filter for browsers, JavaScript engines, CMS platforms, e-commerce platforms and any vendor whose script you embed.

Your own CSP reports. A Content Security Policy in report mode tells you every time a page tries to load a script or send data somewhere you did not approve. For your own site, nothing is more current.

Vendor status pages and incident reports. Analytics, A/B testing, chat, consent and tag management vendors publish incidents on status pages. Subscribe for every vendor on your inventory.

Browser release notes. Google's Chrome Releases blog says plainly when "an exploit exists in the wild". That is the line to watch for.

What we saw on 25 November 2026

Method: on 25 November 2026 between 18:00 and 18:30 UTC we pulled the CISA KEV JSON feed (catalog version 2026.11.25), the GitHub malware advisories for npm, and the Hacker News search API for the past 30 days of stories on skimmers, compromised scripts, CDNs, tag managers and malicious extensions. We kept items with a primary source we could read and describe each one only as its source does.

CVE-2026-132224: the Optimizely hijack is now in KEV

CISA added CVE-2026-132224 on 24 November 2026. The KEV entry describes "an external control of critical state data vulnerability in its account signup flow that could allow an attacker to impersonate existing customer users and modify Project JavaScript", and says successful exploitation "can result in attacker-controlled JavaScript being distributed through Optimizely-hosted assets and executed in browsers visiting affected customer websites". The weakness is CWE-642.

Optimizely's incident report, first issued 17 November, corrected on 18 November and shortened on 20 November, gives the timeline. The first malicious code was written on 16 November at 07:51 UTC. Optimizely detected the activity at 13:34 UTC, closed the vulnerability at 16:10 UTC and removed the injected code from all affected projects by 22:24 UTC. The report says this was not a credentials breach and not a compromised Optimizely administrator account: the flaw let the attacker act as administrator users without their credentials.

Three lines from the report deserve attention from anyone who runs third-party JavaScript:

  • "Sites with a strong Content Security Policy (CSP) were protected."
  • The script "targeted card details typed into forms on the site itself and cryptocurrency transfers".
  • "Cards entered in hosted payment iframes (for example Stripe or Adyen) were not accessible."

The report asks every Web Experimentation customer to treat this as a security incident, confirm which pages ran the snippet between 07:51 and 22:24 UTC on 16 November, and review CSP violation reports and outbound browser requests for that window. Optimizely's status page entry carries the short version.

We covered the attack itself, the payload variants, the indicators and a worked CSP example in the Optimizely Web compromise. The first public technical write-up and Krebs on Security's account report 178 affected organisations and a payload that was rebuilt 26 times during the day. What is new this week is the KEV listing, which confirms exploitation in CISA's catalog.

Front-end tooling names in this week's npm malware feed

Our pull of GitHub's npm malware advisories at 18:10 UTC included three names aimed at front-end developers: @pixelworkshub/postcss-motionfx (GHSA-4mr5-gg6c-mcx5, MAL-2026-20499), tailwind-studio (GHSA-c73f-fgmf-cxjw, MAL-2026-20502), whose advisories appeared on 24 November, and @neo938/css-motion-kit (GHSA-8mmg-xq2f-rj6j, MAL-2026-20599), whose advisory appeared on 25 November. All three carry only the generic advisory text: treat any computer that installed them as compromised and rotate its secrets from another machine. The advisories do not say whether the code reaches built bundles, so we do not claim it does.

They matter here because a CSS or PostCSS plugin runs inside your build, and your build produces the JavaScript every visitor downloads. The checks for that side live in the npm post.

A browser bug exploited through a crafted page

On 10 November CISA added CVE-2026-125350, a use-after-free in Chromium's XML component that KEV says could let a remote attacker "execute arbitrary code inside the sandbox via a specially crafted webpage". Google's 9 November stable update to 157.0.8103.50/.51 fixes it and says Google "is aware that an exploit for CVE-2026-125350 exists in the wild". KEV notes it can affect other Chromium-based browsers too. Skimmers steal what visitors type. Bugs like this one let a malicious page go further, which is why browser update speed belongs in the same conversation.

Skimming without touching the real site

A research report published 5 November describes 820 domains impersonating 35 US restaurant brands, 808 of them on the .delivery top-level domain. According to the report, some reverse-proxy the legitimate ordering site, so menus and pages look genuine, and replace the checkout form with a malicious one that also asks for the SMS code the customer's bank sends. The report stresses that the real restaurant sites did not need to be hacked.

For site owners this is a different problem from a compromised script. You cannot fix it with CSP on your own domain. Look-alike domain monitoring and takedowns are the tools, plus clear guidance to customers about your real ordering domains.

Search hijacking by the extension load

BleepingComputer reported on 29 October on a researcher's count of 319 Chrome extensions with a combined 13.4 million reported installs that send users' searches through operator-controlled servers for referral revenue. Per the article, the extensions are unlisted on the Chrome Web Store, promoted through ads, and some contain only a manifest and icons, using Chrome's built-in setting to override the default search provider. The researcher warned that the final destination can change at any time without an extension update.

Web platform bugs in KEV this month

Two more KEV entries from the past 30 days touch the platforms skimmers like to live on. CVE-2026-119977 in WordPress core, added on 3 November, is described by KEV as letting unauthenticated attackers run code on the server during the core upgrade window, and the KEV notes point to the WordPress 7.1.4 release. CVE-2026-48356 in Adobe Commerce and Magento, added on 27 October, is an unrestricted file upload that KEV says could lead to code execution. Server-side code execution on a store is one route by which a skimming script ends up on a checkout page, so treat these updates as urgent.

How to check your site today

1. List every script your pages load. Open a sensitive page (checkout, login, account settings) and record every script origin. A quick first pass from the command line, which only sees what the HTML references directly:

curl -s https://www.example.com/checkout \
  | grep -oE '<script[^>]+src="[^"]+"' | sed -E 's/.*src="([^"]+)".*/\1/' | sort -u

Scripts injected by tag managers and vendor loaders only appear in a real browser, so follow up with the browser's network panel or a headless run, and write the result down with an owner and a reason for each. Our guide on inventorying every third-party script on your site walks through it.

2. Read your CSP, or its absence. curl -sI https://www.example.com/checkout | grep -i content-security-policy. If nothing comes back, nothing restricts where scripts load from or where data can be sent. Paste an existing policy into Google's CSP Evaluator to spot wildcards, unsafe-inline and other gaps.

3. Check CSP reports for the last 30 days. Look for script sources and connect-src destinations you do not recognise. Exfiltration often shows up as requests to a domain you have never seen.

4. Hash your vendor scripts and compare. A scheduled job that fetches each third-party script and records a SHA-256 gives you a change log. Expect noise, because vendors ship updates and some serve variants by browser or region, but an unexplained change on a checkout page is worth a look.

while read url; do
  printf '%s %s\n' "$(curl -s "$url" | shasum -a 256 | cut -c1-64)" "$url"
done < vendor-scripts.txt > hashes-$(date +%F).txt
diff hashes-previous.txt hashes-$(date +%F).txt

Our post on detecting when a third-party script changes covers sturdier ways to do this.

5. Review who can publish. List everyone with publish rights in your tag manager, experimentation tool and CDN configuration. Each of those accounts can change the JavaScript your customers run.

6. Audit installed extensions on staff browsers. Export the installed extension list from your browser management console and compare it with an approved list.

If you suspect a skimmer or a bad script

  1. Capture what the browser got. Save the exact script content and headers from an affected page, from more than one browser and region if you can. Payloads can be served selectively.
  2. Cut the script off. Remove or disable the tag, pause the experiment, or block the origin with CSP while you investigate.
  3. Fix the time window. Work out when the bad script first appeared and when it stopped, using CSP reports, CDN and WAF logs and vendor statements.
  4. Preserve logs. Web server, CDN, WAF, CSP reports and payment fraud monitoring for the whole window. Optimizely's report asks for exactly this.
  5. Bring in payments and legal early. If card entry or crypto transfers happened on affected pages, tell your payment processor and take advice on notification duties.
  6. Rotate anything the page could reach. API keys embedded in front-end code, session tokens for staff who used the affected pages, and tag manager or vendor console credentials.

How to stop the next one

A strict Content Security Policy. Use nonces or hashes for scripts, add object-src 'none' and base-uri 'none', and restrict connect-src, img-src and form-action to the destinations you need, because those directives decide where a skimmer can send stolen data. Google's strict CSP guide and MDN's script-src reference cover the syntax. Be careful with 'strict-dynamic': it lets a trusted script load further scripts, which is helpful for loaders and harmful when the trusted script turns. Start with Content-Security-Policy-Report-Only and a report-to endpoint, then enforce.

Content-Security-Policy: script-src 'nonce-{RANDOM}' https://cdn.vendor.example;
  object-src 'none'; base-uri 'none';
  connect-src 'self' https://api.vendor.example;
  form-action 'self'; report-to csp

Subresource Integrity where the file is static. The integrity attribute (MDN, W3C) makes the browser refuse a script whose hash does not match. It works for versioned library files. It cannot cover a tag manager container or a vendor snippet that changes per project, which is why the Optimizely snippet could not have been pinned. See can SRI protect a tag manager or analytics script.

Keep card data out of your DOM. Optimizely's report says cards entered in hosted payment iframes were not accessible to the injected script. Hosted fields from your payment provider take card entry off the page your third-party scripts can read.

A written inventory and change monitoring for payment pages. PCI DSS v4.0.1 has two requirements aimed at this problem: 6.4.3 covers managing the scripts that run on payment pages, and 11.6.1 covers detecting unauthorized changes to payment pages. If you take card payments, read the exact wording in the standard on the PCI SSC document library. The practices behind them, knowing every script, why it is there and when it changes, are worth having on any page that handles sensitive input.

Treat tag manager publishing like a deploy. Few publishers, approval before publish, review of custom HTML tags, and an audit trail. Our post on running Google Tag Manager under a strict CSP shows how the two fit together.

An extension allowlist. Chrome's ExtensionSettings policy can block all extensions by default with installation_mode set to blocked, allow named extension IDs, and use runtime_blocked_hosts to keep extensions away from sensitive sites such as your admin consoles.

Lockfile hygiene for what you bundle. Your own JavaScript is built from packages. Pin versions with a lockfile, review lockfile diffs, and keep install scripts off by default, as the npm post sets out.

How Safeguard helps

Safeguard works on the code you build and ship, the part of the browser supply chain you control at build time.

Software composition analysis and SBOMs inventory the open source packages that end up in your front-end bundles, with versions, across every repository you connect. When an advisory names a package, you can see which apps ship it. Continuous re-scanning and policy gates re-check that inventory as advisory data changes and can stop a merge that adds a dependency your policy does not allow. For known vulnerabilities, Safeguard opens auto-fix pull requests that your own CI tests before anyone merges.

Package Firewall covers the install step for npm. Per the Safeguard docs, it runs as an install-time proxy and can block known-malicious packages, typosquats and dependency confusion packages before they reach a developer laptop or a build, with allow, warn and block outcomes and an audit mode.

The JavaScript you bundle also carries ordinary vulnerabilities, and that is where the next section applies.

Fix it without waiting for upstream

Whatever the vulnerability, most of the risk sits in two gaps. The first is the time between a fix being published and that fix actually running in your production builds. The second, and worse, is the time before any fix exists at all, while a maintainer works out a patch and a release schedule. Waiting through both gaps is a habit, not a requirement. Safeguard gives teams three ways to close them.

1. Autonomous remediation: pull requests, not tickets

When a fixed version exists, Griffin, Safeguard's security model, opens a policy gated pull request that moves the affected dependency to the safe version, and your own CI runs your tests on it before anyone merges. You can run it on one repository or in bulk across every project that carries the vulnerable version. Remediation categories include dependencies, licenses, security posture and findings, and each one is set separately. Reachability analysis ranks the vulnerable code paths your application actually calls first, so the first pull requests you merge are the ones that matter most. Auto-merge is a separate switch and stays off by default, so your team decides what merges on its own and what still needs a human approval.

2. Gold Open Source: the safe version in seconds, free

gold.safeguard.sh is free and needs no login. Search any CVE or package to see affected and fixed versions, CVSS, EPSS, CISA KEV status and a recommended safe version, or use the "Am I affected?" checker. The same data is available through a free read API, README status badges and RSS threat feeds.

3. Gold Registry: start from components that are already fixed

Safeguard Gold rebuilds patched versions of open-source packages and images from source, signs each build, attaches an SBOM, SLSA provenance and VEX, and serves them from registry.safeguard.sh to your organization. Every Gold artifact is held continuously to zero exploitable critical or high CVEs and a completed license check, with signed build provenance (signed with Safeguard's key and verifiable with cosign, SLSA Build Level 3 as the design target) and a public evidence page you can hand to an auditor. An artifact loses its Gold badge if it regresses. Teams can point their own package directory at the registry so hardened equivalents resolve without changing how developers install anything.

When upstream has no fix yet, or will not ship one, Safeguard first works to get the fix accepted upstream. If the issue is severe or upstream will not move, Safeguard builds a fork, fixes the vulnerability there and publishes a hardened Gold build, so you are not stuck on a maintainer's release schedule. You can also request a hardened build of a specific package. Ask which packages it covers before you plan around it.

Your situationWhat to use
A fixed version existsAutonomous remediation opens the upgrade pull request; Gold Open Source confirms the safe version
You need to know today whether you are affectedGold Open Source lookup and "Am I affected?" checker, free and without login
You want vulnerable versions to stop shippingSafeguard policies and gates in CI
Upstream has no fix yet, or will not ship oneA custom Gold request; fork and patch
You want to start clean on new projectsPull hardened components and images from Gold Registry

One honest limit: when the vulnerable code lives in a vendor appliance, a hosted service or an operating system runtime you do not build yourself, the fix still has to come from that vendor or distribution. The steps above apply to the open source dependencies and container images you build and ship, which is where most teams carry the largest and least tracked share of their exposure.

FAQ

Is there JavaScript malware on websites today?

Yes. CISA added the Optimizely Web Experimentation flaw behind November's injected-script campaign to KEV on 24 November 2026, and skimming, malicious ads and extension abuse are reported every week. Check your own CSP reports and script inventory rather than waiting for news.

How do I know if my site is running a skimmer?

List every script your sensitive pages load in a real browser, compare it to a written inventory, hash third-party scripts on a schedule, and read CSP reports for unknown script sources or data destinations.

Would Subresource Integrity have stopped the Optimizely attack?

No. SRI needs a fixed hash, and per-project vendor snippets change by design. A strict CSP with tight connect-src limits is what Optimizely's own report credits with protecting sites.

Is this the same as npm malware?

No. npm malware runs on developer machines and build servers when packages are installed or imported. Browser JavaScript malware runs on your visitors' devices. They meet in the bundle you ship, which is why both sides need checks.

Last reviewed: 25 November 2026.

Sources

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

We email you a link to confirm, and only then add you to the list. Unsubscribe in one click. Privacy

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.