Is this SVG safe? How to check for hidden scripts and external references
You just downloaded a bundle of 200 SVGs. Before they go anywhere near your shop, your cutting machine workflow, or your customers, it is worth knowing something most marketplaces will not tell you: an SVG is a text file, and a text file can carry instructions.
TL;DR: SVG files are code and can carry scripts and external references - check the file in a text editor before use. And "free to download" is not a license: the right to sell comes only from the license terms that came with your download.
What can an SVG carry?
Unlike a PNG or a JPG, an SVG is written in a markup language a browser can interpret. That means a crafted SVG can contain things a picture has no business containing:
- Script tags - embedded code that can execute when the file is opened in a browser; whether it actually runs depends on how the file is loaded and on the browser’s own protections.
- Event handlers - attributes like onload that trigger code when the image renders.
- External references - links that pull images, fonts, or other content from an outside server when the file is viewed. That outside server sees the view happen, and controls what gets served next time.
“It’s just an image” is not guaranteed by the file extension, and the only way to know is to look.
How do I check an SVG safely?
Open the SVG in a text editor. Not a browser: a browser may execute what is inside, depending on how the file is loaded. Any plain text editor works.
Once it is open, search the text for a handful of strings:
script- there is no legitimate reason for a cutting-file SVG to contain a script tag.onload,onclick, or any attribute starting withon- event handlers.iframeandforeignObject- ways to embed outside content.http- external references. Namespaces (thexmlnslines at the top) will match this search and are normal; what deserves a second look is anhttplink that loads an image, font, or stylesheet from outside the file.
What is normal: XML namespaces, comments, long path data, editor metadata from Illustrator or Inkscape. What deserves a second look: anything from the list above that is not a namespace line. A second look means reading what the element does before deciding, and when in doubt, not using the file.
Where does the manual pass stop?
One SVG, two minutes. A 50-design bundle with folders inside folders is a different afternoon, and attention is exactly what fails at file thirty. This is the kind of check that software is genuinely better at. The checks are rule-based: every upload is checked against the same rubric, the same way.
A BundleShield preflight flags files that carry unsafe active content or external references and names the file and the exact finding in your report, so you know where to look. Unsafe active content lands as Remove in the report; external references land as Review. It is a flag for your review, not a determination that a file is malicious. The report shows what is detectable in the file, and the call stays with you.
One ZIP, up to 50 SVG or PNG designs with the license text file inside. Flat $9.90 per bundle, report by email within 24 hours of a completed check.
- Save the license file, the download page, and the date you got them, next to the design files.
- That linkage is what you reach for if a listing is ever questioned.
- Silence means ask. No terms plus no answer means the design does not go in your shop.
Does “free” include commercial use?
Sometimes, cleanly. Many designers release free designs with an explicit commercial-use grant, and using those exactly as the license says is fine. The problems start with how a free bundle can arrive:
- No license file at all. Then nothing grants you anything. “It was free to download” is not a license, and the absence of terms is not permission.
- A personal-use-only note. Common on freebies. That mark means the design stays off anything you sell, unless the seller tells you otherwise in writing.
- Terms that live on a web page. The page can change after you download. What matters is what the terms said when you got the file - so keep a copy.
- A repackaged design. Free files move between packs, and a re-uploaded design can arrive stripped of its original license. The copy in your hands may carry terms its creator never wrote, or none at all. The commercial answer lives in the license text that came with YOUR download: read it for the commercial-use, print-on-demand, and extended-license lines, and when the text is silent, ask the seller and keep the answer in writing. (The license-reading method: does my bundle license allow print on demand - the same steps apply to the commercial question.)
The commercial answer lives in the license text that came with your download. Read it for commercial use, print-on-demand, and extended-license lines. If the terms are silent, ask the seller and keep the answer in writing.
How do I archive the evidence?
- Save the license file, the download page, and the date you got them, next to the design files.
- That linkage is what you reach for if a listing is ever questioned.
- Silence means ask. No terms plus no answer means the design does not go in your shop.
Frequently asked questions
Can an SVG file actually run code?
Yes. SVG is an XML-based format that supports scripts and event handlers. Most design files are clean, but the format allows active content, and active content has no legitimate reason to be in a design file.
What are external references in an SVG?
Links inside the file that load images, fonts, or other content from outside servers when the file is opened. They can track viewers or pull content that changes after you checked it.
Is a free SVG safe to use commercially?
Two separate questions. The file can carry hidden active content, and the download can carry no commercial-use grant at all. Check the file in a text editor, and read the license terms that came with your download. “It was free” is not a license.
What should I do with a file that has scripts inside?
Treat it as a Remove. Do not upload it to your shop or open it further. A design file does not need active content to be a design.
Can a check do this pass for a whole bundle?
Yes. A preflight check flags unsafe active content and external references for your review, surfaces byte-identical duplicates and metadata, and quotes selected license lines for you to read yourself, where your license has them. The quoted lines appear alongside the per-file results; matching a clause to a specific design stays your read. A risk check, not legal clearance.
Related reading
Does my bundle license allow print on demand? · Using a bundle without reading the license · Royalty-free · Personal use
See what the check actually shows
Open the synthetic sample: file-by-file findings, the reason for each flag, and selected license lines to read separately.
Illustrative only, not customer work. Clear means no issue flagged by these limited checks, not permission or legal clearance.
