How to fix: Page references RawGit, a shut-down CDN
The page references rawgit.com or cdn.rawgit.com, a CDN that no longer exists. RawGit stopped serving new files in 2018 and shut down completely in October 2019.
Why it matters
Anything loaded from this host is dead, so a script tag pointing at it silently does not execute and a stylesheet silently does not apply. That is a functional break that no error page reveals. The more serious concern is the domain itself: a retired CDN domain that later changes hands turns every page still pointing at it into a delivery channel for whoever owns it next.
This is a maintenance signal as much as a security one. A page still referencing RawGit has not had its third-party assets reviewed since at least 2019, which usually means the rest of the front-end dependency set is the same age. Check what the reference was meant to load and whether the page has been quietly running without it.
How to fix it
- 1Find what the RawGit URL was supposed to load and confirm whether the page still needs it.
- 2Replace it with the file served from your own origin, or with a pinned jsDelivr URL plus an integrity hash.
- 3Audit the rest of the page's third-party references at the same time; they are likely the same vintage.
Code examples
Find every reference
grep -rn 'rawgit\.com' --include='*.html' --include='*.js' --include='*.css' .Replace with a pinned, hashed source
<script
src="https://cdn.jsdelivr.net/gh/owner/[email protected]/dist/widget.min.js"
integrity="sha384-REPLACE_WITH_REAL_HASH"
crossorigin="anonymous"></script>References
Detected automatically by VulnRadar. The check id is supply-chain-rawgit-cdn-reference, stable across every scan so you can filter or diff on it.
More supply chain checks
- Mediumnpm/yarn Lock File Exposed
- MediumPython Requirements File Exposed
- MediumRuby Gemfile or Gemfile.lock Exposed
- MediumExternal CDN Script Without SRI Hash
- HighHTTP Script Loaded on HTTPS Page
- MediumPHP composer.json or composer.lock Exposed
- HighDockerfile or docker-compose.yml Exposed
- Critical.env File Exposed at Public URL
Questions
- How severe is Page references RawGit, a shut-down CDN?
- VulnRadar rates this medium severity in the supply chain category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
- Does VulnRadar check for this automatically?
- Yes. It runs as part of every scan under the check id supply-chain-rawgit-cdn-reference, which stays the same between runs so you can filter, diff, or gate CI on it.
- Which standards does Page references RawGit, a shut-down CDN map to?
- It maps to CWE-1104. In the OWASP Top 10 it falls under A08:2021.
Missing a check?
The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.