Outdated JavaScript libraries and source map audit

Frontend bundles carry hidden attack surface through outdated third-party dependencies, unhashed CDN scripts, and exposed source maps that reconstruct application source code.

Client-side checks across HTML and JS bundles

CheckWhat gets audited
Outdated library advisoriesInspects script filenames and bundle banners using the built-in advisory pack covering jQuery, Lodash, Bootstrap, AngularJS, Vue 2, Moment, Handlebars, DOMPurify, Axios, Marked, and Underscore.
Custom advisory extensionLoads organizational CVEs or internal minimum versions with --advisories advisories.json or script_version rules inside --rules.
SRI hashes and HTML linksFlags external scripts missing integrity hashes (HTML-MISSING-SRI), cleartext subresources on HTTPS pages (HTML-MIXED-CONTENT), target="_blank" links missing rel="noopener" (HTML-TARGET-BLANK), HTTP password forms (HTML-PASSWORD-HTTP), and POST forms missing CSRF token names (HTML-FORM-NO-CSRF-FIELD).
Source maps and route discoveryExtracts internal /api/ path hints and flags exposed .js.map source maps returned with valid JSON source map fields.

Scan bundles and load custom advisories

web-vuln-scanner https://example.com --advisories my-advisories.json --rules rules.example.json

Frequently asked questions

Why should .js.map files be kept off public web servers?

Public source maps let anyone recover unminified TypeScript or JavaScript source files, internal comments, and unpublished route logic. Upload source maps privately to your error tracker instead of serving them in production.

When does HTML-FORM-NO-CSRF-FIELD trigger?

It inspects HTML POST forms for common CSRF input names. Note that API-backed apps using JSON fetches with bearer tokens do not rely on hidden HTML form fields.

Related guides

Frontend secret leak detector

Check those same JavaScript bundles for embedded API keys and tokens.

CSP checker and generator

Restrict script execution domains with a strict Content Security Policy.

CLI reference and custom rules

Learn how script_version custom rules enforce minimum library versions.