SiteShadow
Back to vulnerability library
Detected byStatic analysis

SRI01 Missing Subresource Integrity

What this means

SiteShadow flagged external <script> / <link> assets (typically from CDNs) that are included without Subresource Integrity (SRI) hashes.

Why it matters

Without SRI, compromised CDN assets can execute malicious code in your app.

Safer examples

1) Add SRI + crossorigin for CDN assets

<script
  src="https://cdn.example.com/lib.min.js"
  integrity="sha384-BASE64_HASH_HERE"
  crossorigin="anonymous"
></script>

2) Self-host critical assets

If you can't reliably manage SRI, bundling/self-hosting reduces external dependency risk.

3) Pin versions (don't use "latest")

Pin CDN URLs to exact versions so the content is predictable.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Catch this in your code with SiteShadow.

Every released SiteShadow scanner is free, including full project analysis, reports, patterns, dashboard access, and configured organization SSO.