Safeguard
Supply Chain•

Does your store inventory include client-side libraries?

Server inventories often miss the JavaScript libraries shipped to shoppers. See where client-side components hide in a store and how to list them.

Safeguard Security Team
4 min read

Many inventories do not. Teams list server packages and forget the JavaScript libraries that ship to every shopper's browser: theme libraries, bundled front-end packages and widget code. OWASP says to inventory both client-side and server-side components, nested dependencies included.

Why the browser side gets missed

Server components live in a package manifest that tooling reads. Front-end libraries often arrive in other ways: copied into a theme folder, bundled into one minified file, or added by an app from an extension. Nothing in the server manifest mentions them.

The OWASP Top 10 entry for Vulnerable and Outdated Components says you are likely vulnerable if you do not know the versions of all components you use, both client side and server side, including nested dependencies. It lists retire.js among tools for continuously inventorying versions, and its references name Retire.js for detecting known vulnerable JavaScript libraries.

The OWASP third-party JavaScript cheat sheet also notes that keeping JavaScript libraries updated matters because earlier versions can have known vulnerabilities that typically make a site vulnerable to cross-site scripting.

Where client-side components hide in a store

SourceExampleHow to find it
Package manifestFront-end framework, UI kitLockfile and SBOM
Bundled outputLibraries merged into one minified fileSource maps or build report
Theme folderSlider, zoom or carousel libraries copied inSearch the theme for library names and headers
Platform appsCode the app injects into pagesPage capture with developer tools
Tag managerLibraries loaded by custom tagsTag manager audit
CDN linksLibraries loaded from a public hostSearch templates for external script URLs

Steps to build the list

  1. Start from the build. Generate an SBOM from each front-end project and keep it with the release.
  2. Search the theme. Look in theme folders for files with a library name or a version in a header comment.
  3. Capture the live page. Load key pages, including checkout, and list every script file and its origin.
  4. Identify versions. For each file, find the version from the header comment, the package name or the source map. Mark unknowns.
  5. Record ownership. Each entry needs a person who can update or retire it.
  6. Compare after changes. Repeat after each release and each app install.

Unknown versions are findings on their own. If nobody can say which version a file is, nobody can say whether a fix applies.

Keep the list useful

An inventory that is a one-time spreadsheet goes stale in a month. OWASP advises continuous inventory, and monitoring of sources such as CVE and the National Vulnerability Database. Tie the list to your build so it updates itself where possible, and review the manual parts on a schedule.

Prune as you go. OWASP's first prevention step is to remove unused dependencies, unnecessary features, components, files and documentation. A slider library nobody uses is still a library with an advisory waiting to happen.

Try it yourself

Click through it at your own pace, or open it full screen. Look at how direct and nested components appear in the same list.

Where Safeguard fits

Safeguard's SBOM and dependency scanning lists the packages in your front-end projects alongside server code, with reachability analysis to help rank what matters. Files copied into a theme or injected by an app are not packages, so use the manual steps for those. A free scan is at gold.safeguard.sh/scan.

Quick check

Is a lockfile a complete inventory of what shoppers load?

No. It covers what your build installs. Copied files, app-injected code and tag manager libraries need separate discovery.

What if we cannot find a library's version?

Record it as unknown, assign an owner and replace the file with a known version from an official source.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.