Skip to content
PATCH

Third-party scripts without integrity

Learned from Ledger Connect Kit · Company · 2023-12-14 · Source

In plain words

If a site loads code from someone else's server without a fingerprint, a hacked server can send wallet-draining code instead.

Spec

SIG 0x7C1D55AB-08
antibody
Third-party scripts without integrity
learned
Ledger Connect Kit · malicious library served to dapps · 2023-12-14 · bleepingcomputer.com
weakness
External <script src> tags without a Subresource Integrity (integrity=) hash.
reads
The same single homepage load: every <script src> pointing to another domain, and its integrity attribute
match
at least one external script without integrity
not a hit
same-origin scripts · external scripts that carry an integrity hash
severity
MEDIUM · LOW when every unpinned script is on a well-known CDN with a version in the URL
fix
Pin each external script to an exact version.

01

The attack it came from

Ledger Connect Kit · malicious library served to dapps, 2023-12-14, about ~$600K lost. A malicious version of Ledger's Connect Kit library was published and loaded by dapps from a CDN. It injected a wallet drainer into their sites; about $600K was taken.

Open in the attack feed →

02

For engineers

Reads: The same single homepage load: every <script src> pointing to another domain, and its integrity attribute.

Match: at least one external script without integrity.

Not a hit: same-origin scripts · external scripts that carry an integrity hash.

Severity: MEDIUM · LOW when every unpinned script is on a well-known CDN with a version in the URL.

Passive and read-only. Runs in the public census.

03

Known false positives

Analytics or widget scripts that change on every deploy cannot carry a hash; they are still listed so the team can decide.

04

Census result

20 of 76 checked targets matched.

critical 0high 0medium 19low 1

Source: census_runs (latest finished run), census of 2026-11-27. Totals only: projects are never named.

05

What a team should do

  1. 01Pin each external script to an exact version.
  2. 02Add integrity="sha384-…" and crossorigin="anonymous".
  3. 03Better: bundle the dependency and serve it from your own origin.

PATCH recommends the fix. The team applies it. Nothing is changed for them.

06

What this antibody can't detect

Scripts added after page load or inside bundled code.