A third-party script with no integrity check

What was built

The page loads a script from another host. The script tag has no integrity attribute, or the URL is an unversioned CDN address that can change underneath the tag.

The browser fetches whatever that URL returns. A changed file is still executed.

How to tell

A third-party script tag has no Subresource Integrity hash. Or a script URL redirects through an unversioned CDN host. A script named in the HTML that never appears in the network record is counted with the document.

Why it matters

If a third-party CDN is compromised (for example, the 2024 Polyfill.io attack), unpinned floating packages will silently serve the attacker’s payload. Subresource Integrity ensures the browser will refuse to execute the script if a single byte has been altered upstream.